|
|
Create a bootable HFS+ partition and a FAT32 partition on one external drive.
Thanks to simoncha, I was finally able to create FAT32 and bootable Mac partitions on the same disk. I'm posting my process in detail so others will know how. I was able to simplify some things and I had to guess with some of the steps so if anyone sees something that should have been done differently, let me know. So far, everything seems to work fine. I included the results of some compatibility testing at the end. The following steps should work in 10.3.
1) Determine the device (e.g. /dev/disk1) associated with your disk. I will be using disk1 and rdisk1 in my examples. You can use steps 2 through 4 in the original hint to find the correct number for your disk. Unmount any partitions that are already on the disk (ejecting from Finder is sufficient). These partitions will be deleted.
2) I made two new partitions, one 18GB Mac (HFS+) called "Mac" and one 10G FAT32 (MS-DOS) called "PC": diskutil partitionDisk disk1 2 HFS+ Mac 18G MS-DOS PC 10G3) Unmount the newly created partitions (eject from Finder).
4) Get the partition information. You can use the command /dev/disk3 map block size=512 #: type name length base ( size ) 1: Apple_partition_map Apple 63 @ 1 2: Apple_Free 0+@ 64 3: Apple_HFS Apple_HFS_Untitled_2 37486592 @ 262208 ( 17.9G) 4: DOS_FAT_32 DOS_FAT_32_Untitled_3 20856304 @ 37748800 ( 9.9G) 5: Apple_Free 0+@ 586051045) Now use fdisk to create the master boot record (MBR) so Windows will recognize the FAT32 partition: fdisk -e /dev/rdisk1When prompted to initialize the partition table, enter y.
fdisk doesn't actually create any partitions. It just edits the MBR partition table. That's what the information from pdisk is for. The MBR created by fdisk can only contain information about four partitions. The important ones to enter are the Apple partition map and the HFS+ and FAT32 partitions. This means that in step 2, you can create a total of three partitions. The commands for the two partitions I created are:
You can verify what you've entered using the Starting Ending #: id cyl hd sec - cyl hd sec [ start - size] ------------------------------------------------------------------------ 1: AF 0 0 2 - 0 1 1 [ 1 - 63] HFS+ 2: AF 16 82 3 - 1023 192 19 [ 262208 - 37486592] HFS+ 3: 0C 1023 192 20 - 1023 254 47 [ 37748800 - 20856304] Win95 FAT32L 4: 00 0 0 0 - 0 0 0 [ 0 - 0] unusedNothing is written to the partition table yet so use the write command to do that. Then quit to exit fdisk.
You're done. If you compare this process to the one described by simoncha, you'll see that it's basically the same except that I left out steps 5 and 7 through 10. This is because I was getting "invalid argument" at step 10 and nothing was being written back to the partition table. Since step 10 wasn't really doing anything, the other steps aren't needed. Compatibility Information
Windows
Mac OS X 10.2
Mac OS X 10.3 (and beyond) Occasionally, repairing the FAT32 partition with Disk Utility will show something like: Next free cluster in FSInfo block (3) not free fix? yesIt always fixes it and the next scan finds nothing wrong.
Mac OS 9 I also tested the disk with three third-party Mac disk utilities: DiskWarrior, Drive 10, and Norton Disk Doctor. Norton was the only one that reported any problems. They were invalid creation dates for the volume header block and alternate volume header block. These problems were fixed. The Apple partition table and the MBR appear to be unchanged.
Create a bootable HFS+ partition and a FAT32 partition on one external drive.
silentaccord made a great job !!!
How to work with MacOS 10.2
In OS 10.2, the "diskutil" command does not support the important parameter "MBRFormat" meanwhile the "fdisk" command does not work with external drive as described in OS 10.3 with the option "-e". Therefore, the previous posts said their method only work with OS 10.3. Here is my solution, upgrade the "fdisk" command from the opensource project at apple.com.
NTFS?
This method is fantastic!
NTFS?
i'm a bit late in replying here, but i just faced the same problem. i used silentaccord's method for setting up a firewire drive with two partitions: hfs+ and fat32. then i plugged it into a windows xp box and reformatted the fat32 partition as ntfs. this worked perfectly in windows, but the mac wouldn't recognize the drive.
NTFS?
I gave it a shot though and it keeps saying it can't write to the partition map when I give the 'w' command... Not sure why, made to sure unmount it and tried many times. This is a 10.3.8 machine.
NTFS?
I too wanted NTFS and HFS+ on my external HD. Here's my situation:
Making an OS9 bootable volume.
Another late addiotion and just for the record.
Making the sheme work with a OS9 bootable volume is actually rather easy. Use diskutil with OS9Drivers and proceed as mentioned.
The only change happens when you create the PC partition 1.
Create a bootable HFS+ partition and a FAT32 partition on one external drive.
I have a problem. When I try to follow silentaccord's instructions on OS X 10.4.8, I run into this:
Create a bootable HFS+ partition and a FAT32 partition on one external drive.
Okay soo even though things were looking messed up and I couldn't run fdisk, it still works fine on Windows sooooo I don't know why it's working but hey I'm not complaining... Off to reformat one of them to NTFS!
Create a bootable HFS+ partition and a FAT32 partition on one external drive.
Okay nevermind again, Partition Magic is labelling my entire drive as "BAD"... Bah, help please!
Intel method
It's been awhile since you asked so I hope you figured it out. I'll post what I know in case anyone else with an Intel Mac has trouble. All you should have to do are steps 1 and 2 from my previous post.
The default setting on Intel Macs when using the diskutil partitionDisk command is to create a GUID partition table (aka GPT). The FAT32 partition created this way should be recognized by Windows without having to create a master boot record. I was able to successfully reformat the FAT32 partition as NTFS from Windows (I'm not sure why you had trouble; maybe Partition Magic just doesn't like the GPT). The NTFS partition can then be mounted on the Mac but as always, it's read-only. Macs running OS X 10.3 or 10.4 can read and write to the HFS+ and FAT32 partitions but only Intel Macs will be able to boot from the HFS+ partition because of the GPT. OS X 10.2 seems to read both partitions fine but locks up when trying to write. OS 9 won't recognize the disk at all. It's still possible to do the old method with an Apple partition map on Intel Macs. You just have to add APMFormat to the command in step 2: diskutil partitionDisk disk1 2 APMFormat HFS+ Mac 18G MS-DOS PC 10GThe rest of the instructions remain the same except that I had to sudo the pdisk and fdisk commands. The advantage of doing it this way is that the HFS+ partition(s) will be bootable for PowerPC and Intel Macs (although an Intel system must be cloned to the drive since the Intel installer doesn't like APM disks). This method also retains OS 9 and OS X 10.2 compatibility.
Intel method, part 2
I forgot to mention that if the GPT scheme suits your needs, you can set it up from the Partition tab in Disk Utility without entering any Terminal commands. Just make sure GUID Partition Table is selected in Options, then choose Mac OS Extended (journaling optional) and MS-DOS File System for the partition formats.
couple notes for smooth sailing
three years down the line, this still works great. couple notes:
in step 2:
in step 3: ejecting from the finder (at least with the usb drive I used, but I assume with firewire too) will eject the disks, leaving
in step 4, that's |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.08 seconds |
|