Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rate Thread Display Modes
Old 07-06-2004, 09:35 PM   #1
G4Grover
Prospect
 
Join Date: Jul 2004
Posts: 27
How to convert UFS to HFS+ on drive?

When I last loaded my laptop, I partitioned the drive and created a storage drive titled Media&Docs. For some reason, I chose UFS (new to Unix and Mac OS X)

Now I want to convert the partition to HFS+, however I can't seem to do this. In Bash I have been using the diskutil command however I get an error when I try to erase this partition using HFS+

Here is my config (the partition in bold green is the partition I am interested in converting.)

Jason-Grovers-Computer:~ Jason$ diskutil info /
Device Node: /dev/disk0s3
Device Identifier: disk0s3
Mount Point: /
Volume Name: OSX

File System: Journaled HFS+
Journal size 8192 k at offset 0xa0000
Permissions: Enabled
Partition Type: Apple_HFS
Bootable: Is bootable
Media Type: Generic
Protocol: ATA

Total Size: 19.7 GB
Free Space: 14.5 GB

Read Only: No
Ejectable: No

Jason-Grovers-Computer:~ Jason$ diskutil info /dev/disk0s5
Device Node: /dev/disk0s5
Device Identifier: disk0s5
Mount Point: /Volumes/Media&Docs
Volume Name: Media&Docs

File System: UFS
Partition Type: Apple_UFS
Bootable: Is bootable
Media Type: Generic
Protocol: ATA

Total Size: 35.0 GB
Free Space: 32.7 GB

Read Only: No
Ejectable: No



here is the command I've been using

diskutil erasevolume HFS+ Storage /dev/disk0s5

And the response I get is

Could not unmount disk for making it bootable
error with erase Could not unmount disk (-10000)


Any help or suggestions? I've tried the search to no avail.

This is all on a PB 1.3g with OSX 10.3.4

Thanks in advanced!

Jason
G4Grover is offline   Reply With Quote
Old 07-06-2004, 09:57 PM   #2
G4Grover
Prospect
 
Join Date: Jul 2004
Posts: 27
Disregard the above - problem solved by booting to the recovery disk and using diskutil on it.

I am still unsure why it couldn't unmount the disk, no system files or installations were on it.

one of those things I guess...
G4Grover is offline   Reply With Quote
Old 07-06-2004, 10:07 PM   #3
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,046
Next time, try prefixing your system-level commands with `sudo`: only the root user can play with the hardware. This is why Disk Utility asks for your password if you are not an admin user already
acme.mail.order is offline   Reply With Quote
Old 07-06-2004, 10:37 PM   #4
G4Grover
Prospect
 
Join Date: Jul 2004
Posts: 27
<smacks forehead>

Doh! That's obvious now that you mention it...

Thanks!
G4Grover is offline   Reply With Quote
Old 05-22-2005, 06:51 AM   #5
gctwnl
Registered User
 
Join Date: May 2005
Posts: 1
It's not sudo in my case

Quote:
Originally Posted by acme.mail.order
Next time, try prefixing your system-level commands with `sudo`: only the root user can play with the hardware. This is why Disk Utility asks for your password if you are not an admin user already

That is not it. I get completely the same, even when using sudo. My guess is that you just cannot do this for a bootable partition on your startup disk.

Even adding 'nonbootable' to the command will not help

$ sudo diskutil eraseVolume 'UFS' Classic nonbootable /dev/disk0s10
Password:
error with erase Could not unmount disk (-10000)

The end situation is that the disk is unounted, but not reformatted. It can be remounted using disktool, but still something like

sudo diskutil eraseVolume UFS Classic /dev/disk0s10

just does not work, whatever I try. And something simple as unmounting a volume, changing the file system from HFS+ to UFS does not work either.

But I did notice that this works:

$ sudo diskutil eraseVolume 'HFS+' Classic nonbootable /dev/disk0s10
Password:
Started erase on disk disk0s10 Classic
Erasing
Mounting Disk

Finished erase on disk disk0s10 Classic

but this doesn't:

$ sudo diskutil eraseVolume 'UFS' Classic nonbootable /dev/disk0s10
Password:
error with erase Could not unmount disk (-10000)

Finished erase on disk disk0s10 Classic

So it is from HFS+ to UFS that does not work. But from HFS+ to HFS+ does work.
gctwnl is offline   Reply With Quote
Old 05-22-2005, 10:47 AM   #6
toppledwagon
Prospect
 
Join Date: May 2005
Posts: 41
A volume that is in use can not be unmounted. In use can include:
iTunes playing music from that volume
Any program with an open file from that volume
Any shell being 'in' a directory on that volume
Any program running from that volume

-Dave
toppledwagon is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:27 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.