LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-25-2007, 08:49 PM   #1
0graham0
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Rep: Reputation: 0
Finished Chapter 6 /mnt/lfs disappeared


I just finished LFS 6.2 chapter six using the LFS cd with xwindows running. I was going to shut down before finishing the LFS install. Instead of using the X menu to shutdown, by accident I typed into the virtual shell I had open in a terminal:
Code:
shutdown now
Everything disappeared except for the X background, and the mouse was frozen in the center of the screen. I assumed all processes had halted and so I turned off the computer. When I turned it back on there is no longer any directories in /mnt/. My first hunch is that the computer hadn't finished shutting down, and when I powered down I messed up the hard drive partition, but perhaps not. There were some other fishy things going on:

When I was configuring vim (Chapter 6.57) I was copying some code from LFS into the shell but something happened when I pasted the code, and half of the keyboard no longer responded. (I don't have the log but when I pasted code I might have hit the wrong key. I remember seeing the character ^[[M show up before the pasted text once). Instead of normal input the shell I was in would autocomplete commands that I had not entered, and also strange symbols would show up instead of the english letters. However other terminals I had open continued to operate fine. I figured it wouldn't hurt to just finish the last pieces of code for chapter 6 by pasting them into the shell, and then exiting that one weird shell.

One last piece of information...I also ran the debugging stripper (Chapter 6.59) before shutting down. This was code which I literally copied and pasted from LFS:
Code:
chroot $LFS /tools/bin/env -i \
    HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    /tools/bin/bash --login

/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
  -exec /tools/bin/strip --strip-debug '{}' ';'
Any help is greatly appreciated, thanks.
 
Old 08-26-2007, 06:05 PM   #2
joshiggins
LQ Newbie
 
Registered: Nov 2006
Posts: 25

Rep: Reputation: 15
were you in a chroot environment?

i never got to chapter 6 but i do remember that you have to mount and then chroot into the system your building, from the livecd.
 
Old 08-26-2007, 06:29 PM   #3
0graham0
LQ Newbie
 
Registered: Aug 2007
Posts: 6

Original Poster
Rep: Reputation: 0
I was in the chroot environment. Now I can't get into the environment because there is no /mnt/lfs
 
Old 08-27-2007, 07:48 AM   #4
joshiggins
LQ Newbie
 
Registered: Nov 2006
Posts: 25

Rep: Reputation: 15
have you tried booting the live cd and

Code:
mkdir /mnt/lfs
mount /dev/hda1 /mnt/lfs
(replacing hda1 with your harddisk partition)???
 
  


Reply

Tags
disappear, lfs


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
lfs chapter 6.12 deucedlt Linux From Scratch 1 08-13-2006 10:03 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 12:31 AM
chapter 6.3 of LFS 6.1 Stamp Linux From Scratch 2 07-22-2005 07:10 AM
LFS 5.0 Chapter 5 cuco76 Linux From Scratch 1 11-23-2003 10:28 PM
Finished LFS - it's more than 1Gb ! Bert Linux From Scratch 4 12-06-2002 04:15 PM


All times are GMT -5. The time now is 01:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration