LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-28-2010, 06:21 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Confused about "mount" in appliance


Hello,

In PC-based Linux, the first element was always a disk partition (/dev/whatever), and I'd like to know what those devices are as shown when running "mount" on an uClinux-based appliance:

Code:
> mount
rootfs on / type rootfs (rw)
/dev/root on / type yaffs (rw)
proc on /proc type proc (rw)
ramfs on /var/tmp type ramfs (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
securityfs on /sys/kernel/security type securityfs (rw)
Also, why so many different filesystems?

Finally, how can / map to two lines in "mount", namely rootfs and /dev/root?

Thank you.
 
Old 12-28-2010, 07:37 AM   #2
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
if those "/dev" devices IE: sda sdb ect.... are set to mount on boot. Just cat your /etc/fstab.

cat /etc/fstab

that should display what those points are physically mounted to.
 
Old 12-29-2010, 03:19 AM   #3
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks for the help, but there's not /etc/fstab. The devices are mounted through a script, /etc/rc:

Code:
root:~> cat /etc/rc
mount -t proc proc /proc
mount -t ramfs ramfs /var/tmp
mount -t sysfs sysfs /sys
mount -t devpts devpts /dev/pts
[ -d /proc/bus/usb ] && mount -t usbfs usbfs /proc/bus/usb
[ -d /sys/kernel/debug ] && mount -t debugfs debugfs /sys/kernel/debug
[ -d /proc/sys/fs/binfmt_misc ] && mount -t binfmt_misc binfmt_misc /proc/sys/fs/binfmt_misc
[ -d /sys/kernel/security ] && mount -t securityfs securityfs /sys/kernel/security
grep -qs nfsd /proc/filesystems && mount -t nfsd nfsd /proc/fs/nfsd
But what are those entry-points? I checked in /dev, but found no trace of eg. "devpts" or "sysfs".
 
Old 12-29-2010, 08:19 AM   #4
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
Quote:
but found no trace of eg. "devpts" or "sysfs"
/dev/pts = "devpts" they are pseudo terminals "controlled by" /dev/ptmx "pseudo terminal mulitplexer" its for creating "fake" terminals IE: when you ssh into your box.

http://www.nsa.gov/research/_files/s...x/node60.shtml

/sys

sysfs is a virtual file system provided by Linux 2.6. Sysfs exports information about devices and drivers from the kernel device model to userspace, and is also used for configuration. It is similar to the sysctl mechanism found in BSD systems, but implemented as a file system instead of a separate mechanism.

http://en.wikipedia.org/wiki/Sysfs

Last edited by zer0signal; 12-29-2010 at 08:23 AM.
 
Old 12-30-2010, 03:18 AM   #5
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Original Poster
Rep: Reputation: 35
Thanks but I was refering to the second parameter. For instance:

Code:
mount -t proc proc /proc
Obviously, the bold part, which is the source, doesn't refer to a physical device in /dev. A paragraph in "Pro Linux Embedded Systems" gives the explanation:

Quote:
This board has sysfs and the proc file system mounted at /sys and /proc, respectively. These file systems aren’t associated with a physical device but are instead views into the kernel’s various data structures.
Thank you.
 
Old 12-30-2010, 06:12 AM   #6
zer0signal
Member
 
Registered: Oct 2010
Location: Cleveland
Distribution: Slackware, Fedora, RHEL (4,5), LFS 6.7, CentOS
Posts: 258

Rep: Reputation: 29
there you go, you found your answer. =)
 
  


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
Confused about "generic" vs. "386" linux kernel SaintDanBert Linux - Software 6 09-29-2009 11:51 PM
LXer: rPath on Red Hat's appliance strategy: "Some assembly required" LXer Syndicated Linux News 0 11-10-2007 03:30 PM
LXer: Linux-based open "software appliance" advances IP PBX LXer Syndicated Linux News 0 03-22-2007 11:46 AM
LXer: Open-source IP PBX becomes easy-to-use "software appliance" LXer Syndicated Linux News 0 01-04-2007 06:03 PM
Common problems explained: "kernel panic - not syncing", "unable to mount..." sundialsvcs Linux - Newbie 2 03-01-2006 12:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 AM.

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