Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Ok this is the 2nd time this has happened to me. I have gotten up to chapter 5 and finished installing GCC using the LiveCD and VirtualBox, but when I shut down VirtualBox and start it up the next day with the LiveCD, all my work is gone. No LFS user, no /mnt/lfs directory, no sources, NADA. Everything is just gone.
How the heck do I save my work? This is the 3rd time I've had to start over and it takes longer to get back to where I was each time because I have to do everything over again. Do I really need to snapshot the system each time I want to shut down and then start in the snapshot?
Seems kinda stupid, and I don't know how I would do that if I wasn't using VBox so I must be missing something...what do I need to do to make sure my work is saved when I shut down? Am I shutting down uncleanly or something?
Thanks!
EDIT: BTW this is on a host of WinXP pro 32 bit.
Last edited by StupidNewbie; 11-03-2009 at 09:07 AM.
Not sure, maybe a stupid question, but which drive do you mount when working with the LiveCD? When you run from the LiveCD everything happens in 'volatile' memory, that is, when you shutdown, it's lost, permanently.
In order to avoid that you'll have to mount your virtual harddrive to a directory as read-write. Could you post what you normally do when your LiveCD session is booted? I assume you don't mount a disk correctly so everything you do just 'evaporates' when you stop.
I've simply followed the instructions in the book so far. Upon further investigation, I ran fdisk -l and see that my partitions are still there...so I mounted hda1 to /mnt/lfs and swapon'd hda2. Once that happened, most of the work is back, but I am still missing the lfs user. Checking through the file system, I can see that $LFS/sources, $LFS/tools are both there and the folders within them i.e. GCC and binutils which I've compiled so far are still compiled and ready to go.
Does that answer your question or do I need to provide more info?
Thanks!
EDIT: I am just going to start over again to verify everything's done correctly but I would still like an answer so this doesn't happen in the future
Last edited by StupidNewbie; 11-03-2009 at 10:12 AM.
So if I understand you correctly, mounting the partitions got your work back, right? Great! That's the first step you'll have to remember when working from the LiveCD, you'll always first have create the directories to mount everything to, in order to get access to 'where you left off'. It's normal that the lfs user is missing in action, that user too only exists for the duration of the session. So, you'll have to repeat creating the user every new session.
Remember, when running from a LiveCD, everything is volatile, except for what you write to a mounted disk.
You could also install a system to the VirtualBox with all the packages you need (see the prerequisites). This way you avoid having to repeat the same things over and over again.
thanks for the advice. I've started over because I'm not too far in this time. I'll remember this for the future though. The good news is I didn't even need the LFS book to get up to ch. 5 this time lol
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.