Live booting from a 512 MB RAM system then take an image from it?
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.
Live booting from a 512 MB RAM system then take an image from it?
Someone loaned me an--old--laptop for a few months (that hasn't been used for a couple years) which has a deprecated non-*nix on it. I doubt the loaner would want the system restored if I managed to install a secured linux on it, but just in case I'd like to make an image of it. The system has a P3, 512 MB RAM & 40 GB HDD, more precisely it's a Dell PP01L (Latitude C600). I haven't established yet if it can boot from USB, but it has a DVD player, a (tested) USB port and I have blank DVDs, an ext burner and ext HDD.
Which distribution and software would you recommend to live boot on the 512 MB RAM P3 to take an image from its HDD on a 4 TB ext HDD?
I'd go for Clonezilla. Text based UI and doesn't require much RAM.
The only thing I'd look into when you have something with that low RAM is that you may have to make a choice about compression method in order to stay within RAM limit. Also I'd recommend you run Memtest on it just to check the health of the RAM.
I'd go for Clonezilla. Text based UI and doesn't require much RAM.
Which commands would I need to run to do that? Please note I'm not much of a *nix user. If I have to also mount the ext HDD and setup some kind of temporary file, I'd be lost without examples.
It should run on most computers, ranging from 256MB old PIII systems with pre-configured swap to the latest powerful boxes. 256MB RAM is recommended minimum for antiX. The installer needs minimum 4.0GB hard disk size.
Every member at LQ has their preference on backup/clones. No one choice suits all. My choice depends on the system and OS and what resources I have. Every distro usually has some feature baked in and always in package manager.
dd is a bit by bit copy of the entire storage so it kind of helps to have loader and not normally easy to copy using file by file. dd copies all the space even if unused. Some folks zero out unused space to make compression sort of negate the space. No compression means a 40G drive will take somewhere around that in a file.
Clonezilla tries to copy file by file if it knows the filesystem. If not it defaults to bit by bit. It saves a number of files that helps it return to original state. It too has an ability to clone over lan or deploy over lan.
If you want you can use Gparted to save a partition off but it won't be the entire drive.
There are many file by file copy programs. If you don't mind re-creating the loader or other unique areas then a file by file is pretty good.
The clonezilla site had examples at one time. Should still be there but web will show how to clone with it.
NOTE. dd is a very unforgiving command. You have to be very careful when using it.
dd with netcat even could be used. Linux commands can be piped to other programs is the example.
$sudo dd if=/dev/<letter for source drive> of=/dev/<letter for target drive>/<your choice of a filename> bs=4M
When you boot linux off of a USB drive, it should discover your internal HDD and call it something like /dev/sda, or /dev/sdb, etc. That would be your if= "input file", another attached external HDD would get another name /dev/sda or /dev/sdb/ or other. Make sure you understand which is which, an fdisk -l will help with that.
sudo is to allow you to have root privileges when you do this command, because you will need them. If the Linux version console has # as a prompt, mostly likely you are already root, so you may not need sudo. Usually you will though.
bs=4M is to use block size of 4M, you don't have to, but sometimes it helps make the copy faster.
That will do it.
As far as finding a version of Linux to boot, web search, I've not tried to boot any modern Linux versions with that little memory in a while. Also may need to know if that machine is 32-bit, seems like it may be with that tiny of a HDD.
Clonezilla doesn't copy file by file. If it knows the filesystem, it copies just the parts with data on them.
It also copies the partition table and all the other low-level bits.
Restriction:- If you restore it to a disk, it must be at least as big as the source disk - 40GB in this case.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.