[wplug] need help with partitions

Alexandros Papadopoulos apapadop at cmu.edu
Mon Mar 3 00:14:10 EST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all.

Today I helped a friend install Red Hat 8.0 on his machine. Originally 
the machine had two partitions, with Windows XP's NTFS. We deleted the 
second partition, recognized as /dev/hda5 by the installer. In its 
place, we created /dev/hda5 (ext3fs-linux root), /dev/hda6 
(FAT-/mnt/windows), /dev/hda7 (ext3fs-/mnt/windows2), /dev/hda8 (swap).

After installing and rebooting in Linux wed notice that by mistake we 
formatted /dev/hda7 as ext3fs. No problems, I thought, so I just 
unmounted the partition and then ran mkfs.vfat /dev/hda7. It didn't 
complain, and then I updated /etc/fstab and mounted the partition, 
read/wrote to it fine, unmounted it, all was merry.

The we booted windows XP. The second FAT partition was not visible. We 
opened the disk manager and saw that it is visible but has not been 
assigned a drive letter. Only command available was to delete logical 
partition. So we delete it, and then try to re-create it. No go, the 
only options given to us was to create an NTFS partition! So we exit, 
and reboot.

We boot Windows XP again, this time both FAT partitions are gone and 
shown as free space! We recreate the first one as FAT, and then the 2nd 
one could only be recreated as NTFS, as before. We quit and boot Linux, 
only to find both windows partitions inaccessible, the swap partition 
destroyed, and only the original Windows XP partition /dev/hda1 and the 
linux root partition /dev/hda5 intact.

The output of fdisk -l /dev/hd* is attached.

How on Earth does one recover from a mess like that, and does anyone 
have any idea WHY did it break so badly?

Thanks for any suggestions

- -A
- --
http://andrew.cmu.edu/~apapadop/pub_key.asc
3DAD 8435 DB52 F17B 640F  D78C 8260 0CC1 0B75 8265
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+YuSngmAMwQt1gmURAv4hAJ0a3dx4c6nSf6VbFm8sVnjGfqz/CwCeNvq3
4bl/ZwWrL/lZkkEyEcY1fWw=
=XjP3
-----END PGP SIGNATURE-----
-------------- next part --------------

Disk /dev/hda1: 240 heads, 63 sectors, 2708 cylinders
Units = cylinders of 15120 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/hda1p1   ?     14427    126993 850995205   72  Unknown
Partition 1 does not end on cylinder boundary:
     phys=(371, 101, 51) should be (371, 239, 63)
/dev/hda1p2   ?     48218     84195 271987362   74  Unknown
Partition 2 does not end on cylinder boundary:
     phys=(299, 114, 44) should be (299, 239, 63)
/dev/hda1p3   ?     11155     11155         0   65  Novell Netware 386
Partition 3 does not end on cylinder boundary:
     phys=(353, 115, 52) should be (353, 239, 63)
/dev/hda1p4        178105    178108     25817+   0  Empty
Partition 4 does not end on cylinder boundary:
     phys=(0, 0, 0) should be (0, 239, 63)

Partition table entries are not in disk order

Disk /dev/hda3: 240 heads, 63 sectors, 143 cylinders
Units = cylinders of 15120 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/hda3p1   ?    128045    250522 925929529+  68  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(116, 100, 32) logical=(128044, 47, 32)
Partition 1 has different physical/logical endings:
     phys=(288, 101, 46) logical=(250521, 155, 46)
Partition 1 does not end on cylinder boundary:
     phys=(288, 101, 46) should be (288, 239, 63)
/dev/hda3p2   ?     87976    123622 269488144   79  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 32, 43) logical=(87975, 34, 51)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(123621, 173, 61)
Partition 2 does not end on cylinder boundary:
     phys=(0, 13, 10) should be (0, 239, 63)
/dev/hda3p3   ?     35648    128132 699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(35647, 107, 11)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(128131, 183, 54)
Partition 3 does not end on cylinder boundary:
     phys=(324, 77, 19) should be (324, 239, 63)
/dev/hda3p4   ?     92238     92239     10668+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(92237, 67, 3)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(92238, 165, 45)
Partition 4 does not end on cylinder boundary:
     phys=(335, 78, 2) should be (335, 239, 63)

Partition table entries are not in disk order

Disk /dev/hda5: 240 heads, 63 sectors, 480 cylinders
Units = cylinders of 15120 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/hda5p1   ?     35943    165157 976859833   74  Unknown
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(357, 115, 43) logical=(35942, 154, 28)
Partition 1 has different physical/logical endings:
     phys=(288, 116, 37) logical=(165156, 217, 44)
Partition 1 does not end on cylinder boundary:
     phys=(288, 116, 37) should be (288, 239, 63)
/dev/hda5p2   ?    128131    179647 389460666    a  OS/2 Boot Manager
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(269, 114, 52) logical=(128130, 215, 24)
Partition 2 has different physical/logical endings:
     phys=(357, 116, 40) logical=(179646, 206, 2)
Partition 2 does not end on cylinder boundary:
     phys=(357, 116, 40) should be (357, 239, 63)
/dev/hda5p3   ?     35864    145856 831535540+   0  Empty
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(23, 10, 0) logical=(35863, 218, 55)
Partition 3 has different physical/logical endings:
     phys=(340, 92, 14) logical=(145855, 92, 33)
Partition 3 does not end on cylinder boundary:
     phys=(340, 92, 14) should be (340, 239, 63)
/dev/hda5p4   ?     11154     11154         0   65  Novell Netware 386
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(370, 109, 48) logical=(11153, 41, 62)
Partition 4 has different physical/logical endings:
     phys=(357, 115, 51) logical=(11153, 41, 61)
Partition 4 does not end on cylinder boundary:
     phys=(357, 115, 51) should be (357, 239, 63)

Partition table entries are not in disk order

Disk /dev/hda6: 240 heads, 63 sectors, 473 cylinders
Units = cylinders of 15120 * 512 bytes


Disk /dev/hda7: 240 heads, 63 sectors, 67 cylinders
Units = cylinders of 15120 * 512 bytes


More information about the wplug mailing list