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 08-12-2005, 11:01 PM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Suppermount patch


Hi folks,

LFS 6.1
Host FC3
Kernel-Linux version 2.6.12-1.1372_FC3

During building LFS 6.1 after chroot and Populating /dev
http://www.linuxfromscratch.org/lfs/...6/devices.html

I can't umout /mnt/lfs. Each time exited chroot and ran;
# umount /dev (saying busy)
# umount /dev/pts (saying busy)
# umount /dev/shm (no printout)

umount -a $LFS
Code:
umount: /mnt/lfs: device is busy
umount: /var/lib/nfs/rpc_pipefs: device is busy
umount: /home: device is busy
umount: /: device is busy
# umount /mnt/lfs
Code:
umount: /mnt/lfs: device is busy
umount: /mnt/lfs: device is busy
Any folk on the forum tried the supermount patch
Kernel patch homepage of Con Kolivas
http://members.optusnet.com.au/ckolivas/kernel/

Whether it can fix my probem. If YES whether the captioned patch works on this FC3 kernel. TIA

B.R.
satimis
 
Old 08-14-2005, 12:11 AM   #2
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
Do you have /mnt/lfs open, either in a file navigator or in the console? If so, get out of /mnt/lfs before unmounting.
 
Old 08-14-2005, 12:25 AM   #3
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
You should umount before chroot:
Code:
# umount /dev/pts
# umount /dev/shm
# umount /dev
And after chroot:
Code:
# umount $LFS/dev/shm
# umount $LFS/dev/pts
# umount $LFS/dev

# umount $LFS/proc
# umount $LFS/sys

# umount $LFS
 
Old 08-14-2005, 04:50 AM   #4
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Hi freegianghu and kjordan,

Tks for your advice.

Now I got my problem solved. As freegianghu mentioned;

Must run following commands before 'exit' chroot;
# umount /dev/pts
# umount /dev/shm
# umount /dev

Then after 'exit' chroot "umount /mnt/lfs" worked without problem/printout

Previously I made a mistake running them after exiting chroot environment, always complaining "device not mounted"

Quote:
And after chroot:
Code:
# umount $LFS/dev/shm
# umount $LFS/dev/pts
# umount $LFS/dev

# umount $LFS/proc
# umount $LFS/sys

# umount $LFS
I tried again. Entered chroot environment and ran;
# umount /dev/pts
# umount /dev/shm
# umount /dev
All no printout

Exited chroot and then ran;
# umount $LFS/dev/shm
Code:
umount: /mnt/lfs/dev/shm: not found
]# umount $LFS/dev/pt
Code:
umount: /mnt/lfs/dev/pts: not found
# umount $LFS/dev
Code:
umount: /mnt/lfs/dev: not mounted
# umount $LFS/proc
Code:
umount: /mnt/lfs/proc: not mounted
# umount $LFS/sys
Code:
umount: /mnt/lfs/sys: not mounted
# umount /mnt/lfs
No printout.

Would it be they are not necessary?

B.R.
satimis
 
Old 08-14-2005, 05:12 AM   #5
freegianghu
Member
 
Registered: Oct 2004
Location: somewhere in the street
Distribution: Window$
Posts: 192

Rep: Reputation: 30
Quote:
6.2. Mounting Virtual Kernel File Systems

Various file systems exported by the kernel are used to communicate to and from the kernel itself. These file systems are virtual in that no disk space is used for them. The content of the file systems resides in memory.

Begin by creating directories onto which the file systems will be mounted:
Code:
mkdir -p $LFS/{proc,sys}
Now mount the file systems:
Code:
mount -t proc proc $LFS/proc
mount -t sysfs sysfs $LFS/sys
Remember that if for any reason you stop working on the LFS system and start again later, it is important to check that these file systems are mounted again before entering the chroot environment.

Additional file systems will soon be mounted from within the chroot environment. To keep the host up to date, perform a �fake mount� for each of these now:
Code:
mount -f -t tmpfs tmpfs $LFS/dev
mount -f -t tmpfs tmpfs $LFS/dev/shm
mount -f -t devpts -o gid=4,mode=620 devpts $LFS/dev/pts
 
  


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
Unable to patch 2.6.11.7 kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 06:33 AM
patch -p1 x.diff but no patch command!? pyenos Linux - Hardware 1 03-04-2005 03:10 PM
How to Install patch-o-matic(a iptables patch) on redhat 9? itebooks Linux - Security 1 07-23-2004 08:51 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 01:21 PM
How to Apply patch for Mass Storage device to work? (uss725-2.4.20-rc2.patch) cevjr Linux - Hardware 3 04-20-2004 11:14 PM

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

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