Created
October 11, 2012 04:36
-
-
Save anonymous/3870190 to your computer and use it in GitHub Desktop.
Attempt to fdisk an SD card appears to work, but doesn't
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ fdisk -e /dev/rdisk4 | |
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory | |
The signature for this MBR is invalid. | |
Would you like to initialize the partition table? [y] | |
Enter 'help' for information | |
fdisk:*1> print | |
Disk: /dev/rdisk4 geometry: 520/64/63 [2097152 sectors] | |
Offset: 0 Signature: 0xAA55 | |
Starting Ending | |
#: id cyl hd sec - cyl hd sec [ start - size] | |
------------------------------------------------------------------------ | |
1: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
fdisk:*1> disk | |
Disk: /dev/rdisk4 geometry: 520/64/63 [2097152 sectors] | |
Change disk geometry? [n] y | |
BIOS Cylinders [1 - 1024]: [520] 1024 | |
BIOS Heads [1 - 256]: [64] 255 | |
BIOS Sectors [1 - 63]: [63] 63 | |
fdisk:*1> print | |
Disk: /dev/rdisk4 geometry: 1024/255/63 [16450560 sectors] | |
Offset: 0 Signature: 0xAA55 | |
Starting Ending | |
#: id cyl hd sec - cyl hd sec [ start - size] | |
------------------------------------------------------------------------ | |
1: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
fdisk:*1> auto dos | |
fdisk:*1> print | |
Disk: /dev/rdisk4 geometry: 1024/255/63 [16450560 sectors] | |
Offset: 0 Signature: 0xAA55 | |
Starting Ending | |
#: id cyl hd sec - cyl hd sec [ start - size] | |
------------------------------------------------------------------------ | |
*1: 0C 0 1 1 - 1023 254 63 [ 63 - 16450497] Win95 FAT32L | |
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
fdisk:*1> write | |
Writing MBR at offset 0. | |
fdisk: 1> print | |
Disk: /dev/rdisk4 geometry: 1024/255/63 [16450560 sectors] | |
Offset: 0 Signature: 0xAA55 | |
Starting Ending | |
#: id cyl hd sec - cyl hd sec [ start - size] | |
------------------------------------------------------------------------ | |
*1: 0C 0 1 1 - 1023 254 63 [ 63 - 16450497] Win95 FAT32L | |
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
fdisk: 1> quit | |
[NOW NOTE THAT THE CHANGES HAVE NOT ACTUALLY BEEN MADE] | |
$ fdisk /dev/rdisk4 | |
Disk: /dev/rdisk4 geometry: 520/64/63 [2097152 sectors] | |
Signature: 0x0 | |
Starting Ending | |
#: id cyl hd sec - cyl hd sec [ start - size] | |
------------------------------------------------------------------------ | |
1: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
2: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
3: 00 0 0 0 - 0 0 0 [ 0 - 0] unused | |
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment