Blog Forum Wiki Links Contact Us NetbookUser
RunCore Pro IV SSD Transforms your ASUS EEE PC by increasing 
performance 5-40X. Your satistfaction guaranteed RunCore Pro 70mm SATA Mini PCI-e SSD
RunCore Pro IV 70mm SATA II Mini PCI-e SSD
RunCore Pro IV 2.5 Inch SATA II SSD

You are not logged in.

#1 2007-12-24 8:48:51 am

spg666
Senior Member
From: uk
Registered: 2007-12-24
Posts: 152
Website

How do I Backup my data & settings

Let me say I'm new to using Linux, but after some tinkering I've got the pc setup the way I want it, (advanced desktop and a few minor tweaks). As I can't help myself when it comes to messing around with the system, it is inevitable that I'm going to beak it in the not to distant future!

So how can I backup the system state and user data so that I can use the eee pc's recovery option then apply the backed up system state and user data?


White EeePC 1000 with a wifi card donated by my dead 701, running Default Xandros (KDE Desktop) & BT3
     "Gaffer tape is like the force, it has a light side, a dark side and it holds the universe together"

Offline

 

#2 2007-12-24 9:02:51 am

Skuld
Senior Member
From: UK
Registered: 2007-11-22
Posts: 111

Re: How do I Backup my data & settings

Haven't got mine yet, and haven't used Linux (bar messing around) for a couple of years, so my memory is poor. IIRC, the config files are in the /etc and /home/<user> directories, have a look through there.


White 4G 701 Ubuntu 8

Offline

 

#3 2007-12-24 12:23:57 pm

tredegar
Senior Member
From: London, UK
Registered: 2007-12-05
Posts: 150

Re: How do I Backup my data & settings

Well, there's this thread: http://forum.eeeuser.com/viewtopic.php?id=1687

But I discovered, rather too late, that this method would not give me a proper restore after a "Reset to factory".

All sorts of things didn't work properly (Camera, sound, generally very weird). Other poeple in other threads also had problems after a factory Restore, but their "solutions" (In bios Set OS Boot to "Finished" etc) didn't work for me.

Fortunately, I had another eee (Xmas present, but still in my posession), that I had customised but NOT hacked-to-bits (Like I had done mine)
I was able to get everything back to normal on mine like this:

My eee: Reset to factory, by Pressing F9 at boot.
On Santa's eee, I made a dd backup of the user partition to an external USB HDD like this
sudo dd if=/dev/sda2  of="/path/to/backup/good-sda2"
This took maybe 2-3 minutes.
then unmount ("Safely Remove") The USB HDD.

On my "bad", just restored-to-factory eee, I re-installed this backup like this:
Plug in the USB HDD, and wait for it to be recognised.
<CTRL><ALT><t> to get a terminal.
sudo dd if="/path/to/backup/good-sda2" of=/dev/sda2
This takes a bit longer (writing is slower than reading?).
Then I tried a shutdown, but it segfaulted. I was not too surprised, as I would have preferred
to have done the reinstall in single-user mode, but when I tried booting to this (quite complicated in itself, see
http://wiki.eeeuser.com/howto:installrescuemode ) I found there was no support for USB devices sad

So I just held the power button down until it shut off.
Then rebooted, and everything was back to normal!

So, I strongly suggest you make a dd backup of your /dev/sda2 before you brick your eee.
I also made a backup of /dev/sda1 (The system partition) using dd, although I think I'd need an external CD drive and a live CD (like kubuntu) to be able to restore the system partition - you cannot write to it as it is mounted, and you cannot unmount it because that is where your system runs from.

One last comment: dd is VERY unforgiving. If you get your if's muddled with your of's, or the wrong partition numbers, you fill find yourself in deeeeep mess.

Hope this helps.

Edit: My external USB HDD is formatted as a LINUX (ext3) disk, not FAT32, but I do not think this is vital.

Last edited by tredegar (2007-12-24 12:26:20 pm)

Offline

 

#4 2007-12-25 5:33:48 am

spg666
Senior Member
From: uk
Registered: 2007-12-24
Posts: 152
Website

Re: How do I Backup my data & settings

that sound promising, I'll try it out later today.... Thanks


White EeePC 1000 with a wifi card donated by my dead 701, running Default Xandros (KDE Desktop) & BT3
     "Gaffer tape is like the force, it has a light side, a dark side and it holds the universe together"

Offline

 

#5 2007-12-25 8:34:37 am

richardkemp
Senior Member
From: Essex, UK
Registered: 2007-12-15
Posts: 174

Re: How do I Backup my data & settings

I have written here a guide based on tredegars notes above.

Near the bottom of the wiki page http://wiki.eeeuser.com/howto:removeunionfs is a section called "Backing up both partitions (full backup) using puppy linux flash drive", which I just added.

It is a very precise walkthrough to obtain a full backup, and includes restore instructions, hopefully suitable for those with little knowledge. I hope it is helpful for anyone who stumbles on this page!


nLite'd XP on White 4G, 2GB of RAM

Offline

 

#6 2007-12-25 9:10:23 am

Qatz
Senior Member
From: In your hair.
Registered: 2007-08-27
Posts: 212

Re: How do I Backup my data & settings

If you want your backup to be smaller try something like this.

"dd if=/dev/sda2 | gzip -c9 > /path/to/backup.gz"

and you can restore it something like.

"gunzip -c /path/to/backup.gz | dd of=/dev/sda2"


Beer?
4G White 701a with Flash PCI-E Slot | 2 gig Ram | Gentoo | Kernel 2.6.25.4

Offline

 

#7 2007-12-26 3:29:39 pm

richardkemp
Senior Member
From: Essex, UK
Registered: 2007-12-15
Posts: 174

Re: How do I Backup my data & settings

Add it to the wiki entry?


nLite'd XP on White 4G, 2GB of RAM

Offline

 

Board footer

Powered by PunBB 1.2.15
© Copyright 2002–2005 Rickard Andersson