LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2012, 04:06 AM   #1
ted_chou12
Member
 
Registered: Aug 2010
Location: Zhongli, Taoyuan
Distribution: slackware, windows, debian (armv4l GNU/Linux)
Posts: 425
Blog Entries: 28

Rep: Reputation: 2
chrooted too many times


Hi, I dont know if this is because I have chrooted a lot of times without exiting properly, the pendrives is currently read-only, but e2fsck returns clean. I am sure a reboot will make it writeable again, but I want to make sure that the next time I chrooted I do it properly:
Code:
# cat /etc/mtab
rootfs / rootfs rw 0 0
/dev/root / jffs2 ro 0 0
tmpfs /var tmpfs rw 0 0
tmpfs /tmp tmpfs rw 0 0
tmpfs /usb tmpfs rw 0 0
mdev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /etc tmpfs rw 0 0
/dev/sda1 /usb/sda1 ext3 ro,noatime,data=ordered 0 0
/dev/sda1 /opt ext3 ro,noatime,data=ordered 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
none /usb/sda1/debian/proc proc rw 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
/dev/root /usb/sda1/debian/proc jffs2 ro 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
/dev/root /usb/sda1/debian/proc jffs2 ro 0 0
mdev /usb/sda1/debian/dev tmpfs rw 0 0
/dev/root /proc jffs2 ro 0 0
none /proc proc rw 0 0
# cat /etc/chroot.sh
mount -o bind /proc /usb/sda1/debian/proc
mount -o bind /dev /usb/sda1/debian/dev
chroot /usb/sda1/debian/
Thanks,Ted
 
Old 10-11-2012, 06:35 AM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
if you are chrooting with this little script, then yes, it does mount /proc and /dev on every run
 
Old 10-11-2012, 06:37 AM   #3
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
…usually /proc, /dev, /sys, /dev/pts, etc. are mounted only one time
 
1 members found this post helpful.
  


Reply


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
Chrooted Postfix? How would I know? panicbox Linux - Security 2 03-07-2006 04:27 AM
System hangs; Atheros Madwifi-ping times out every 15/16 times james 456 Linux - Networking 0 01-12-2006 06:55 PM
What does chrooted mean? Red Squirrel Linux - Software 6 08-21-2005 08:41 PM
is service chrooted? overlord73 Linux - Security 2 07-06-2005 01:10 AM
Chrooted Apache dominant Linux - Security 4 09-20-2004 02:48 AM


All times are GMT -5. The time now is 08:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration