Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make your own Stage4 mini HOWTO
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
robfantini
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 106
Location: Boston, Massachusetts

PostPosted: Wed May 12, 2004 8:19 pm    Post subject: Reply with quote

from: man tar
-W, --verify
attempt to verify the archive after writing it

I've used --verify , but have not tried it on a compressed archive. If you do try please post your result.
Back to top
View user's profile Send private message
househead
n00b
n00b


Joined: 30 Oct 2003
Posts: 70
Location: Manchester, UK

PostPosted: Wed May 12, 2004 10:36 pm    Post subject: Reply with quote

The backup didn't complete correctly, I came back to

Code:

root/.gconf/desktop/
root/.gconf/desktop/gnome/
root/.gconf/desktop/gnome/url-handlers/
root/.gconf/desktop/gnome/url-handlers/http/
root/.gconf/desktop/gnome/url-handlers/http/%gconf.xml
root/.gconf/desktop/gnome/url-handlers/https/
root/.gconf/desktop/gnome/url-handlers/https/%gconf.xml
root/.gconf/desktop/gnome/url-handlers/%gconf.xml
root/.gconf/desktop/gnome/%gconf.xml
root/.gconf/desktop/%gconf.xml
root/.gnome/
root/dead.letter
root/.fonts.cache-1
mindi.err.31188.tgz
tar: Error exit delayed from previous errors
genbox mark #


Gonna run it again and log errors. Will try the verify too.


Last edited by househead on Thu May 13, 2004 12:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
robfantini
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2004
Posts: 106
Location: Boston, Massachusetts

PostPosted: Thu May 13, 2004 2:23 am    Post subject: Reply with quote

could you post the command you used?

' tar: Error exit delayed from previous errors' does not necessarily mean that the tar file is bad. I been getting that message off and on for a long time. Search google to see possible causes.

Did you try the --verify or -W option?

In my opinion , if the files verify ok then you can ignore the error.
Back to top
View user's profile Send private message
househead
n00b
n00b


Joined: 30 Oct 2003
Posts: 70
Location: Manchester, UK

PostPosted: Thu May 13, 2004 12:20 pm    Post subject: Reply with quote

I ran the following (didnt try verify, but am verifying it now)

Code:

genbox root # tar cjpfv ./stage41.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=proc/* --exclude=dev/* --exclude=sys/* --exclude=/mnt/* 2>error.log


and then opened another aterm, su'd and ran

Code:

tail -f /home/root/error.log


There we're errors, but they were all files in the temp folder

Code:

tar: Removing leading `/' from member names
tar: /tmp/.esd/socket: socket ignored
tar: /tmp/jpsock.141.29462: socket ignored
tar: /tmp/.X11-unix/X0: socket ignored
tar: /tmp/.X11-unix/X1: socket ignored
tar: /tmp/ssh-cfOlUM6534/agent.6534: socket ignored
tar: /tmp/.gdm_socket: socket ignored
tar: /tmp/orbit-mark/linc-731d-0-dd68cd8458a2: socket ignored
tar: /tmp/orbit-mark/linc-7316-0-6c3fdd0955c15: socket ignored
tar: /tmp/orbit-mark/linc-2bc0-0-5655a835d8129: socket ignored
tar: /var/tmp/portage/mozilla-firefox-0.8-r2/work/mozilla/embedding/browser/activex/src/pluginhostctrl/StdAo|.h: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors


I assume it's fine, am running the following command to check the backup against the file system.

Code:

genbox root # tar -dv --directory=/ stage4.tar.bz2


I will be V V happy if this works. I'm gonna combine it with the live-cd and whack it on a DVD. I have an empty drive to test it on too:)
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Wed May 19, 2004 6:55 pm    Post subject: Reply with quote

Just used this stage4 guide in a slightly different way...

My system was getting clogged up with noob-mistakes so I wanted to start "clean". However, i didn't want to lose Internet access while rebuilding. So here's what i did.

Backed everything up to DVD-R :P

On my running gentoo system, created a ~/gentoo directory, copying the stage1 tarball to there, untarring, mounting proc & chrooting into it. For the various little bits like mirrorselect, copying resolv.conf, etc I just edited them from another shell by delving into ~/gentoo/<whatever> and copying working values there. I was then able to bootstrap & emerge system there.

Then i emerged Xorg, video drivers, XFCE4, Firefox & Sylpheed and cleaned up the system of distfiles & tmp stuff. Tarred it all up, copied tarball to another partition.

Rebooted with LiveCD, re-formatted filesystem on original partition (just plain old ext2), untarred the stage4 to it, held my breath & rebooted...

...worked 100%!

A little tiding up by copying config files and importing things like email/bookmarks from the backup DVD rounded it off.

Just to complete the circle, I made another stage4 from the new setup for instant recovery. in fact, I'm now doing the stage4 once a week to keep an instant-restore disk image - and I'm slowly starting to symlink my config files, mail folders & other bits to another partition so that all my data will come back in the event of a restore being neccessary.

Bottom line - a very BIG THANK YOU to all contributors, and especially allucid for starting it all off!
_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
mahir
l33t
l33t


Joined: 05 Dec 2003
Posts: 725
Location: London

PostPosted: Wed May 19, 2004 8:40 pm    Post subject: mmm Reply with quote

maybe you could write/enter ur commands into a sh script for us?
the simlinking mail dirs/bookmarks i mean..
_________________
"wa ma tawfiqi illah billah"
Mahir Sayar
Back to top
View user's profile Send private message
LeTene
Guru
Guru


Joined: 02 Mar 2004
Posts: 348
Location: Ah'll glass ye!

PostPosted: Wed May 19, 2004 9:13 pm    Post subject: Re: mmm Reply with quote

mahir wrote:
maybe you could write/enter ur commands into a sh script for us?
the simlinking mail dirs/bookmarks i mean..


Well, not everyone's setup is like mine but here's a few examples of what I'm doing to give the general idea, rather than every file. Bear in mind that this is purely for saving configs, others may not bother with the user-related stuff here as they will have /home on a separate partition anyway. Anyway, this is likely by no means the best layout to go for - so I'm open to suggestions:

Assumptions:
  • A separate, small partition, mounted on /mnt/syssetup to act as the "config & data repository"
  • Two directories in this partition, system for root-owned configs and letene for my own user configs


Symlinking some important system config files:
Code:
mv /etc/make.conf /mnt/syssetup && ln -s /mnt/syssetup/make.conf /etc/make.conf
mv /etc/rc.conf /mnt/syssetup && ln -s /mnt/syssetup/rc.conf /etc/rc.conf

mv /etc/portage/package.keywords /mnt/syssetup && ln -s /mnt/syssetup/package.keywords /etc/portage/package.keywords
mv /etc/portage/package.use /mnt/syssetup && ln -s /mnt/syssetup/package.use /etc/portage/package.use


Symlinking some user configs:
Code:
mv /home/letene/.bashrc /mnt/syssetup/letene && ln -s /mnt/syssetup/letene/.bashrc /home/letene/.bashrc
mv /home/letene/.ssh/known_hosts /mnt/syssetup/letene && ln -s /mnt/syssetup/letene/known_hosts /home/letene/.ssh/known_hosts


You get the idea...you could be tidier and have more sub-directories on the /mnt/syssetup partition, but I'm kinda liking having almost all my configs in one place - makes it easier to edit :P. Of course, all of this is no substitute for a proper backup but can be useful as you can back up this partition for an instant config-restore.
_________________
Docs, Tips & Tricks at the Gentoo Wiki page.
Back to top
View user's profile Send private message
ruyn
n00b
n00b


Joined: 02 Feb 2004
Posts: 34

PostPosted: Tue Jun 29, 2004 1:18 am    Post subject: Reply with quote

I've been experimenting with stage4 restores and everytime I try it, the restored system is completely broken. In the lastest attempt, gcc does not work at all. I'm just curious if othes have experienced problems after the restore.
Back to top
View user's profile Send private message
strestout1
n00b
n00b


Joined: 04 Jun 2004
Posts: 14

PostPosted: Tue Jun 29, 2004 1:58 am    Post subject: Reply with quote

this is a great How-to thanx for the info! after a debian install went wrong, i learned to keep /boot, /, and /home in separate partitions mainly because i have so much stuff in my /home directory. now, if my install messes up, not only will i be able to keep my personal stuff, but also back up my system! awesome...i will try this soon.
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Wed Jun 30, 2004 1:41 pm    Post subject: :. copied to gentoo-wiki.com Reply with quote

I have copied this HOWTO, with permission of allucid, to gentoo-wiki.com
http://gentoo-wiki.com/HOWTO_Custom_Stage4
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
fdavid
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2003
Posts: 82
Location: Graz, Austria, EU

PostPosted: Wed Jun 30, 2004 3:25 pm    Post subject: Re: :. copied to gentoo-wiki.com Reply with quote

dmitrio wrote:

If you see anything that should be added or changed, feel free to do so.


I posted some essential points, with which some pitfalls could be avoided and the life is easier, but the original poster didn't maintain the howto and obviously you also neglected these remarks. It doesn't matter, but I won't do it twice, if it wasn't enough once.
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Wed Jun 30, 2004 3:59 pm    Post subject: Re: :. copied to gentoo-wiki.com Reply with quote

fdavid wrote:
I posted some essential points, with which some pitfalls could be avoided and the life is easier, but the original poster didn't maintain the howto and obviously you also neglected these remarks. It doesn't matter, but I won't do it twice, if it wasn't enough once.

I update the article, thank you for the note.
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
fdavid
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2003
Posts: 82
Location: Graz, Austria, EU

PostPosted: Wed Jun 30, 2004 5:42 pm    Post subject: Re: :. copied to gentoo-wiki.com Reply with quote

dmitrio wrote:

I update the article, thank you for the note.


Thank you, very much.
Back to top
View user's profile Send private message
ruyn
n00b
n00b


Joined: 02 Feb 2004
Posts: 34

PostPosted: Wed Jun 30, 2004 11:39 pm    Post subject: Reply with quote

I figured out my troubles. My stage4 was missing a heap of header files. I need to be more careful how I type the excludes :)
Back to top
View user's profile Send private message
allucid
Veteran
Veteran


Joined: 02 Nov 2002
Posts: 1314
Location: atlanta

PostPosted: Thu Jul 01, 2004 5:33 am    Post subject: Re: :. copied to gentoo-wiki.com Reply with quote

dmitrio wrote:
I have copied this HOWTO, with permission of allucid, to gentoo-wiki.com
http://gentoo-wiki.com/HOWTO_Custom_Stage4
If you see anything that should be added or changed, feel free to do so.

Thank you for a great HOWTO.

sorry guys, i haven't used this method in a really long time and haven't been keeping up with the thread. thanks to dmitrio for posting it on the wiki. now that it is on the wiki, hopefully it will be easy for the community to keep it up to date as necessary.
Back to top
View user's profile Send private message
dmitrio
Tux's lil' helper
Tux's lil' helper


Joined: 10 Dec 2002
Posts: 115
Location: Pago Pago

PostPosted: Thu Jul 01, 2004 12:06 pm    Post subject: Reply with quote

always welcome :)
_________________

... Leaving ground, destination is unknown,
into the darkness and far away from home,
Will your dream come true and what will you find,
when fate is your guide ...
Back to top
View user's profile Send private message
T-Bird
n00b
n00b


Joined: 28 Mar 2003
Posts: 71

PostPosted: Sat Jul 03, 2004 5:35 am    Post subject: Re: help plz Reply with quote

mahir wrote:
Code:

root@en3 / # tar cCjpf /home/stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc
tar: Cowardly refusing to create an empty archive
Try `tar --help' for more information.
root@en3 / #


this is what i get?
any ideas?


Did anyone solve this situation...I'm getting the same deal.
Back to top
View user's profile Send private message
nekranos
n00b
n00b


Joined: 07 Apr 2004
Posts: 52

PostPosted: Sat Jul 03, 2004 7:08 am    Post subject: Re: help plz Reply with quote

T-Bird wrote:
mahir wrote:
*snip*


Did anyone solve this situation...I'm getting the same deal.


Try running without "C". So, using mahir's example:
Code:
tar cjpf /home/stage3.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc


I tried this, and what worries me is that I ended up with a .tar.bz2 file that was under 200MB, while my system is greater in usage, around 600MB or so. Just doesn't seem...right.

Edit: Unmerged my kernel sources and told Portage to fetch a copy of the sources (+~30MB), which killed off 200MB or so. Just re-made the .tar.bz2 file. It's incredible. Stage4 at 158MB. o.O
Back to top
View user's profile Send private message
T-Bird
n00b
n00b


Joined: 28 Mar 2003
Posts: 71

PostPosted: Sat Jul 03, 2004 3:14 pm    Post subject: Reply with quote

Has anyone tried to use this to date? Any quirks?
Back to top
View user's profile Send private message
DaNIsH
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 197
Location: Melbourne, Australia.

PostPosted: Sat Jul 03, 2004 3:35 pm    Post subject: Reply with quote

I successfully ran it recentely on my computer.

I got bored and wrote a java app (console) to generate a backup script:
Source - Updated (Fixed little bug)
Classes (Java) - Updated (Fixed little bug)

tar xvjf backupgen-<src/bin>.tar.bz2
cd backupgen

Source:
javac makebackup.java
java makebackup

Bin:
java makebackup

Obviously requires at least a JRE (Java runtime environment).
Anything breaks its someone elses fault, so best to check the script before executing.

Probably best to hide from my messy coding (source), and lack of programming skills ;)

If anyone finds it usefull I'll add-on a restore script.


Last edited by DaNIsH on Sun Jul 04, 2004 12:55 am; edited 1 time in total
Back to top
View user's profile Send private message
T-Bird
n00b
n00b


Joined: 28 Mar 2003
Posts: 71

PostPosted: Sat Jul 03, 2004 4:13 pm    Post subject: Reply with quote

I just generated a backup...it's freaking 1.0GB in size...could I have done something wrong?
Back to top
View user's profile Send private message
T-Bird
n00b
n00b


Joined: 28 Mar 2003
Posts: 71

PostPosted: Sat Jul 03, 2004 4:15 pm    Post subject: Reply with quote

here was my command line:

Code:
tar cjpf /home/stage4.tar.bz2 / --exclude=stage4.tar.bz2 --exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/mnt
Back to top
View user's profile Send private message
DaNIsH
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 197
Location: Melbourne, Australia.

PostPosted: Sat Jul 03, 2004 11:51 pm    Post subject: Reply with quote

T-Bird wrote:
I just generated a backup...it's freaking 1.0GB in size...could I have done something wrong?

You should exclude /usr/portage/distfiles, or at least clear it before backing up.

I'm not sure if I'm right in saying this, but instead of excluding dirs, just exclude the contents.
Eg. /proc/* /mnt/<mount>/*
I may be wrong, but I think that will cause problems when you restore the backup and linux tries to mount devices to non existant dirs etc.
Back to top
View user's profile Send private message
T-Bird
n00b
n00b


Joined: 28 Mar 2003
Posts: 71

PostPosted: Sun Jul 04, 2004 2:02 am    Post subject: Reply with quote

Ok, that's a good point. Is there anything in specific minus the distfiles that I should exclude?
Back to top
View user's profile Send private message
kamina
Apprentice
Apprentice


Joined: 14 Jun 2004
Posts: 157
Location: Finland

PostPosted: Mon Jul 05, 2004 12:52 pm    Post subject: Reply with quote

Will I end up with a working backup if I exclude /proc /var/tmp /usr/portage/distfiles /mnt and /tmp?
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 2 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum