Gremlin Posted September 26, 2013 Posted September 26, 2013 I am not a Linux admin by any means. I have installed Linux on a virtual machine. In that VM i have added three hard drives let's say 100GB, 200GB and 300 GB which are VM's as well. So when you go into linux and do fdisk -l you will see /dev/sdb pointing to 100GB /dev/sdc pointing to 200GB /dev/sdd pointing to 300GB format it and everything works fine as it is supposed to. Now when the machine is rebooted, drives get swapped like for example: /dev/sdb pointing to 200GB /dev/sdc pointing to 300GB /dev/sdd pointing to 100GB I would like it to be as it was before when it was originally started. In the /etc/fstab, I mapped/mounted the drives using the UUID of the drives and it still swaps. I am trying to make it work with udev and rules.d. I have been googling since yesterday to find out if there is any other way. Can someone please provide any help would really appreciate it Thank you Share this post Link to post Share on other sites More sharing options...
Locutus Posted September 26, 2013 Posted September 26, 2013 It's probably an issue with your VM program? Share this post Link to post Share on other sites More sharing options...
Gremlin Posted September 26, 2013 Posted September 26, 2013 yes .. finally figured it out you can't do it on a vmware machine.. run this command : udevadm info -a -n /dev/sdb | more and you get this output as below : looking at device '/devices/pci0000:00/0000:00:15.1/0000:04:00.0/host3/target3:0:0/3:0:0:0/block/sdb': KERNEL=="sdb" SUBSYSTEM=="block" DRIVER=="" ATTR{range}=="16" ATTR{ext_range}=="256" ATTR{removable}=="0" ATTR{ro}=="0" ATTR{size}=="419430400" ATTR{alignment_offset}=="0" ATTR{discard_alignment}=="0" ATTR{capability}=="52" ATTR{stat}==" 390 1 3128 97 0 0 0 0 0 97 97" ATTR{inflight}==" 0 0" looking at parent device '/devices/pci0000:00/0000:00:15.1/0000:04:00.0/host3/target3:0:0/3:0:0:0': KERNELS=="3:0:0:0" Booting depends on the value of this line : KERNELS=="3:0:0:0" Example you add a disk into a new OS, run the above command.. and check the value of the KERNELS. If it is 3, and you reboot it will be fine.. If the value is any other than 3, it will get swapped on reboot... oh well Share this post Link to post Share on other sites More sharing options...
Waco Posted September 27, 2013 Posted September 27, 2013 Try VirtualBox...it's probably slightly better about drive mapping. Share this post Link to post Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now