Fdisk help

Mon

Mon

Associate
Joined
22 Oct 2002
Posts
636
Location
Bristol
I have a problem just been running Fdisk to fomat a stack of hdd's although managed to fdisk my main drive and delete all the partitions , whoops.:p

the disk had 4 partitions

Device Boot Start End Blocks Id System
/dev/sda1 * 1 25496 204796588+ 7 HPFS/NTFS
/dev/sda2 25497 60801 283587412+ 5 Extended
/dev/sda5 25497 59489 273048741 83 Linux
/dev/sda6 59490 60801 10538608+ 82 Linux swap / Solaris

wrote to disk....

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


Can I get the kernel to restore the one loaded in memory?
 
Can I get the kernel to restore the one loaded in memory?

nope, but you can manually re-add the partition table using fdisk. you have the details of the table above, so just put that back in and you should be fine*.

* I've done this on USB pens when they have been disconnected whilst active and broken the part table, but see no reason why it should not work on your system disk (assuming you get the numbers right!). Make sure you set the bootable flag and/or reinstall grub on the MBR once done.
 
Last edited:
Back
Top Bottom