fstab had usbfs and sysfs in Slackware 12.0 but not in 12.1
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
fstab had usbfs and sysfs in Slackware 12.0 but not in 12.1
I was comparing my fstab from a clean install of 12.1 to my fstab from a system that has been upgraded from 10.2 to 11.0 to 12.0 and I noticed that my old fstab had this:
They are not in the fstab that was built by my clean install of 12.1. Maybe I added them to my old system manually or they were automatically added by a previous version of Slackware; I don't recall.
What did these do for me in previous versions of Slackware before 12.1, and why aren't they included in fstab by the 12.1 install?
Run "mount"... what does it tell you? You're not supposed to mess with it anymore, that is why it is no longer in /etc/fstab where you could easily remove the lines.
$ mount
/dev/hda13 on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/hda14 on /home type ext3 (rw)
/dev/hda15 on /mnt/hda15 type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
They're mounted for me, just not mentioned in fstab.
(sorry, guess I should refresh the page before posting)
Thanks. I surely won't mess with it. My results look pretty much like wadsworth's.
Code:
root@i1:~# mount
/dev/mapper/vg00-root on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/mapper/vg00-home on /home type ext3 (rw)
/dev/sda1 on /boot type ext3 (rw)
/dev/hda1 on /mnt/hda1 type ext3 (rw)
/dev/hda5 on /mnt/hda5 type reiserfs (rw)
/dev/hdb1 /mnt/winxp type fuseblk (rw,nousid,nodev,noatime,allow_other,default_permissions,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
tmpfs is new for 12.1 too, I believe. I guess that's a temporary file system, but what for?
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810
Rep:
Have a look at /usr/src/linux/Documentation/filesystems/tmpfs.txt here is a quote from it:
Quote:
tmpfs has the following uses:
1) There is always a kernel internal mount which you will not see at
all. This is used for shared anonymous mappings and SYSV shared
memory.
This mount does not depend on CONFIG_TMPFS. If CONFIG_TMPFS is not
set, the user visible part of tmpfs is not build. But the internal
mechanisms are always present.
2) glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
POSIX shared memory (shm_open, shm_unlink). Adding the following
line to /etc/fstab should take care of this:
tmpfs /dev/shm tmpfs defaults 0 0
Remember to create the directory that you intend to mount tmpfs on
if necessary.
This mount is _not_ needed for SYSV shared memory. The internal
mount is used for that. (In the 2.3 kernel versions it was
necessary to mount the predecessor of tmpfs (shm fs) to use SYSV
shared memory)
3) Some people (including me) find it very convenient to mount it
e.g. on /tmp and /var/tmp and have a big swap partition. And now
loop mounts of tmpfs files do work, so mkinitrd shipped by most
distributions should succeed with a tmpfs /tmp.
4) And probably a lot more I do not know about :-)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.