LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 02-17-2006, 08:44 PM   #1
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Rep: Reputation: Disabled
backing up completed LFS


Ive had LFS working twice now and twice ive ruined it trying to back it up.

This time I was following the hint...
http://www.linuxfromscratch.org/hint.../lfsbackup.txt

The host froze and I had no other option than to press the reset button on the comp.

It now starts lfs but forces a check on the hdd which it fails and cannot be fixed.

Does anyone have a idea of how I could back it up safely?
At least im getting good at installing it!

cheers
Rik
 
Old 02-18-2006, 04:21 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
http://www.linuxquestions.org/questi...63#post1027263

read this post........tar and zip up the LFS partition first and burn to a CD-r.........that way you won't have to recompile the whole LFS system again.........
 
Old 02-18-2006, 04:38 AM   #3
LQ496873
Member
 
Registered: Jan 2006
Distribution: openSUSE Leap 15.3
Posts: 120

Original Poster
Rep: Reputation: Disabled
many thanks, Im gonna recompile it again later so ill have a crack then.
 
Old 02-18-2006, 04:55 AM   #4
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
What I did was recompile all the packages in chapter 6 changed some commands that require the /tools directory.

And used the "Building a Slackware Package" guide on http://www.linuxpackages.net along with installwatch.
Then packaged the binaries (eg. Binutils-2.15.91.0.2-noarch-1.tgz) then to recover my system I did
Code:
installpkg *.tgz -root $LFS
in the packages directory.

BTW, you need tar-1.13 to use pkgtools (installpkg, makepkg, pkgtool) all available at: ftp://ftp.slackware.com/pub/slackwar...rce/a/pkgtools
 
Old 02-23-2006, 12:50 PM   #5
FinalFantasy
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 49

Rep: Reputation: Disabled
There shouldn't be any programs requiring /tools after your LFS is finished. Otherwise you have made some mistake.

To backup my LFS, I use a LiveCD and mount the lfs partition. and then I backup the whole partition
using the command "tar jcfpsm /mnt/BackupPartition/mylfs.tar.bz2 /mnt/LFSPartition"

j: use bzip2 to compress instead of gzip. better ratio, but very slow.
c: create
f: specify the tar file
psm: preserve time/permission information

to restore:
cd /mnt/RestoreDirectory
tar jxfpsm /mnt/BackupPartition/mylfs.tar.bz2
setup the fstab and grub, and it is ready.
 
Old 02-23-2006, 03:54 PM   #6
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
Quote:
Originally Posted by FinalFantasy
There shouldn't be any programs requiring /tools after your LFS is finished. Otherwise you have made some mistake.
The direction in chapter 6 assume you have the /tools directory and use it. I just leave that stuff out.

ps: I also put the packaged binaries on a LiveCD.
 
Old 02-23-2006, 07:01 PM   #7
FinalFantasy
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 49

Rep: Reputation: Disabled
When you are building Chapter 6, /tools is necessary. But after you finished, say booting into LFS, you can discard /tools competely.
 
Old 02-24-2006, 12:36 AM   #8
shotokan
Member
 
Registered: Mar 2005
Distribution: slackware, LFS
Posts: 204

Rep: Reputation: 30
What I meant by:
"What I did was recompile all the packages in chapter 6 changed some commands that require the /tools directory."

I used chapter 6 instuctions, and modified them so I didn't need the /tools directory to use them. All this I did to make packeged binaries of the programs in chapter 6 (the core system).
 
Old 02-24-2006, 04:11 PM   #9
FinalFantasy
Member
 
Registered: Sep 2003
Distribution: Debian
Posts: 49

Rep: Reputation: Disabled
I am doing the same thing too. To archive files in individual packages just like other distributions. .
 
  


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
Completed the switch... gizmogadgetus LinuxQuestions.org Member Success Stories 5 12-22-2005 12:26 AM
Completed LFS but ...... chakkaradeepcc Linux From Scratch 2 05-15-2005 12:34 AM
my backgound completed black ??? DMZeplin Mandriva 3 02-19-2005 11:49 PM
lfs 5.0 completed miguetoo Linux From Scratch 1 11-26-2003 11:00 AM
Migration Completed jeremy LQ Suggestions & Feedback 2 11-03-2003 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 07:56 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