Jump to content

vmware ntfs-3g Disk order issue


5 posts in this topic

Recommended Posts

running kalyway 10.5 plus Punk92 nvidia driver (8600 GT f4tal1ty;) and ntfs-3g

set up the vm in fusion as usual using three phisical disks. i have one ide hd with OSX and three sata hd with ntfs, one with Windows XP

 

i can use all ntfs disks on fusion but the problems begin when i reboot the OSX..

every time a reboot is done the disks change their device names, like what was disk0s1 becomes disk2s1 and so on.

is this behavior normal ? does anybody else than me have this problem?

 

so i spent this afternoon thinking this out and made a script to redo the vmdk files in case of problems.

take a look:

 

   #!/bin/bash

function status {
	printf "\n$1\n"
}

sistema=`/Users/danielbpm/Desktop/fix_fusion/diskfind Sistema`
daniel=`/Users/danielbpm/Desktop/fix_fusion/diskfind Daniel`
audio=`/Users/danielbpm/Desktop/fix_fusion/diskfind Audio`

discosistema=`echo $sistema | sed 's/^\(disk[0-9]*\)s.*$/\1/g'`
partsistema=`echo $sistema | sed 's/^disk[0-9]*s\([0-9]*\)$/\1/g'`

discodaniel=`echo $daniel | sed 's/^\(disk[0-9]*\)s.*$/\1/g'`
partdaniel=`echo $daniel | sed 's/^disk[0-9]*s\([0-9]*\)$/\1/g'`

discoaudio=`echo $audio | sed 's/^\(disk[0-9]*\)s.*$/\1/g'`
partaudio=`echo $audio | sed 's/^disk[0-9]*s\([0-9]*\)$/\1/g'`

rm -v /Users/danielbpm/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/*.vmdk

/Library/Application\ Support/VMware\ Fusion/./vmware-rawdiskCreator create /dev/"$discosistema" "$partsistema" /Users/danielbpm/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/win ide

/Library/Application\ Support/VMware\ Fusion/./vmware-rawdiskCreator create /dev/"$discodaniel" "$partdaniel" /Users/danielbpm/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/daniel ide

/Library/Application\ Support/VMware\ Fusion/./vmware-rawdiskCreator create /dev/"$discoaudio" "$partaudio" /Users/danielbpm/Documents/Virtual\ Machines.localized/Windows\ XP.vmwarevm/audio ide

status "Done."

 

 

what this script do is as follow:

check what device name each hd has by looking for its partition name (diskfind from ToH in /usr/misc) and store in vars;

run some regex to clean out the device name and sets results in vars;

clean non-working vmdk files;

creates new vmdk files based on vars;

prints out done !

 

its doing great now, but every time before running fusion after a reboot i have to run this script.

any ideas to stop the messed up disk ordering ?

 

thx !

Link to comment
Share on other sites

  • 2 months later...

Yes the bahaivor is that way, if you have several disks and you boot in single user mode, then mount the main volume as writeable you will see that most of the times it has not the same device name.

 

Maybe you can do something with UUIDs which are unique in each volume.

Link to comment
Share on other sites

Yes the bahaivor is that way, if you have several disks and you boot in single user mode, then mount the main volume as writeable you will see that most of the times it has not the same device name.

 

Maybe you can do something with UUIDs which are unique in each volume.

 

Thanks a lot for the prompt reply. I'm a bit surprise to hear this is a normal behavior. This should be a widespread problem to all users that have vmware or parallels and have more than 1 hard disk on their systems. I only found 1 post in this forum mentioning the disk order problem, but no solutions yet. I'm just wondering how do other people having the same setup bare with this issue.

 

BTW, I've just moved to OSX from Windows world and I'm not sure how you can use UUID to solve/bypass the problem at hand. Can you share some light on it? I do have much experience in *nix, just not OSX.

Link to comment
Share on other sites

I really don't know how can be used on Mac, but my first google "Mac UUID" gives this:

http://www.jaharmi.com/2008/03/15/get_uuid..._mac_with_ioreg

 

I used UUID in Linux to indentify the Main volume to be mounted as root on Kubuntu/Grub but never on Mac.

 

EDIT:

More: http://www.macosxhints.com/article.php?sto...060930150059172

 

 

EDIT2:

Maybe another aproach can be used:

On Terminal:

diskutil list | awk '/Windows_NTFS/ { print $6; }'

gives me the diskXsY of any NTFS volume I have.

 

diskutil list | awk '/Windows_FAT_32/ { print $6; }'

gives me the diskXsY of any FAT32 volume I have.

Link to comment
Share on other sites

 Share

×
×
  • Create New...