Changing the Linux version starting from operational Linux
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.
Changing the Linux version starting from operational Linux
Hi,
I'm looking if it is possible to change the whole Linux install without having to boot up using a live-cd.
The purpose is to remotely log on to a machine using SSH or other to replace the complete installation, without loosing network setup so I don't loose contact with it.
Perhaps loading the live-cd while linux is already running?
Can anyone help me with this?
You're not making a lot of sense in my opinion, at least I personally don't understand what you want/need. How would you 'reinstall' a system without loosing network connection? At some point you'll always loose your network connection if you're switching to the 'new' install. Can you please elaborate on what you're trying to obtain? And also, it wouldn't be a bad idea to as the site admin Jeremy to change your nick. Putting your email as nick is a pretty bad idea, that is if you don't like spam.
Thanks for the quick response. You have to image two systems. One embedded on one side of the planet and one normal system on the other. One of the systems should be able to completely overwrite the other without loosing connection. That would be the ideal world.
Of course when I reboot (bad term) I will loose connectivity. But the point is that I need the other system to get in a state where a second linux is turning in RAM so I can overwrite the ROM. (Here I meant the comparison with the live-cd) But once overwritten, I need to be able to change network settings that are default on the overwritten system, otherwise when I reboot, I will have a permanent lost connection and intervention will be inevitable. What I don't want of course.
To do some tests on this, I was trying to start a little project to try to update a system remotely. The questions that had risen were:
Is there a possibility to load something like a live-cd while linux is already running?
If so, can the files be placed on a mount instead of a cd-rom?
And if the last is possible, can the updated version of linux (not running at the moment) be updated itself to another network configuration so it will connect again to the network as nothing ever happened?
On a Debian system it is possible, if you have a spare partition on your mass storage device. You can mount this partition, then install a new base system with debootstrap. After that you copy the network settings from your old install, chroot into your new system and customize it as you need. If you are ready with that setup the bootloader to boot into the new system and reboot.
I think the simplest way is going to be via a temporary dual boot as in
1. obtain enough space to install the core of the new system. ~5GB ?
2. install new system
3. set orig grub (old system) to default to new system
4. issue reboot
5. HW will boot new system
6. remove old system
7. complete remaining install requirements
The best way to perform remote administration is to virtualize the Linux instance that's on the other side of the planet. Install it under VMWare or the like. Then you can manipulate the OS to your heart's content. If you fat-finger a network configuration and lose all connectivity, you'll still be able to access tty0 via the VM layer.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.