overdue-scratch

Author Topic: fdisk: device busy during manual install  (Read 7736 times)

0 Members and 1 Guest are viewing this topic.

rizmo12

  • Observer
  • Posts: 10
fdisk: device busy during manual install
« on: May 13, 2010, 06:12:35 AM »
There is probably a really simple solution to this so here it goes.  When trying to do the manual install, I get this on step one

Code: [Select]
sudo fdisk -f /Volumes/OSX86/Chameleon-2.0-RC4-r684-bin/i386/boot0 -u -y /dev/rdisk1
Password:
fdisk: /dev/rdisk1:  Device busy

I have tried this

Code: [Select]
lsof | grep /dev/disk1
...and no output.

What am I doing wrong?  Thanks for any help.

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: fdisk: device busy during manual install
« Reply #1 on: May 14, 2010, 02:40:23 PM »
Type diskutil list and post the output.
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #2 on: May 14, 2010, 03:31:53 PM »
Code: [Select]
/dev/disk0   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *37.3 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:         Apple_Driver43                    28.0 KB   disk0s2
   3:         Apple_Driver43                    28.0 KB   disk0s3
   4:       Apple_Driver_ATA                    28.0 KB   disk0s4
   5:       Apple_Driver_ATA                    28.0 KB   disk0s5
   6:         Apple_FWDriver                    256.0 KB  disk0s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk0s7
   8:          Apple_Patches                    256.0 KB  disk0s8
   9:              Apple_HFS Macintosh HD       37.1 GB   disk0s10
/dev/disk1
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *7.5 GB   disk1
   1:    Apple_partition_map                    31.5 KB   disk1s1
   2:              Apple_HFS OSX86              7.3 GB    disk1s3
/dev/disk3
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *45.1 MB  disk3
   1:    Apple_partition_map                    31.5 KB   disk3s1
   2:              Apple_HFS BitTorrent-4.27.2-Beta 45.1 MB   disk3s2

disk1 is my usb drive that I am trying to prepare for an OSX install.  FYI, the Mac that I am trying to prepare this usb stick on is a iBook G4 running OSX 10.3.9.
Thanks again
« Last Edit: May 14, 2010, 03:35:35 PM by rizmo12 »

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: fdisk: device busy during manual install
« Reply #3 on: May 14, 2010, 03:51:09 PM »
Partition disk1 using a GUID partition table then try again.
I did what you are trying to do, albeit an HDD, from 10.5.8 on my PowerMac G5. See the screenshot in this post for reference.

I have also attached a screenshot of the steps I used to write Chameleon to an 8GB USB stick. Don't be confused by the name of the USB as it's called 'Mac OS X install DVD'.
« Last Edit: May 14, 2010, 03:56:35 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #4 on: May 14, 2010, 09:54:21 PM »
thanks Blackosx, I will try this as soon as I get home.  keep you posted.

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #5 on: May 16, 2010, 06:08:41 AM »
I reformatted GUID and restored the img again.  Here is my

Code: [Select]
AR-Computer:~ ar$ diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *37.3 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:         Apple_Driver43                    28.0 KB   disk0s2
   3:         Apple_Driver43                    28.0 KB   disk0s3
   4:       Apple_Driver_ATA                    28.0 KB   disk0s4
   5:       Apple_Driver_ATA                    28.0 KB   disk0s5
   6:         Apple_FWDriver                    256.0 KB  disk0s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk0s7
   8:          Apple_Patches                    256.0 KB  disk0s8
   9:              Apple_HFS Macintosh HD       37.1 GB   disk0s10
/dev/disk1
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *7.5 GB   disk1
   1:    Apple_partition_map                    30.0 KB   disk1s1
   2:     Apple_Driver_ATAPI                    986.5 MB  disk1s2
   3:              Apple_HFS Mac OS X Install DVD 6.3 GB    disk1s3
AR-Computer:~ ar$

Then I did this

Code: [Select]
AR-Computer:~ ar$ sudo  /Users/ar/Desktop/Chameleon-2.0-RC4-r684-bin/i386/fdisk -f boot0 -u -y /dev/rdisk1
-bash: /Users/alyssarobinett/Desktop/Chameleon-2.0-RC4-r684-bin/i386/fdisk: Bad CPU type in executable
AR-Computer:~ ar$

Any ideas?
« Last Edit: May 16, 2010, 04:27:20 PM by rizmo12 »

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #6 on: May 18, 2010, 03:43:09 PM »
Is is because the fdisk included in the chameleon package doesn't jive with the mac ibook g4 (osx 10.3.9) that I am using?  I know you are supposed to use the fdisk included, but when I use the local fdisk I get the "device busy" error.  Should I attempt to install chameleon on this usb stick from a newer mac?

Gringo Vermelho

  • Forum Moderator
  • Posts: 611
  • The gray monster energy hat
Re: fdisk: device busy during manual install
« Reply #7 on: May 18, 2010, 04:13:00 PM »
Yes, the original 'Chameleon fdisk' was Intel only. IIRC there's an updated one around here somewhere that was compiled to run on PPC as well. Maybe in the patches section.

/EDIT...I can't find it. Hopefully someone else knows where it is.
« Last Edit: May 18, 2010, 05:59:25 PM by Gringo Vermelho »
10.9.5 - ASUS P8Z77-V Pro - i5 3570K - GTX 660 - Chameleon 2.3 svn-r2xxx
How to...
Install Chameleon: http://forum.voodooprojects.org/index.php/topic,649
Make your own Chameleon boot CD: http://forum.voodooprojects.org/index.php/topic,484.msg2131.html#msg2131

rocksteady

  • Global Moderator
  • Posts: 233
  • Root Down
Re: fdisk: device busy during manual install
« Reply #8 on: May 18, 2010, 04:28:31 PM »
it's here

Blackosx did some tests on a G5 and they came out clean
Stop bitching, start coding or documenting or both..

P5Q-EM : Q6600 : 8GB RAM : 8800GT : SATA Drives

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #9 on: May 18, 2010, 05:58:55 PM »
Success with fdisk440.  Thank you much, been waiting for that.  One last question, what would my command line look like to copy boot to the root of my usb stick?  Here is my diskutil list again

Code: [Select]
AR-Computer:~ ar$ diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *37.3 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:         Apple_Driver43                    28.0 KB   disk0s2
   3:         Apple_Driver43                    28.0 KB   disk0s3
   4:       Apple_Driver_ATA                    28.0 KB   disk0s4
   5:       Apple_Driver_ATA                    28.0 KB   disk0s5
   6:         Apple_FWDriver                    256.0 KB  disk0s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk0s7
   8:          Apple_Patches                    256.0 KB  disk0s8
   9:              Apple_HFS Macintosh HD       37.1 GB   disk0s10
/dev/disk1
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *7.5 GB   disk1
   1:    Apple_partition_map                    30.0 KB   disk1s1
   2:     Apple_Driver_ATAPI                    986.5 MB  disk1s2
   3:              Apple_HFS Mac OS X Install DVD 6.3 GB    disk1s3

Thanks again.

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #10 on: May 18, 2010, 10:22:07 PM »
Got it.  That last post was a little lazy on my part.  Figured it out thanks to the screenshot, Blackosx.  Here was my results

Code: [Select]
AR-Computer:~ ar$ sudo /Users/ar/Desktop/fdisk440  -f boot0 -u -y /dev/rdisk1
Password:
dyld: /Users/ar/Desktop/fdisk440 Undefined symbols:
/Users/ar/Desktop/fdisk440 undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap
AR-Computer:~ ar$ sudo dd if=/Users/ar/Desktop/Chameleon-2.0-RC4-r684-bin/i386/boot1h of=/dev/rdisk1s2
dd: /dev/rdisk1s2: Permission denied
AR-Computer:~ ar$ diskutil list
/dev/disk0
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *37.3 GB  disk0
   1:    Apple_partition_map                    31.5 KB   disk0s1
   2:         Apple_Driver43                    28.0 KB   disk0s2
   3:         Apple_Driver43                    28.0 KB   disk0s3
   4:       Apple_Driver_ATA                    28.0 KB   disk0s4
   5:       Apple_Driver_ATA                    28.0 KB   disk0s5
   6:         Apple_FWDriver                    256.0 KB  disk0s6
   7:     Apple_Driver_IOKit                    256.0 KB  disk0s7
   8:          Apple_Patches                    256.0 KB  disk0s8
   9:              Apple_HFS Macintosh HD       37.1 GB   disk0s10
/dev/disk1
   #:                   type name               size      identifier
   0: Apple_partition_scheme                    *7.5 GB   disk1
   1:    Apple_partition_map                    30.0 KB   disk1s1
   2:     Apple_Driver_ATAPI                    986.5 MB  disk1s2
   3:              Apple_HFS Mac OS X Install DVD 6.3 GB    disk1s3
AR-Computer:~ ar$ sudo dd if=/Users/ar/Desktop/Chameleon-2.0-RC4-r684-bin/i386/boot1h of=/dev/rdisk1s3
Password:
2+0 records in
2+0 records out
1024 bytes transferred in 0.022511 secs (45489 bytes/sec)
ARComputer:~ ar$ sudo cp /Users/ar/Desktop/Chameleon-2.0-RC4-r684-bin/i386/boot /Volumes/Mac\ OS\ X\ Install\ DVD
Password:
AR-Computer:~ ar$

Just to make sure, is there any issues with that dlyd message?
 

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: fdisk: device busy during manual install
« Reply #11 on: May 19, 2010, 01:59:02 PM »
Hi rizmo12

I see you're still working on this.. well done for your dedication to the task :)
When using the fdisk440 binary, double check you do not have a double space after it.
« Last Edit: May 19, 2010, 02:06:01 PM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

rizmo12

  • Observer
  • Posts: 10
Re: fdisk: device busy during manual install
« Reply #12 on: May 20, 2010, 03:21:50 AM »
Blackosx, you were right with the double space but I executed with the same error, see below.

Code: [Select]
AR-Computer:~ ar$ sudo /Users/ar/Desktop/fdisk440 -f boot0 -u -y /dev/rdisk1
Password:
dyld: /Users/ar/Desktop/fdisk440 Undefined symbols:
/Users/ar/Desktop/fdisk440 undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap
AR-Computer:~ ar$

Should I attempt to use the usb install or does this affect my chamaleon install?
 

Blackosx

  • Forum Moderator
  • Posts: 1150
Re: fdisk: device busy during manual install
« Reply #13 on: May 20, 2010, 08:51:22 AM »
Hi rizmo12

I think it's because you need to precede fdisk440 with ./ in Terminal.
Let's see if we can get you sorted... I have just done it here, so follow these steps.

Prepare USB stick
• Insert USB stick
• Load up Disk Utility and, select your USB stick from the left, click the Partition (3rd Tab) in main window.
• Choose 1 Partition from the drop down menu, Mac OS Extended from the Format drop down menu.
• Give it a name, I used ChameleonUSB, Click 'Options' button, selecting GUID Partition Table. Click 'Apply'.

Get Chameleon files ready to use
• Download the attached Chameleon RC4 Build with fdisk440 included.
• Copy it to your desktop and double click it to unarchive it.

Write the Chameleon files to the USB using Terminal app
• Load up Terminal and type the following

diskutil list
cd   then a space, then drag i386 folder from inside the unarchived Chameleon_Fdisk440 folder on your desktop to the Terminal window.
sudo -s
Enter your password
./fdisk440 -f boot0 -u -y /dev/rdisk2     2 should be the IDENTIFIER number of your USB drive (shown in Disk Utility).
dd if=boot1h of=/dev/rdisk2s1               2 and 1 are the IDENTIFIER numbers of your ChameleonUSB partition (shown in Disk Utility).
cp boot /Volumes/ChameleonUSB
exit

I have attached a screenshot of these steps being entered in to Terminal for reference.

That should be what you need to install the Chameleon files. But before using it, you will however, still need to create an Extra folder and add the required files for your system..

« Last Edit: May 20, 2010, 10:14:50 AM by Blackosx »
10.10.5 / 10.11 GM1 | Asus Maximum IV Gene-Z | i7-2600 3.40GHz | 4GB | Radeon 5770 1GB

zef

  • Administrator
  • Posts: 265
Re: fdisk: device busy during manual install
« Reply #14 on: May 20, 2010, 12:28:12 PM »
Blackosx, you were right with the double space but I executed with the same error, see below.

Code: [Select]
AR-Computer:~ ar$ sudo /Users/ar/Desktop/fdisk440 -f boot0 -u -y /dev/rdisk1
Password:
dyld: /Users/ar/Desktop/fdisk440 Undefined symbols:
/Users/ar/Desktop/fdisk440 undefined reference to ___stderrp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdinp expected to be defined in /usr/lib/libSystem.B.dylib
/Users/ar/Desktop/fdisk440 undefined reference to ___stdoutp expected to be defined in /usr/lib/libSystem.B.dylib
Trace/BPT trap
AR-Computer:~ ar$

Should I attempt to use the usb install or does this affect my chamaleon install?

I think this fat fdisk440 binary won't work on 10.3 or 10.4, as you see the standard system library doesn't have the necessary functions. You need at least 10.5.
ASUS P8Z68-V PRO/GEN3 | i5-2500k | 16GB RAM | GTX560 | Keyboard | Mouse | Devilsound DAC