Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
I am trying to control my computer remotely, but I need both Windows and Linux. I have Windows 7 and CentOS. So my question is: is there a way to boot back to Linux after having configured grub to boot Windows?
I am using teamviewer for Windows remote control and ssh for Linux.
I'm assuming the computer doesn't have IPMI, or some other board-level remote management system built in? If not, you may want to look into mounting your Linux partition on Windows so you can modify the default boot OS in Grub before rebooting out of Windows. This depends on what filesystem type you're using though, Windows doesn't support them all.
In some respects, a system is always controlled remotely.
Yes, if all issues are performed correctly, one can reboot some systems so that it would reboot to some OS. The web pages I had seen on that were more for installing Knoppix on a windows system before they made an installer.
You'd have to consider this task very carefully. Any mistake would mean you'd need physical access.
I'm assuming the computer doesn't have IPMI, or some other board-level remote management system built in? If not, you may want to look into mounting your Linux partition on Windows so you can modify the default boot OS in Grub before rebooting out of Windows. This depends on what filesystem type you're using though, Windows doesn't support them all.
Yes, well after reading about all kinds of software for editing ex4 under Windows I ended up with nothing. None of them worked (I tried 4 by now; ex2read, ex2 ifs, another ex2 sth., etc.). Any particular ideas?
And I don't want to use VM, not yet. It would be rather inconvenient now.
You wouldn't need to install your CentOS system in a VM under Windows. Just install a very small basic Linux system in a VM under Windows so you can mount your /boot partition and edit it before rebooting back to CentOS.
I'm not familiar with GRUB, but you might check to see if it can be installed in a vfat/fat32 filesystem that Windows can edit directly.
I wonder if it would be possible to network boot a Linux or a Windows image from a PXE server. You'd need another system on the same network to supply the boot images, and you'd have to login to it from your target system to change which boot image to serve on the next reboot. You'd need to enable PXE booting in your BIOS. I haven't really thought it through, but it might be worth considering.
You wouldn't need to install your CentOS system in a VM under Windows. Just install a very small basic Linux system in a VM under Windows so you can mount your /boot partition and edit it before rebooting back to CentOS.
I'm not familiar with GRUB, but you might check to see if it can be installed in a vfat/fat32 filesystem that Windows can edit directly.
I wonder if it would be possible to network boot a Linux or a Windows image from a PXE server. You'd need another system on the same network to supply the boot images, and you'd have to login to it from your target system to change which boot image to serve on the next reboot. You'd need to enable PXE booting in your BIOS. I haven't really thought it through, but it might be worth considering.
So basically what you're saying is I should install a linux distribution (whatever enables me to edit ext4) in a VM and give it access to my real hdd, right? I haven't thought of that, but that's what I am going to do. Great idea I'll post the results.
I've just realised that I actually don't know how to give a VM access to the real hdd. Any suggestions? For VirtualBox, that is. If not, then VMware maybe? Thanks
I was thinking of shared folders, but that won't work because you'd need to share a folder between your Windows host system and the Linux VM guest, but Windows doesn't support the underlying filesystem. Sorry about that.
There is another way, but the VirtualBox manual lists dire warnings about the dangers of using it. It is the raw host hard disk access support. Refer to the section in the manual titled "Advanced storage configuration" - http://www.virtualbox.org/manual/ch09.html
I believe the risk of /boot filesystem damage would be low in your case, because your real CentOS system would not be running and would not be using it at the time you modify it from the Linux guest running under Windows VirtualBox. Proceed carefully if you go this route.
If I were doing this, I'd use the "Access to individual physical hard disk partitions" method because my /boot filesystem is an isolated physical partition on my hard drive, i.e., /dev/sda1, and the rest of my system is in a LUKS encrypted LVM logical partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.