Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting an install from VMWare AND normally?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Mio
n00b
n00b


Joined: 03 Jul 2005
Posts: 10

PostPosted: Mon Apr 17, 2006 11:19 pm    Post subject: Booting an install from VMWare AND normally? Reply with quote

Hello hello.

I'm trying to get my install of gentoo to be able to run both from a vmware session, and just being booted. I'm simply creating a virtual machine that uses that disk. (I have a line in grub.conf for the virtual one.) The only problem is that the names of the devices change. It's a SATA drive, but vmware likes to make the disk run on the IDE channel. Needless to say, this messes with my fstab file.

Can I create a second fstab and somehow redirect linux to it on boot?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Apr 18, 2006 12:18 am    Post subject: Reply with quote

Hi.

You can try to change the VMware driver from IDE to SCSI. That way, the disk will have an /dev/sdX name. If you only have one disk or if they're all SATA, you might be able to use the same /etc/fstab.
I have no idea how you might use more than one fstab file.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Mio
n00b
n00b


Joined: 03 Jul 2005
Posts: 10

PostPosted: Tue Apr 18, 2006 4:19 pm    Post subject: Reply with quote

I can't find an option for that. The only thing I'm able to choose is what IDE channel it's running on. I run it as a 64bit guest operating system, if that matters.


How, exactly, does linux know where to look for the fstab file? Is this something I can modify, like, check for some environmental variable that I set to see which fstab to load?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4734
Location: Angra do Heroísmo (PT)

PostPosted: Tue Apr 18, 2006 9:46 pm    Post subject: Reply with quote

I believe that the fstab file is hardcoded, but I'm not sure.
You need to look at the <vmware-guest>.vmdk, it's the 1kb file. You should see there the type of disk. I believe the disk controller is defined in <vmware-guest>.vmx. However, you should change these values in the guest options.
I'm sorry for not being more precise, but I don't have a vmware here to look at - I have mine at work.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
Kaste
Guru
Guru


Joined: 21 Dec 2005
Posts: 546
Location: /home Sweet /home

PostPosted: Tue Apr 18, 2006 10:34 pm    Post subject: Reply with quote

Did you have a look at this: http://gentoo-wiki.com/HOWTO_Install_Gentoo_on_VMware_in_Windows_NT/2K/XP ?

I had a lot of trouble getting it all to work especially the network card and the X configuration so be prepared for more. :/


This is probably what you want: https://forums.gentoo.org/viewtopic.php?t=46180 ! It is essentially a tool that let's you select the config files upon boot, similar to a windows hardware profile, that way you could boot with the right fstab matching the hardware you are on and as i said you will need that even if you get the harddrive to be scsi.
Back to top
View user's profile Send private message
Mio
n00b
n00b


Joined: 03 Jul 2005
Posts: 10

PostPosted: Wed Apr 19, 2006 2:47 am    Post subject: Reply with quote

"› Manage multiple hardware configurations, for example if you boot your system both within VMWare and in a normal dualboot configuration, or if you have a laptop that that may or not be in a docking station. "


Exxcccceeeeeelent.

Thank you. This is exactly what I need.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum