5

fdisk killed my partition table

view full story
linux-howto

http://www.linuxforums.org – Hi all, I used to have a partition table like this (according to fdisk) /dev/sda1 * 1 7649 61440561 7 HPFS/NTFS /dev/sda2 7650 38913 251128080 f W95 Ext'd (LBA) /dev/sda5 7650 11473 30716248+ b W95 FAT32 /dev/sda6 11474 11535 497983+ 82 Linux swap / Solaris /dev/sda7 11536 14598 24603516 83 Linux /dev/sda8 14599 38913 195310206 b W95 FAT32 I would have liked to format the first FAT32 partition (/dev/sda5 in the table above) to ext3. So I started fdisk /dev/sda deleted the 5th FAT32 partition (/dev/sda5), added a new ext3 partition. After this action I got this table: /dev/sda1 * 1 7649 61440561 7 HPFS/NTFS /dev/sda2 7650 38913 251128080 f W95 Ext'd (LBA) /dev/sda5 11474 11535 497983+ 82 Linux swap / Solaris /dev/sda6 11536 14598 24603516 83 Linux /dev/sda7 14599 38913 195310206 b W95 FAT32 /dev/sda8 7650 11473 30716248+ 83 Linux OK, I thought my new linux partition is /dev/sda8, so I formatted it: # mkfs.ext3 /dev/sda8 After the reboot, my linux system was unable to boot due to the nubmer of partition devices had changed. Grub exited with Error 17. So I took my Ubuntu disk, started live ubuntu, and changed fstab, grub's menu.lst and chaged it to the new partition devices. After reboot, I realised that my second FAT32 partition had disappeared. I'd have liked to mount the new partiton as ext3 but it did't work. I found out that I'm able to mount with only different type: # mount | grep sda /dev/sda8 on /mnt/media type vfat /dev/sda7 on /mnt/linmedia type ext3 fdisk says: /dev/sda7 14599 38913 195310206 b W95 FAT32 /dev/sda8 7650 11473 30716248+ 83 Linux Now I've got ext3 on wrong partition. Maybe I formatted my second FAT32 to ext3? How could I restore my second FAT32 partition? I use Ubuntu 8.04 (HowTos)