LinuxQuestions.org
Help answer threads with 0 replies.
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 05-07-2011, 04:15 AM   #1
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Chroot output of mount


I have a Question I would like cleared up plz.
After completing 6.2.3, If I type
Code:
root[/]#mount
i get output
Code:
/dev/sda1 on / type ext3
proc on /proc type proc
sysfs on /sys type sys
devpts on /dev/pts type devpts
tmpfs on /dev/shm type tmpfs
If I type mount after 6.63 chroot command
I get no output. Is this to be expected?
I then go back and redo 6.2.3 and some times I end up with the mount giving output the Question is Should there be an output after chroot?
 
Old 05-07-2011, 06:48 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The mount output you posted does not look the way it should be.

When you execute the commands given in chapter 6.2.2 and 6.2.3 you are working on your host. If you execute a mount command at that point you should see entries that point to /mnt/lfs/xyz

This is what I see after executing steps 6.2.2 and 6.2.3
Code:
$ mount
/dev/sda5 on / type ext3 (rw,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)

/dev/sda2 on /mnt/lfs type ext3 (rw)
/dev on /mnt/lfs/dev type none (rw,bind)
devpts on /mnt/lfs/dev/pts type devpts (rw)
shm on /mnt/lfs/dev/shm type tmpfs (rw)
proc on /mnt/lfs/proc type proc (rw)
sysfs on /mnt/lfs/sys type sysfs (rw)
The blue entries are from my host, the bold entries are lfs related.

About mount not showing anything when you've entered the chrooted environment:
You've mounted stuff outside the chrooted env, the mount inside the chrooted env is not aware of this. /etc/mtab inside the chrooted env is empty, no mounts have been initiated (mount checks /etc/fstab and /etc/mtab).

Hope this helps.
 
Old 05-07-2011, 06:58 AM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511

Original Poster
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
The mount output was from memory it was the output of the chroot that I noticed, was 1st not there then it was there thats where I was looking for problems. My 2nd system has all booted it was just something I noticed

Last edited by spiky0011; 05-07-2011 at 07:00 AM.
 
  


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
[SOLVED] mount nfs problem: mount(2) Input/Output error, virtual box involved gjatute Linux - Newbie 6 10-23-2012 01:57 PM
Is possible to mount devices in a chroot jail? daurpam Linux - Newbie 2 04-20-2010 04:09 PM
Unable to get Sun's Java to work in a chroot at all: no output from javac, etc. HowDoIProgramIt Linux - Software 6 11-17-2007 09:00 AM
mount command not working in chroot. and now chroot not working mohit.jain Linux From Scratch 5 07-14-2006 03:57 AM
mount in chroot environment not possible moskito01 SUSE / openSUSE 5 12-06-2004 04:06 PM

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

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