LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-22-2008, 11:58 AM   #1
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Rep: Reputation: 174Reputation: 174
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:

Code:
usbfs         /proc/bus/usb   usbfs    user,defaults    0 0
none          /sys            sysfs    defaults         0 0
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?
 
Old 06-23-2008, 01:45 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Slackware-12.1 mounts them directly via rc scripts, and no longer requires the lines in /etc/fstab.

Last edited by Bruce Hill; 06-23-2008 at 08:36 AM. Reason: previous info was wrong ...
 
Old 06-23-2008, 08:36 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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.

Eric
 
Old 06-23-2008, 08:47 AM   #4
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
What's the output of "mount"?
Code:
$ 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)

Last edited by wadsworth; 06-23-2008 at 08:50 AM.
 
Old 06-23-2008, 09:24 AM   #5
Z038
Member
 
Registered: Jan 2006
Location: Dallas
Distribution: Slackware
Posts: 910

Original Poster
Rep: Reputation: 174Reputation: 174
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?
 
Old 08-06-2008, 01:29 AM   #6
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 16

Rep: Reputation: 0
tmpfs

tmpfs file system is for ATI driver to use 3D acceleration DRI.
without it users can't use it.
 
Old 08-06-2008, 09:35 AM   #7
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 232Reputation: 232Reputation: 232
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 :-)
 
  


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
usbfs on slackware 10.1 anilkumar.as Slackware 7 09-14-2005 04:36 PM
mount usbfs? yusufozk Linux - General 2 03-23-2005 06:01 PM
usbfs usb paulinimus Linux - Hardware 2 02-01-2005 09:39 AM
kernel 2.6.0 and Suse 9 looking for fstab, modprobe, sysfs jim quigley Linux - Distributions 0 01-10-2004 12:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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