LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 03-27-2002, 07:52 PM   #1
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
what is devfs?


hi all

several days ago, it seems like etc/fstab changed itself..
how do i correct this?

here's my "mount -a" and "/etc/fstab"

[root@localhost mysql]# mount -a
mount: /dev/devfs already mounted or /dev busy
mount: according to mtab, devfs is already mounted on /dev
mount: No medium found


[root@localhost mysql]# cat /etc/fstab
/dev/hda5 / ext2 rw,noatime 0 0
/dev/devfs /dev devfs defaults 0 0
/dev/hda1 /mnt/windows vfat defaults 0 0
/dev/hda8 /home/eugene/data ext2 rw,noatime 0 0
/dev/scd0 /mnt/cdrom iso9660 ro,user,auto,unhide
none /proc proc defaults 0 0
/dev/hda10 /home ext2 rw,noatime 0 0
/dev/hda9 /usr ext2 rw,noatime 0 0
/dev/hda7 /boot ext2 rw,noatime 0 0
[root@localhost mysql]#

another short question...
for /boot /home /usr,
i used mount option rw,noatime 0 0
just because it was the option for /
am i safe(?) with this?

thank you
 
Old 03-27-2002, 09:24 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 197Reputation: 197
not totally familiar with mandrake, but i know you should be able to edit fstab and take out the entry for /dev/devfs with no problem. also, it mentioned it was already mounted in mtab..
what does your mtab file look like ?? most likely it has an entry in there for that /dev/devfs

-trickykid
 
Old 03-28-2002, 04:41 AM   #3
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
hi..

thank you..

actually, i don't know about mtab..
i know kernel mount all devices in fstab..

what is mtab?
llist of devices which are currently mounted?
--hmm..this does not seem to be a correct answer..

thank you..

here's my mtab
------
[eugene@localhost eugene]$ cat /etc/mtab
/dev/hda5 / ext2 rw,noatime 0 0
none /proc proc rw 0 0
devfs /dev devfs rw 0 0
/dev/hda1 /mnt/windows vfat rw 0 0
/dev/hda10 /home ext2 rw,noatime 0 0
/dev/hda9 /usr ext2 rw,noatime 0 0
/dev/hda7 /boot ext2 rw,noatime 0 0
/proc/bus/usb /proc/bus/usb usbdevfs rw,devmode=0664,devgid=43 0 0
/dev/hda8 /home/eugene/data ext2 rw,noatime 0 0
 
Old 03-28-2002, 04:52 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,384

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
well, your fstab is in a bit of a mess, i'd recoommend chaning it to

Code:
/dev/hda5   /               ext2   defaults  1 1
/dev/devfs  /dev            devfs  defaults  0 0
/dev/hda1   /mnt/windows    vfat   defaults  0 0
/dev/hda8   /home/eugene/data ext2 defaults  1 1
/dev/scd0   /mnt/cdrom   iso9660   ro,user,auto,unhide
none        /proc           proc   defaults  0 0
/dev/hda10  /home           ext2   defaults  1 1
/dev/hda9   /usr            ext2   defaults  1 1
/dev/hda7   /boot           ext2   defaults  1 2
all thoses 0 0's will mean the system isn't checked properly if it crashes.

when does this error message actually appear? IS it a problem? DevFS is a new system that will automatically create hte device references in /dev, replacing the current system of just having every imaginable device block permanantly on the system.
 
Old 03-28-2002, 06:05 AM   #5
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
It's pretty damn helpful aswell. Personally I prefer having just the entries: hda1,3,5,6,7,8,9,10,11,12,13, hdc, hdd, hdf4 instead of hunting (or trying to remember) for them from all the possible combinations.
 
Old 03-28-2002, 04:31 PM   #6
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Original Poster
Rep: Reputation: 30
thank you...

the error message shows up at boot time..
(or u mean more precisely?..)
actually, i don't think there's a problem besides the warning message..

by the way..
create hte devices rather than permanent files?

maybe i'm too ignorant to understand for u to explain it to me..
then it's ok, i'll catch up later maybe..
=)
 
Old 03-28-2002, 05:10 PM   #7
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
I wouldn't use "noatime" at all on any of your filesystems unless disk performance is critical to whatever you are doing.

BTW, "0 0" stands for 2 different things... the first "0" tells the system which filesystems to dump in the event of a crash... the second "0" is used by fsck when you reboot your system to tell what order to check your filesystems. I wouldn't recommend having the last field set to "0" (which disables checking) ... that's like walking a tight-rope without a net.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I know if I'm using devfs or not? brynjarh Linux - General 1 12-11-2004 06:43 PM
What is devfs? actteoh Linux - Hardware 1 05-06-2004 10:45 PM
Do you use DevFS? jspenguin Linux - General 11 11-27-2003 01:23 PM
To devfs, or not devfs - advice please JamesM Linux - General 7 08-13-2003 05:59 AM
devfs(d) lackluster Slackware 4 06-04-2002 12:38 PM


All times are GMT -5. The time now is 01:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration