LinuxQuestions.org
Review your favorite Linux distribution.
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 06-14-2005, 08:31 PM   #1
rblythe
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
Can LFS be copied from 1 hard drive to another after the build?


I have completed the LFS 6.0 book. System boots like a champ. I have started putting together things from BLFS. Still working smoothly. Before I go too much farther, I would like to know:

Can my current LFS be copied to another hard drive for future build considerations. I am only talking about the base LFS (no other packages installed). Currently, my LFS is on /dev/hda4. I would like to copy it to /dev/sda1 because I have a SCSI drive sitting there doing nothing. My host disto is on /dev/hda1 with /home on /dev/hda3. The swap partition for LFS and host is /dev/hda2.

What I am hoping to do is copy (not move) the root LFS to /dev/sda1, use /dev/sda2 for swap and /dev/sda3 for /home. I know I should have set my drive up with /dev/hda4, /dev/hda5, /dev/hda6 but I didn't realize the value of that when I started LFS.

Anyway, can it be copied?

Please also know that I understand that if it can be copied that the new /etc/fstab will have to be changed as well as /boot/grub/menu.lst, grub and recompiling the kernel (for scsi etc) all of which can be done from the host or the first LFS (using chroot) to be in the new environment. I just need to know what other considerations there are for this type of thing. My SCSI hard drive partition /dev/sda1 is larger than my /dev/hda4 so I am not concerned with running out of space. I am also not concerned with the time the computer may take in doing all of the copying. I just want to know if it can be done and what obstacles I may face.

Thanks.
 
Old 06-14-2005, 09:41 PM   #2
madluther
Member
 
Registered: Aug 2004
Distribution: LFS
Posts: 350

Rep: Reputation: 31
Yes, I do this all the time, without problems, just make sure your copy method preserves file permissions and ownership and you should be in good shape.

Mad.
 
Old 06-15-2005, 02:37 AM   #3
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Re: Can LFS be copied from 1 hard drive to another after the build?

Quote:
Originally posted by rblythe
I have completed the LFS 6.0 book. System boots like a champ. I have started putting together things from BLFS. Still working smoothly. Before I go too much farther, I would like to know:

Can my current LFS be copied to another hard drive for future build considerations. I am only talking about the base LFS (no other packages installed). Currently, my LFS is on /dev/hda4. I would like to copy it to /dev/sda1 because I have a SCSI drive sitting there doing nothing. My host disto is on /dev/hda1 with /home on /dev/hda3. The swap partition for LFS and host is /dev/hda2.

What I am hoping to do is copy (not move) the root LFS to /dev/sda1, use /dev/sda2 for swap and /dev/sda3 for /home. I know I should have set my drive up with /dev/hda4, /dev/hda5, /dev/hda6 but I didn't realize the value of that when I started LFS.

Anyway, can it be copied?

Please also know that I understand that if it can be copied that the new /etc/fstab will have to be changed as well as /boot/grub/menu.lst, grub and recompiling the kernel (for scsi etc) all of which can be done from the host or the first LFS (using chroot) to be in the new environment. I just need to know what other considerations there are for this type of thing. My SCSI hard drive partition /dev/sda1 is larger than my /dev/hda4 so I am not concerned with running out of space. I am also not concerned with the time the computer may take in doing all of the copying. I just want to know if it can be done and what obstacles I may face.

Thanks.
If I was you, I would try:
Code:
 => Boot host distro (assume sda1 has been formated)
# mount /dev/sda1 /mnt/sda1
# mount /dev/hda4 /mnt/lfs
# cd /mnt/lfs
# tar -c . | tar -xv -C /mnt/sda1
=> waiting for done :)
 
Old 06-18-2005, 11:40 AM   #4
rblythe
LQ Newbie
 
Registered: May 2005
Posts: 14

Original Poster
Rep: Reputation: 0
Just wanted to let you know that:
mount /dev/sda1 /mnt/sda1
mount /dev/hda4 /mnt/lfs
cd /mnt/lfs
tar -c . | tar -xpv -C /mnt/sda1

worked like a charm.

I added the "p" to preserve permissions on the extracted files. Everything is well so far.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Installing from HARD DISK/ FC 4 Copied to HDD dhirsolo Linux - Software 4 08-30-2005 04:31 PM
copied hard drive install not completely recognized theFez Linux - Hardware 2 05-14-2005 10:41 AM
Transferring build to new hard drive NickC Mandriva 16 07-09-2004 08:59 PM
LFS with small hard drive drigz Linux From Scratch 13 06-05-2004 01:31 PM
file get renamed when copied to external hard drive pgajeski21 Linux - Hardware 11 04-15-2004 10:33 AM

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

All times are GMT -5. The time now is 05:02 AM.

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