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 have Peppermint running on my Aspire, and I want to make a disk image of my current installation. I don't have a CD attached. Can I use DD or some other utility to make a .ISO on a USB drive?
Remember, I'm new to Linus, so I need pretty specific instructions...
You can make an image of the entire drive to a file, though keep in mind that you wont be able to open that image easily later on. If you want to make a backup that you can mount later and get files out of, you will need to image just individual partitions. A "dd" backup of the entire drive is only good for completely restoring the machine to a previous state.
Also, you can't make an image of a running system and expect to then be able to recover from that image later. There are many files that are in a different state when the machine is running than when it is shut down, and files are constantly being modified while the machine is in operation anyway. To get a usable backup, you will need to boot the machine to a live environment first so that the OS is shut down and nothing is changing.
If you don't have a CD drive, then things are a little more complicated. I would normally say to boot into a live CD and write the image that way, but it looks like in your case you will need to boot to one USB drive and write to a second one. Performance of this setup is probably going to be pretty bad due to the shared bandwidth nature of USB devices.
Ok, I understand that. My aim is to have an image that I can restore later, if I hose my current setup.
I don't have a CD handy that I can attach, but I do have an external USB HD attached, where I store all my files, just in case I need to replace the OS. I also have USB sticks available. So, I can boot from a USB, and write to the HD. I can then transfer the .ISO file from the HD to my network, and can use unetbootin to make a bootable USB version of my current system. Or, just restore it, correct?
It won't be an image of a CD (iso 6990 image), but an image of the hard drive. If the image is larger than 2GB, make sure you don't use the FAT32 filesystem to save the image file.
sudo dd if=/dev/sda of=/mnt/usbdrive/aspire.img
You may want options for a larger block size, to speed things up.
Another program you could use is ddrescue:
sudo /bin/dd_rescue /dev/sda /mnt/usbdrive/aspire.img
It seems to run fast, and if there is an error reading a block on your hard drive, it will reduce the block size, and it won't abort.
I don't suppose there is some nice GUI app that will let me do this? I can boot Peppermint from a thumb drive, and send the image to a USB hard drive. I'm only copying the SSD in the Aspire.
Would be nice to have a small gui that asks where from and where to and then asks for a compression level.
Basically the command line is "dd" (copy) "if" (is from) "of" (is to)
If you want at the end you can include a | (pipe) gzip
That means, while you copy (dd) I want you to compress the file so I don't end up with a large file..
Might post a question on programming for this. I'd think that someone would be able to make a small app in a few minutes that does this.
I will say this however. I would suggest you boot to a usb flash drive. Then use dd or some app to copy data off to a second flash drive. Clonezilla can be put on a flash drive that may be fine for your use.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.