Reg Hardware

How to backup and restore your netbook

E

Good for Linux too 

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

Happy

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 

Thumb Up

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

Paris Hilton

mount /dev/sdb1 /mnt

dd if=/dev/hda1 | gzip -c | dd of=/mnt/mybackup.gz

umount /mnt

John

Alternatively.. 

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 

What, no plain, overweight, balding blokes take their netbooks to the beach?

Bad Beaver

4real? 

Jobs Halo

Is this really a 4-page "story" about how to create a bootable clone?

JimP

There are more ways 

Linux

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

Go

Always nice to have an OS independent alternative to backing up a system!

Tom

@ Those that suggest using dd 

Flame

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 

Linux

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? 

Stop

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

Black Helicopters

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 

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 

Paris Hilton

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) 

Boffin

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

Linux

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 

We use Clonezilla to create images for out Netbooks, works without fail!

John

To clarify 

Paris Hilton

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. 

Black Helicopters

You can sometimes do this, but you need to know a lot about your distro.

I do it from a live USB of Puppy.