Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

partitioned my hard drive

  Date: Dec 21    Category: Unix / Linux / Ubuntu    Views: 359
  

I installed Ubuntu 8 from the live CD a couple of months ago and had
some technical difficulties. me in my great wisdom decided to
re-install the whole thing, having first backed up a couple of
important documents.

The trouble is, rather than install OVER the troubled one, it seems to
have created a second version of Ubuntu on a new partition. So now I
have sda6 I think it calls itself which only has the original
installation on it, and also sda8 which is the one I boot into etc. i
don't want or need sda 6 (or sda's 1-5 and 7) but it won't let me
delete them because 8 is a higher number...

I could really do with the extra 11Gb of space that's being taken up
here. Any suggestions? (that are polite and friendly!!) ;)

Share: 

 

12 Answers Found

 
Answer #1    Answered On: Dec 21    

Did you format entire disk? At install you have the choice of how you
want to partition the disk, choose one partition and this'll format
entire disk. Intentionally or accidentally you must have had two
partitions [excluding the small swap and other one].

Do another install making sure you only have one partition.

 
Answer #2    Answered On: Dec 21    

You can reinstall, and select guided, use entire disk. Or you can
reinstall and select manual install, and then remove the exisitng
partitions, and then tell it to repartition and reformat the disk.

I do not know of a utility that will let you expand the exisitng
partions. Though there may well be such an animal for Linux. (I'm
fairly new at Linux, but I have done dozens of installs recently.
(Some because I am new and managed to get myself in a corner that I
did not know how to get out of.)

 
Answer #3    Answered On: Dec 21    

You have options.

You can load the Live CD and go to Settings | Administration | Partition Editor.
Make sure your drives are not mounted first. Choose your drive in the top right
corner. Then you can do any number of things. The most radical would be to start
over by destroying all existing partitions, creating a new drives and partitions
and then reinstalling. Or you can destroy only some partitions and then resize
the ones you want to keep to fill the existing free space. This can be harder to
do, depending on how your drive is set up. Also if you go this route you will
likely have to edit grub to reflect the loss of partitions.

If you opt for the former then I would go with three partitions. this will give
you one for / (root), one for /home (user files) and one for swap. The format
for / and /home can be either ext3 or Reiser and swap can be left as swap. Your
swap drive should be comparatively small, not exceeding your RAM, otherwise you
are wasting space. You can decide how big / and /home should be based on your
habits. If you install lots of programs then / will have to be larger than you
typical 4CBs that most Linux distros need. If you download lots then /home will
have to be larger. If you are unsure split the difference.

Once done then you can install Ubuntu. Make sure that you choose custom or
manual partitioning. When the partition table shows, it will show the suggested
partitions with / meaning root and /home meaning home. A check in a box means
that the partition will be formatted. To change the set up, right click on the
drive name and choose to edit. In the dialog box that appears set your mount
point to one of the partitions as / and the other one as /home. Choose the
format of both as either ext3 or Reiser. Once this is done proceed and look
carefully at the changes before they are committed. If it is right then proceed,
if not go back.

Once you set up your computer with three partitions and have done it once,
re-installing is a breeze because whatever you do to one partition does not
affect the others. If you always do a custom installation you can repeat this,
but make sure that your home partition is used by setting the mount point, but
never formatting it. This way you can re-use your home folder indefinitely and
never lose any data or settings, even if you change distributions.

If you elect for the less drastic approach and destroy only some partitions and
resize the ones to keep, you may have to edit grub. If you keep the first
partitions and destroy the higher numbered ones then you may get away with not
having to edit grub.

If you do have to edit grub, it isn't that hard to do. Just change to root in a
terminal with sudo su or sudo -i and then launch gedit by typing gedit in the
terminal from which you will have to open the menu.lst file in the root folder
/boot/grub/. Since you will be working from the LiveCD, if grub is not working,
remember to change drives first be going to File System on the left and
navigating to the media folder, changing to your hard drive (the live CD works
from a RAM drive).

Once in grub you will have to change some numbers. If it says, (hd0,6) for your
boot partition then you will have to change it to (hd0,0) if your root partiton
is your first one (it could used sda instead of hda, depending on what kind of
drives you have). Keep in mind that grub uses ordinal numbers (starting with
zero for the first one) and numbers are relative. The first number is the drive
and the second number is the partition. For example, if you swap partition was
first, /home partition second, then your boot drive would be (hd0,2) because
your swap would be (hd0,0) and your /home would be (hd0,1).


If it was me and I had my preference, I would elect for the fresh start,
provided I backed up all data first. That way I could set things up properly and
not have to worry about grub editing. However, if I was essentially happy with
my old setup, I might want to opt for the less drastic approach.

 
Answer #4    Answered On: Dec 21    

Thanks for all of the great suggestions guys, wish me luck! I know this
is asking a lot, but is there a way of saving my Ubuntu / Thunderbird /
Firefox settings, history, extensions, mail etc, so that when I reformat
everything it's all still there? Or os that the point of the whole
re-formatting thing, that everything gets erased and you start again
afresh? It would be a real pain to lose all of my bookmarks and
received / sent emails.

 
Answer #5    Answered On: Dec 21    


You can use Foxmarks with FireFox for all those valuable bookmarks - i
find it works very well. As for emails to some extent it depends how
you've set up your system: if you use imap then you simply install
Thunderbird again and it downloads all emails again, if you use pop3
and you mark the box to leave emails on server then you can still do
the same, however if you have downloaded all emails and have nothing
left on the server you can use ImportExportTools to save the folder to
html or mbox.

I use imap and then Importexport tools to archive my emails. hope this helps.

https://nic-nac-project.org/~kaosmos/mboximport-en.html


 
Answer #6    Answered On: Dec 21    

Yes. You will have to save them to another drive, usb key or CD/DVD. The Firefox
settings are in a hidden folder in your home folder /.mozilla/firefox.. Save the
entire folder or browse the profile which will have a bunch of random
alphanumerics followed by.default. Thunderbird's settings are in a hidden folder
called .thunderbird with a similar alphanumeric.default. Inside will be your
address book and mailboxes. It may be under .mozilla-thunderbird, depending on
how it was installed.

To see either hidden folder you will have to enable hidden files by clicking on
View and then on Show Hidden Files or press Ctrl+H.

Once they are save to the media of choice then just copy then back after you
have re-installed Ubuntu. If they don't work then just use each program once and
it will set up a new profile and then copy over all the subfolders from your
backed up copies into the new profile.

 
Answer #7    Answered On: Dec 21    

I found the .mozilla-thunderbird ok.

What i can't find and what seems to be different from the winblows
version of Thunderbird is where the stored emails folder is. I thought
it was /etc/thunderbird/profile under here i think was the email
folders. So in the linux version of TB where are they?

 
Answer #8    Answered On: Dec 21    

They are included in the .mozilla-thunderbird folder.

 
Answer #9    Answered On: Dec 21    


I am using gutsy 7.1 after a failed attempt with hardy 8.04 upgrade
(luckily on a cloned copy of my gutsy system) on an athlon 1000 system
with 768 mb ram, 440 mmx ,3com lan, sb128 sound and all is ok.
I had driver problems with hardy, and the compatibility isse of
firefox 3 that hardy installs, and java 6.
I am not an expert as i am only 8 months down the line with linux.
As far as i can see if you run gparted from the live ubuntu cd or the
gparted/clonezilla cd it will do anything you like with partitions,
but if i remember right if they are flagged as locked you have to
unlock them first. As long as your bootloader knows where your system
partition is and you have a swap partition as well as your system one
it should be ok.
It is confusing that Gparted sees partitions as sda1, sda2, etc but
the bootloader would see them as hd (0,0) hd (0,1).
I will look into your problem and come back to you if i find anymore
info.

 
Answer #10    Answered On: Dec 21    

The best way to clean things up is to indeed copy off all of what you
want saved files, bookmarks and such. Install sbackup its a simple
backup tool that will run when ever you wish, you can include and
exclude directories. All of you email, browser other setting are
stored in hidden files in you /home/whoever directory. Under sbackup I
would backup /home/whoever to and external device (usb drive) so that
you have everything you need. Then use the livecd ubuntu and ensure
that upon installation to select USE ENTIRE DISK. This will remove the
extra partitions and install cleanly using the entire disk. Make sure
that you remove the external usb drive and select the correct drive
you wish to use.

I have used this method many times in playing and switching OS. I have
switched from Freesoire to Ubuntu on all of my machines even running
xp in vmware and virtualbox for the occasion Neanderthal regression fix.

 
Answer #11    Answered On: Dec 21    

It is in your home folder in /.mozilla-thunderbird/alphanumeric.default/Mail/.

If you don't have much data in your home folder you can back the whole thing up
and then copy it all back to your user home folder with your new setup. The only
problem that sometimes happens with Thunderbird is that you have to start it
first, before you copy and then overwrite any files that you made.

If you feel up to it, you might want to consider partitioning your drive so that
you have it on its own partition. That way you can re-install Ubuntu or even
switch distros and you don't even have to back up files. Just re-use the same
/home partition and keep the same user name. Be sure that you don't opt to
format the /home partition each time and Bob is your uncle, you are back in
business.

 
Answer #12    Answered On: Dec 21    

Not strictly true - if you have set up any email profiles, then they
will be under /.mozilla-thunderbird/alphanumeric.profile_name/Mail/

For instance, on my system, I have two profiles

/home/david/.mozilla-thunderbird/h4e70dcv.david/Mail
/home/david/.mozilla-thunderbird/tj2eyomz.default/Mail/

 
Didn't find what you were looking for? Find more on partitioned my hard drive Or get search suggestion and latest updates.




Tagged: