Ich mach jetzt mal ein Beispiel mit einem usb stick:
Code: Alles auswählen
root@andreas-macbook:/home/andreas# fdisk -lu /dev/sdb
Disk /dev/sdb: 15.6 GB, 15610576896 bytes
64 heads, 32 sectors/track, 14887 cylinders, total 30489408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007690f
Device Boot Start End Blocks Id System
Am Anfang sind es 64 heads und 32 sectors/track. Im folgenden will ich das ändern.
Code: Alles auswählen
root@andreas-macbook:/home/andreas# fdisk -c -u /dev/sdb
Command (m for help): x
Expert command (m for help): s
Number of sectors (1-63, default 32): 52
Expert command (m for help): h
Number of heads (1-256, default 64): 32
Expert command (m for help): r
Command (m for help): p
Disk /dev/sdb: 15.6 GB, 15610576896 bytes
32 heads, 52 sectors/track, 14887 cylinders, total 30489408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007690f
Device Boot Start End Blocks Id System
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 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
Code: Alles auswählen
root@andreas-macbook:/home/andreas# partprobe /dev/sdb
root@andreas-macbook:/home/andreas# fdisk -lu /dev/sdb
Disk /dev/sdb: 15.6 GB, 15610576896 bytes
64 heads, 32 sectors/track, 14887 cylinders, total 30489408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0007690f
Device Boot Start End Blocks Id System
Jetzt stehen wieder die 64 heads und 32 sectors/track.
Das mit partprobe ist jetzt neu, das hatte ich vorher nicht. Die WARNING war vorher auch nicht da. Ändert aber nichts an dem Umstand, dass die sectors und heads nicht übernommen wurden...
MfG
n00b