LinuxQuestions.org
Review your favorite Linux distribution.
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 11-25-2011, 08:57 AM   #1
JRinKC
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Rep: Reputation: Disabled
Disk image to USB


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...

Thanks!
 
Old 11-25-2011, 09:19 AM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
Old 11-25-2011, 10:03 AM   #3
JRinKC
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 11-25-2011, 10:44 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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

Last edited by jschiwal; 11-25-2011 at 10:53 AM.
 
Old 11-25-2011, 11:50 AM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by jschiwal View Post
It won't be an image of a CD (iso 6990 image), but an image of the hard drive.
you said this to point out that .iso isn't an adequate file extension, I guess. Then you missed the point. ;-)

Quote:
Originally Posted by jschiwal View Post
If the image is larger than 2GB, make sure you don't use the FAT32 filesystem to save the image file.
The file size limit of FAT32 is 4GB, not 2GB. But that hardly matters - most HDD partitions will probably be larger than 4GB anyway.

[X] Doc CPU
 
Old 11-25-2011, 02:53 PM   #6
JRinKC
LQ Newbie
 
Registered: Nov 2011
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-25-2011, 04:51 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,996

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


Reply



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
Convert RHEL 5.1 Desktop DIsk Image to Laptop Image Wolfsbane2k Linux - Laptop and Netbook 3 08-27-2010 11:18 AM
Can I use G4L to image a disk with an image from a USB dirve? AKLinuxNovice Linux - Newbie 2 02-03-2010 07:40 AM
Create a USB Boot Disk from the Custom Kernel and System Image oxblood Slackware 1 08-30-2009 01:38 PM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 07:59 PM
burning image to USB disk. SEX.iso byteframe Linux - Hardware 2 12-30-2006 01:51 PM

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

All times are GMT -5. The time now is 10:09 PM.

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