LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 11-03-2009, 09:06 AM   #1
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Rep: Reputation: 16
WTF! All my work = GONE AGAIN (VirtualBox)


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.
 
Old 11-03-2009, 09:19 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 11-03-2009, 10:08 AM   #3
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Original Poster
Rep: Reputation: 16
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.
 
Old 11-03-2009, 10:22 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

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.

Kind regards,

Eric
 
Old 11-03-2009, 10:23 AM   #5
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Quote:
Originally Posted by StupidNewbie View Post
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
It will happen over and over again as long as you run from a LiveCD.

Kind regards,

Eric
 
Old 11-03-2009, 11:03 AM   #6
StupidNewbie
Member
 
Registered: Dec 2007
Posts: 71

Original Poster
Rep: Reputation: 16
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
 
Old 11-04-2009, 12:05 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Great, glad you got it up and running. What an advantage not having to start from 'scratch' again, right?

Kind regards,

Eric
 
  


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
DC++ doesnt work in VirtualBox + WinXP. Help? kebabbert Solaris / OpenSolaris 1 02-03-2009 05:12 AM
VIRTUALBOX internet doesn't work jargren Linux - Software 2 08-03-2008 04:40 AM
VirtualBox+3D Card, can I get them to work together? Neo-Leper Linux - Software 5 07-04-2007 12:13 AM
Some sounds work, some dont, wtf? Javahulk Linux - Hardware 0 02-15-2005 08:34 PM
S3trio64+ with TV out? WTF? How can I get the TV out to work t85austria Linux - Hardware 0 11-30-2004 03:38 PM

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

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