LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 06-18-2013, 01:25 PM   #1
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Rep: Reputation: 103Reputation: 103
Change Linux/Windows boot remotely


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.
 
Old 06-18-2013, 01:58 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 06-18-2013, 02:31 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
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'd think it more safe to use a VM.
 
Old 06-18-2013, 04:22 PM   #4
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by suicidaleggroll View Post
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.
 
Old 06-18-2013, 05:46 PM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
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.

Last edited by Z038; 06-18-2013 at 06:28 PM.
 
1 members found this post helpful.
Old 06-19-2013, 03:27 AM   #6
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
Quote:
Originally Posted by Z038 View Post
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 am not familiar with PXE servers
 
Old 06-19-2013, 05:33 AM   #7
vincix
Senior Member
 
Registered: Feb 2011
Distribution: Ubuntu, Centos
Posts: 1,240

Original Poster
Rep: Reputation: 103Reputation: 103
how to access real HDD from VM

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
 
Old 06-19-2013, 10:41 AM   #8
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
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.

Last edited by Z038; 06-19-2013 at 10:48 AM.
 
  


Reply

Tags
remote desktop, remote login, remotely



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
howto change samba password remotely from a windows client? yafrank Linux - Networking 8 08-04-2013 12:16 PM
Change password of linux servers remotely linux_bud Programming 2 11-26-2009 04:55 AM
change boot OS remotely zchoyt Linux - Software 6 11-02-2005 06:12 AM
howto change samba password remotely from a windows client? yafrank Linux - Software 2 01-21-2005 12:14 PM
How do I change the default boot from Windows to Linux? jdruin Linux - Newbie 4 04-26-2004 06:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration