I have lost momentum over the weekend. Upon re-reading the last entry (Chapter 5.31 and 5.32) I am reminded that I should make a backup of the tools directory. Good. I recall that being important. I'll make 2. I do this as root so that I can save it in a special directory called "backup", owned by root.
[backup]#dump -A tools_toc -f tools_dump -L LFS_TOOLS_LABEL -v $LFS/tools
Check using restore,
[directory_where_to_unpack]#restore -xf /backup/tools_dump -A /backup/tools_toc
OK. dump is much faster than tar'ing and zip'ing, although it creates a 255MB file whereas tar'ing and zip'ing make an 80 MB file.
No matter, log in to current session as lfs, su - lfs. I had made a text file called "things_to_do_first" which is a reminder to umount and mount the lfs partition. cd to $LFS and I am ready to start.
I am re-reading the section of Chapter 5. After all this effort at keeping tools ownership as lfs, now I have to change it to root.
....%$#$%! Cleaning up a bit, I did something stupid and deleted my sources and tools directory. I easily restored the tools directory, luckily. But I have to download the sources again. Problem was that I had mounted the same partition as / AND /home. I wonder why it is allowed to have multiple names. Anyway, I forgot about home and thought that it was just one of the test files I made while testing the dump and restore. Sad to say, I have made this kind of mistake long ago....
As root,
[$LFS/sources]#wget -i wget-list
74 files, 260M in 6m 3s (734 KB/s)
[$LFS/sources]#chown -R lfs:lfs * (should be owned by lfs, although tools is now root owned).
Monday, June 7, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment