Filesystems and Partition Tables
When I first installed Linux, my drive was partitioned into 4:
/dev/hda1 NTFS
/dev/hda5 FAT32
/dev/hda6 Swap
/dev/hda7 ext3 on /
One day, I decided to get rid of Windows. I just used mkfs.ext3 on /dev/hda1, so now my partitions are so:
/dev/hda1 ext3 on /home
/dev/hda5 FAT32
/dev/hda6 Swap
/dev/hda7 ext3 on /
Now then, I needed to install Windows again for one app, so I use an older Windows, 98. I move my partitions around by moving the data and changing all the filesystems using mkfs. Now, I had this:
/dev/hda1 FAT32
/dev/hda5 ext3 on /home
/dev/hda6 swap
/dev/hda7 ext3 on /
However, when I went to install Windows, C: was pointing to /dev/hda5!
As it turns out, the partition table still reads this (in fdisk and cfdisk):
/dev/hda1 NTFS
/dev/hda5 FAT32
/dev/hda6 Swap
/dev/hda7 ext3 on /
I'm able to mount all of these as what they're supposed to be.
Even gpart can tell that the partition table is wrong.
So, I want to use gpart to write a new partition table. If I do, will it destroy my existing partitions or data? And, should I unmount my partitions to do this?
|