Todd Smith Org

September 13, 2009

fdisk and ntfs/hfs

Filed under: OS X Administration — admin @ 5:41 am

I wanted to change the type of partition from 0x0B (Fat32) to 0×07 (HPFS/NTFS)

You can find the answer in fdisk below

tsmith@ルースアニメ:~$ fdisk -e /dev/disk1
fdisk: could not open MBR file /usr/standalone/i386/boot0: No such file or directory
Enter ‘help’ for information
fdisk: 1> ?
help Command help list
manual Show entire man page for fdisk
reinit Re-initialize loaded MBR (to defaults)
auto Auto-partition the disk with a partition style
setpid Set the identifier of a given table entry
disk Edit current drive stats
edit Edit given table entry
erase Erase current MBR
flag Flag given table entry as bootable
update Update machine code in loaded MBR
select Select extended partition table entry MBR
print Print loaded MBR partition table
write Write loaded MBR to disk
exit Exit edit of current MBR, without saving changes
quit Quit edit of current MBR, saving current changes
abort Abort program without saving current changes
fdisk: 1> print
Disk: /dev/disk1 geometry: 121601/255/63 [1953525168 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec – cyl hd sec [ start - size]
————————————————————————
1: EE 1023 254 63 – 1023 254 63 [ 1 - 409639]
2: 0B 1023 254 63 – 1023 254 63 [ 411648 - 976760832] Win95 FAT-32
3: AF 1023 254 63 – 1023 254 63 [ 977172480 - 976090504] HFS+
4: 00 0 0 0 – 0 0 0 [ 0 - 0] unused
fdisk: 1> 2
Invalid command ’2′. Try ‘help’.
fdisk: 1> edit 2
Starting Ending
#: id cyl hd sec – cyl hd sec [ start - size]
————————————————————————
2: 0B 1023 254 63 – 1023 254 63 [ 411648 - 976760832] Win95 FAT-32
Partition id (’0′ to disable) [0 - FF]: [B] (? for help) 07
Do you wish to edit in CHS mode? [n]
Partition offset [0 - 1953525168]: [409640]
Partition size [1 - 1953115528]: [1953115528]
fdisk:*1> p
Disk: /dev/disk1 geometry: 121601/255/63 [1953525168 sectors]
Offset: 0 Signature: 0xAA55
Starting Ending
#: id cyl hd sec – cyl hd sec [ start - size]
————————————————————————
1: EE 1023 254 63 – 1023 254 63 [ 1 - 409639]
2: 07 1023 254 63 – 1023 254 63 [ 409640 - 1953115528] HPFS/QNX/AUX
3: AF 1023 254 63 – 1023 254 63 [ 977172480 - 976090504] HFS+
4: 00 0 0 0 – 0 0 0 [ 0 - 0] unused
fdisk:*1> w
Device could not be accessed exclusively.
A reboot will be needed for changes to take effect. OK? [n] y
Writing MBR at offset 0.
fdisk: 1> quit
tsmith@ルースアニメ:~$ “/Library/Application Support/VMware Fusion/vmware-rawdiskCreator” print /dev/disk1
Nr Start Size Type Id Sytem
– ———- ———- —- — ————————
1 1 409639 BIOS EE Unknown
2 409640 1953115528 BIOS 7 HPFS/NTFS
3 977172480 976090504 BIOS AF HFS+
tsmith@ルースアニメ:~$

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress