Re: [novice] I wrecked my partition table.



Jean-David Beyer <jeandavid8@xxxxxxxxxxx> writes:

gruebait wrote:
Greetings.

I have a Dell Inspiron 1501 (Turion64, 60 GB HD, 1GB RAM).
My data is backed up.

After updating the BIOS I tried to re-install Ubuntu 7.10
(AMD 64), thinking it might help with some issues I'd had with
it. Bad Idea. When the Live CD installer got to the
partitioning step, I screwed up badly.

And you screwed up how?

There are three items in the partition table you show that are a bit
questionable.
a) you do not need two swap partitions.
Combine them into one. Ie, delete both and then reassign the space to one.
b) you have unallocated space. Why? Was that the "screw up"? You can just
assign them-- ie tell the partitioner you want to allocate them to a ext3
partition.
Or you could erase one of the partitions around it and then reassign all
the space to the new one. It is up to you.



partition table (Original Ubuntu 7.10 'guided' installation):

size used flag
---- ---- -----
/dev/sda1 fat16 70.57MB 8.03MB
/dev/sda2 ntfs 23.29GB 10.87GB
/dev/sda4 extended 29.17GB --- boot
/dev/sda5 ext3 25.72GB 2.50GB
/dev/sda7 ext3 2.04GB 2.04GB boot

This is probably your / partition. If you have /usr on it, then you do not
have enough room. If you have / without /usr, 2GB should be fine.
Since you do not tell us what is on these partitions, it is really hard to
guide you.


/dev/sda8 linux-swap 164.70MB ---
/dev/sda6 linux-swap 1.25GB ---
/dev/sda3 fat32 7.84MB

You also do not show us the partition table.
fdisk -l -u /dev/sda


After screwing it up: (gparted on Live CD)
size used flag
---- ---- -----
/dev/sda1 fat16 70.57MB 8.03MB
/dev/sda2 ntfs 23.29GB 10.88GB boot
/dev/sda4 extended 29.17GB ---
/dev/sda5 ext3 25.56GB 2.50GB
--unallocated ---- 23.17GB
/dev/sda7 ext3 2.04GB 2.04GB
/dev/sda8 linux-swap 164.70MB ---
/dev/sda6 linux-swap 1.25GB ---
/dev/sda3 fat32 3.36MB 2.80GB
--unallocated ---- 7.84MB

And what is it that is screwed up? This looks essentiall y the same as
before.


Grub still works, and XP seems OK.

Having done enough damage, I am just thankful the XP
installation is okay (I need it as-is for work).

What damage? And what do you feel needs work?


I want to reinstall Ubuntu using the ~1/2 of the drive it
was on.

I really, really don't want to screw up XP. Could some
kind soul walk me through the (baby) steps to fix this? I'm
assuming gparted is sufficient for the task, but I don't trust
me at this point :(

Fix what?



First of all, do not do anything until there is no time pressure at work.
Say next weekend.

If XP is ok, first thing I would do would be to make a complete backup of it
(not on /dev/sda anywhere), and verify that the backup is ok. Since I use
tape for backups, I would advise making two or three of them, and verify each.


Agreed. Generally good advice.


(BTW: why two swap partitions on one hard drive? If you need more than one,
each should be on a separate hard drive.)

I would then reinstall Ubuntu. Run the install in a mode where you can make
a new partition table and tell it to leave your /dev/sda1, /dev/sda2, and
/dev/sda3 alone. I use /sbin/fdisk for this because I am familiar with it.
Whatever you use, be sure you understand it.

Why reinstall UbuntU? What is wrong now?


.



Relevant Pages

  • Re: How to copy your whole main partition?
    ... Incremental backup of my installation is exactly the reason I started ... Director, Partition Manager, Partition Magic, and more recently the ... Windows 7 beta will be my fourth. ...
    (alt.comp.hardware.pc-homebuilt)
  • Re: Installation problem, partitionar stuck at 52% .....(Using IDE HDD)
    ... RAM: 64 MB SDRAM ... I finally got ubuntu 5.10 installed on my system. ... When it asks me to start partition manager i just skip this ... skipping the partition step and starting the base system installation. ...
    (Ubuntu)
  • Re: Ubuntu Linux ???
    ... How does the Ubuntu installer handle a multi-boot ... It appears that there is no auto-partitioner on the installation disc. ... resize your Windows partition, thus creating space for your Linux ... backup your important data on your Windows partition FIRST. ...
    (alt.os.linux)
  • Dual boot WinXP and Ubuntu 6.10 in desktop and laptop using NTLDR
    ... First disk: ... 1st partition K: hidden partition in format FAT32, 3.6G, where recovery ... I have windows in C and Ubuntu installed in 2nd disk. ... Have I done something wrong during installation? ...
    (Ubuntu)
  • Ubuntu Hardy Heron server install: grub not updated
    ... has Fedore Core 5 and Windows XP each in its own partition. ... Ubuntu installed fine after resizing the Fedora partition, ... end of the Ubuntu installation, and the installer was able to see ...
    (Ubuntu)