PING works nicely from a partitioned USB stick. You have the PING bootimage on a small partition (the ISO being transferred using UNetbootin). It will then happily save your backups on the remainder of the stick.
The advantage of this approach is that you can restore from a single device. And you can always copy your backups to other media for backup/storage...
Another way of doing it is with gparted and copying partitions graphically (drag and drop) or with clonezilla if you have a networ drive, or intermediary.
A useful tool to have in your drawer is the combined gparted/clonezilla CD.
Identify the location of your system HD in this example lets use /dev/sda and lets say we plugged in a external USB drive/stick at /media/disk
open a terminal (OMGZ..he said TERMINAL) and enter:
dd if=/dev/sda of=/media/disk/image.img
To restore it ...
dd if=/media/disk/image.img of=/dev/sda
I don't normally comment on guides like these as they are written with a novice in mind, but I do feel that 'dd' can do a far simpler job and really isn't a complicated command to jot down (if you can't remember it). Its also far, far easier than the umpteen menu's covering 4 pages in the article.
I use partimage from SystemRescueCD, booted from a usb stick rather than a CD (which is more than a little inconvenient on a netbook). You need to fsck the unmounted system partition before you try and back it up for linux netbooks, and chkdsk it if it's XP, otherwise you'll get errors if you've actually used the thing much.
My moneys on an image file that is junk as you will be imaging a file system that is mounted Read/Write and has lots of data still cached in the kernel.
Also I would like to see you do the restore as well DD'ing over the top of a live file system sounds like an absolutely brilliant idea.
My experience with PING is that: a) on a drive with errors, the backup may not complete, and b) it sometimes is unable to restore the saved image. The restore process will look like it completes, but the restored disk will be unusable.
A significantly complicating factor is that Windows XP installations tend to become corrupt as a computer slowly dies, making it hard to determine if the problem is software or hardware or both. Additionally, I'm not convinced backing up and restoring a computer with potentially defective hardware is even a good idea. Specifically, I suspect that PING assumes that it is running on perfect hardware. When confronted with old and potentially defective hardware, it does not implement sufficient error checking and recovery code to deal with random small data errors. Once a few of these errors occur, the backup becomes unusable.
But isn't this sort of jobby something that linux live CDs were supposed to cover?
At least that way you get a full functioning system with internet capability for help etc - especially if the restore has failed. I believe Fedora and/or Ubuntu can be USB stick installations.
As pointed out with varying levels of politeness above dd should be run from a boot cd/usb stick and not from a live running OS. When I had used it previously it was from a USB stick as that was what I was told to do, the link I posted above didn't state that so I didn't either on this occasion,
I was aware running it on a live system wasn't ideal, but equally I didn't realise it was so diabolically bad as people have suggested. Lesson learned and all that.
This is precisely why I mentioned in my original comment that I don't normally comment on these kinds of guides, I'm not a linux guru nor a journalist.
@Tom ... A little less venom in your replies might be helpful rather than coming over as a complete righteous nob.
How to backup and restore your netbook
E
Good for Linux too #
Posted Monday 16th March 2009 19:07 GMT
IHNRTEA.
PING is good for making install images for Linux boxes too so even if you are not enslaved by the Beast of Redmond PING can help you.
Les
Bootable USB is the way to go.... #
Posted Monday 16th March 2009 19:07 GMT
PING works nicely from a partitioned USB stick. You have the PING bootimage on a small partition (the ISO being transferred using UNetbootin). It will then happily save your backups on the remainder of the stick.
The advantage of this approach is that you can restore from a single device. And you can always copy your backups to other media for backup/storage...
Jonathan Adams
Clonezilla + Gparted #
Posted Monday 16th March 2009 19:07 GMT
Another way of doing it is with gparted and copying partitions graphically (drag and drop) or with clonezilla if you have a networ drive, or intermediary.
A useful tool to have in your drawer is the combined gparted/clonezilla CD.
http://gpartedclonz.tuxfamily.org/
Anonymous Coward
or alternatively... #
Posted Monday 16th March 2009 19:07 GMT
mount /dev/sdb1 /mnt
dd if=/dev/hda1 | gzip -c | dd of=/mnt/mybackup.gz
umount /mnt
John
Alternatively.. #
Posted Monday 16th March 2009 19:07 GMT
Identify the location of your system HD in this example lets use /dev/sda and lets say we plugged in a external USB drive/stick at /media/disk
open a terminal (OMGZ..he said TERMINAL) and enter:
dd if=/dev/sda of=/media/disk/image.img
To restore it ...
dd if=/media/disk/image.img of=/dev/sda
I don't normally comment on guides like these as they are written with a novice in mind, but I do feel that 'dd' can do a far simpler job and really isn't a complicated command to jot down (if you can't remember it). Its also far, far easier than the umpteen menu's covering 4 pages in the article.
A very nice and easy write can be found at:
http://www.backuphowto.info/linux-backup-hard-disk-clone-dd
Quick and simple backups get done, slow, confusing or time consuming ones don't in my experience.
John A Blackley
.....ism #
Posted Monday 16th March 2009 19:07 GMT
What, no plain, overweight, balding blokes take their netbooks to the beach?
Bad Beaver
4real? #
Posted Monday 16th March 2009 19:07 GMT
Is this really a 4-page "story" about how to create a bootable clone?
JimP
There are more ways #
Posted Monday 16th March 2009 19:14 GMT
I use partimage from SystemRescueCD, booted from a usb stick rather than a CD (which is more than a little inconvenient on a netbook). You need to fsck the unmounted system partition before you try and back it up for linux netbooks, and chkdsk it if it's XP, otherwise you'll get errors if you've actually used the thing much.
David Halko
Always nice to... #
Posted Monday 16th March 2009 19:30 GMT
Always nice to have an OS independent alternative to backing up a system!
Tom
@ Those that suggest using dd #
Posted Monday 16th March 2009 23:13 GMT
Try using that on a running system for real...
My moneys on an image file that is junk as you will be imaging a file system that is mounted Read/Write and has lots of data still cached in the kernel.
Also I would like to see you do the restore as well DD'ing over the top of a live file system sounds like an absolutely brilliant idea.
James Gibbons
Or just use Knoppix and partimage #
Posted Monday 16th March 2009 23:13 GMT
http://www.folding-hyperspace.com/pdfs/disk_image_with_knoppix.pdf
Backup to network but some command line needed...
Tom Bering
Did you try the restore? #
Posted Monday 16th March 2009 23:13 GMT
My experience with PING is that: a) on a drive with errors, the backup may not complete, and b) it sometimes is unable to restore the saved image. The restore process will look like it completes, but the restored disk will be unusable.
A significantly complicating factor is that Windows XP installations tend to become corrupt as a computer slowly dies, making it hard to determine if the problem is software or hardware or both. Additionally, I'm not convinced backing up and restoring a computer with potentially defective hardware is even a good idea. Specifically, I suspect that PING assumes that it is running on perfect hardware. When confronted with old and potentially defective hardware, it does not implement sufficient error checking and recovery code to deal with random small data errors. Once a few of these errors occur, the backup becomes unusable.
Bracken Dawson
easy... #
Posted Tuesday 17th March 2009 00:15 GMT
dd if=/dev/sda bs=1M | ssh user@server dd of=/home/eee-backup/sda.iso ; ssh user@server gzip /home/eee-backup/sda.iso
If the network is slower than the netbook's chip can run dd, use SSH's '-C' argument.
Mark
Maybe I'm missing something #
Posted Tuesday 17th March 2009 08:26 GMT
But isn't this sort of jobby something that linux live CDs were supposed to cover?
At least that way you get a full functioning system with internet capability for help etc - especially if the restore has failed. I believe Fedora and/or Ubuntu can be USB stick installations.
Goat Jam
@Bracken Dawson #
Posted Tuesday 17th March 2009 08:26 GMT
That'll work. You can also use nc (netcat) as well
http://tuxnetworks.blogspot.com/2008/07/backing-up-disk-over-network.html
@Tom
This is why you boot from a live CD or USB key to do the backup. I doubt anyone was suggesting that you can use DD to backup a running filesystem.
Paris, cuz I'd backup her system anyday
Gene Cash
(facepalm) #
Posted Tuesday 17th March 2009 08:26 GMT
I can't believe I'm seeing people seriously suggesting using dd on a mounted filesystem. Wow. And nobody has mentioned rsync.
Alexander Giochalas
SystemRescueCD + partimage... #
Posted Tuesday 17th March 2009 08:26 GMT
booting from a USB stick is what I also use. My version of SystemRescueCD (v. 1.1.0, but
shouldn't it be called SystemRescueUSB?) has trouble with my eee901's ethernet, so I have
no network connection (no backing up straight to my desktop machine). I am forced to use
USB sticks for backup, but it all works very smoothly.
AlxUnder
Martin
clonezilla #
Posted Tuesday 17th March 2009 10:47 GMT
We use Clonezilla to create images for out Netbooks, works without fail!
John
To clarify #
Posted Tuesday 17th March 2009 14:12 GMT
As pointed out with varying levels of politeness above dd should be run from a boot cd/usb stick and not from a live running OS. When I had used it previously it was from a USB stick as that was what I was told to do, the link I posted above didn't state that so I didn't either on this occasion,
I was aware running it on a live system wasn't ideal, but equally I didn't realise it was so diabolically bad as people have suggested. Lesson learned and all that.
This is precisely why I mentioned in my original comment that I don't normally comment on these kinds of guides, I'm not a linux guru nor a journalist.
@Tom ... A little less venom in your replies might be helpful rather than coming over as a complete righteous nob.
Paris because someone needs some love.
Bracken Dawson
DD a live filesystem. #
Posted Sunday 22nd March 2009 17:24 GMT
You can sometimes do this, but you need to know a lot about your distro.
I do it from a live USB of Puppy.