aima + 8rypsala sto partition table

Alexandros Papadopoulos apapadop at cmu.edu
Mon Mar 3 08:56:01 EET 2003


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

Χαιρετώ τη λίστα.

Κατάφερα να σπείρω απόλυτο πανικό στο partition table ενός φίλου, με 
εξαιρετικά λίγες κινήσεις. Το πρόβλημά μου είναι ότι δεν ξέρω ακριβώς 
πού έγινε το κατόρθωμα. Αν μπορεί κανείς να μαντέψει, θα ήμουν 
ευγνώμων, ώστε να ξέρω να μη κάνω την ίδια βλακεία ξανά.

Ξεκινάμε με μηχάνημα με δύο partitions, WinXP NTFS και στα δύο. Σβήνουμε 
το δεύτερο, και στη θέση του δημιουργούμε τα εξής:

[0] /dev/hda5 ext3 /
[1] /dev/hda6 vfat /mnt/windows
[2] /dev/hda7 ext3 (!) /mnt/windows2
[3] /dev/hda8 swap

Όλα αυτά με τον installer του RedHat8.0. Τελειώνουμε την εγκατάσταση, 
και τότε συνειδητοποιούμε ότι κατά λάθος το /dev/hda7 είναι ext3fs και 
όχι vfat όπως θέλαμε.

Δεν κωλώνουμε, umount τα πάντα εκτός από το /, sync και mkfs.vfat 
/dev/hda7. Αλλαγές στο /etc/fstab, και μετά mount + read/write σε όλα 
τα partitions. Όνειρο.

(το λάθος) Reboot σε WinXP. Δεν βλέπουν το /dev/hda7. Το σβήνω από τον 
disk manager και το ξαναφτιάχνω.

(snip gory details)

Επόμενος τόνος: WinXP δεν bootάρουν καθόλου (BSOD), linux bootάρει μια 
χαρά. Από το linux μπορώ να διαβάσω τo NTFS partition των XP. Όλα τα 
ψιλά (/dev/hda6+ έχουν διαλυθεί και είναι unreadable). To (c)fdisk δεν 
μπορεί να κάνει list τα partitions, δίνοντας "Unable to seek on 
/dev/hda". Ένα fdisk -l /dev/hda* δίνει τα αποτελέσματα που έχω 
επισυνάψει.

Πού χάλασε η σούπα;

- -Α
- -- 
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+Yvy/gmAMwQt1gmURAgVHAJwM3H4up9ym195jqlbN2lAqybxGgQCfZPK8
DyhFTK0TQzg3VAAu1+wZj+g=
=oowS
-----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 Linux-greek-users mailing list