Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to switch to running Linux from RAM or RAM disk after starting starting initially from disk?

eg. You need to make an image of your hard disk, FTP it to a remote location, some time later you want the image back, so you start the system from disk as usual, restore the image you FTP'd from the remote location back into place.

More like a CloneZilla backup and restore, without booting the server from CD or USB disk, but starting from the normal hard disk?

Notes on environment I should have mentioned it earlier. It is a remotely hosted VM where I cannot boot into a recovery console mode or do a netinstall. It will always boot onto the same disk. Which means that if there is some serious corruption I can't repair it offline, which is why being able to ftp a previously saved backup into place is so important

share|improve this question
Are you doing the initial setup of this system? Have you considered setting up LVM and leaving free space in you VG? With LVM it should be pretty easy to at any point in the time to create a new logical volume, copy a working filesystem to it, and adjust your bootloader to use the new LV as root. – Zoredache Nov 17 '10 at 21:19
I am not doing the setup myself. It is a VPS hosting provider who have not yet implemented a proper backup or a rescue mode system. It is more or less in a beta state. The disk creation and the booting is totally outside my control. I can only read and write to the disk. There are some suggestions here about pivot_root and kexec I am not familiar with. My idea is to switch root to some NFS system in the same datacentre and follow the kexec or pivot root options from there. – vfclists Nov 17 '10 at 21:41
up vote 0 down vote accepted

If you really need to do this without restarting, you're looking for pivot_root.

share|improve this answer

Its called PXE booting,network booting or diskless booting..

Its great to run servers without disks... Is this what you want to do?

if you pull down a PXE image, you can basically do anything :D

share|improve this answer

You could do this in a number of ways. You could just completely netboot, as Arenstar suggests. Or, you could boot into a normal environment, transfer the new one into to place, and use kexec to start it.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.