Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My windows motherboard failed so I used instructions on how to use a physical hard drive with Virtualbox Vm. I moved the hard drive to my linux box. I already made backups of the win7 hard drive.
So the problem seems to be Virtualbox doesn't have r/w permissions on the hard drive. Another forum said they ran Vbox as root and it worked for them. But I can't figure out how to run Vbox as root. I usually log in as a regular user, not root user. I know how to use sudo, but don't know how to start the vbox gui from command line(searched for that and couldn't find an answer either)
I should be able to change fstab the uid and guid on the hard drive to allow vboxusers group, but my patience has run out, been working on this for a week.
You don't need to run virtualbox as root as far as I know. You need to create a virtual machine where the virtual hard drive is attached as the physical drive.
The problem is that your windows 7 will complain about this massive hardware change. You might be able to correct the hal.
this is what I was following and it doesn't work because Virtualbox says it doesn't have permissions to the physical hard drive(or at least that is how I interpret it)
Quote:
Originally Posted by jefro
You don't need to run virtualbox as root as far as I know. You need to create a virtual machine where the virtual hard drive is attached as the physical drive.
The problem is that your windows 7 will complain about this massive hardware change. You might be able to correct the hal.
Mount the disk as rw, change the owner/group to a user such as root:root then attach the drive to VirtualBox and boot it up?
You SHOULD NOT run VirtualBox as root, or ever have need to for any reason.
Why exactly is this disk being mounted as read only? Is it possible it has errors in the file system and Linux is mounting it read only to prevent further damage to the disk?
I think focusing on why the disk is being mounted read only rather than why you can't use it in VirtualBox will lead you to a solution.
I'm having trouble figuring out how to edit fstab by command line. googling how to's...
You should check out the man page by typing:
Code:
man fstab
Most of the time it's not necessary to google Linux related issues if you just read the man pages. Being completely reliant on google for answers regarding your operating system leave you crippled when you have no internet connection...
If you're not able to access a physical drive with VBox, you could convert a disk-image/clone of your Windows install to a .vdi file that VBox can use:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.