You are not logged in.

#1 2006-10-03 04:26:21

RajivNair
Member
From: Mumbai,India
Registered: 2006-06-17
Posts: 40

Has fstab gone redundant??

Hello everyone,
    Has fstab been replaced by mtab,coz it seems tht all the mtab entries are catered to before the fstab entries,its resulting in my root partition to be mounted twice,its showing another partition with 37.0gb size and when i click on it ,its saying

    Unable to mount the selected volume.
    mount: according to mtab, /dev/hda3 is already mounted on /

    mount failed


Can i comment out the root entry in fstab to set things right or am i gonna mess it up??

Thanks in advance,
Rajiv Nair

Offline

#2 2006-10-03 06:41:44

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Has fstab gone redundant??

I do not thinkk so, since they seem to have a complementary function rather than being substitute for one another.
Take a look here:
http://www.brunolinux.com/02-The_Termin … _Mtab.html

Offline

#3 2006-10-03 07:54:07

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: Has fstab gone redundant??

yes, what rajiv said is abs correct along with the link...

fstab, is where u manually map partition and their mount points,
after the partitions are mounted they are mapped in mtab.. applications then use mtab to verify what partitions are available for use and how/where their access points are ...


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#4 2006-10-03 11:17:18

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Has fstab gone redundant??

Did you manually edit /etc/mtab?  This file is automatically generated and tracks which partitions you have mounted, and where - you should _not_ edit it by hand, otherwise you'll get problems like the one you just described.

Offline

#5 2006-10-03 12:37:31

noriko
Member
From: In My Mind
Registered: 2006-06-09
Posts: 535
Website

Re: Has fstab gone redundant??

add:to what cer~ said...

Can i comment out the root entry in fstab to set things right or am i gonna mess it up?? 

no, a partition must exist afaik, for '/' .. if there are duplicate entries, i recommend removing the incorrect one/s ...
as cer~ said, if u manually edit/delete mtab, u will be unable to mount/unmount partitions that were listed in it, the only solution i know of is to reboot... and even this might not be very safe...


The.Revolution.Is.Coming - - To fight, To hunger, To Resist!

Offline

#6 2006-10-03 16:49:57

RajivNair
Member
From: Mumbai,India
Registered: 2006-06-17
Posts: 40

Re: Has fstab gone redundant??

hello everyone,
this is my fstab file:-
   

#
# /etc/fstab: static file system information
#
# <file>      <dir>        <type>    <options>             <dump> <pass>
none                 /dev/pts     devpts    defaults               0      0
none                 /dev/shm     tmpfs     defaults               0      0

/dev/hdd             /mnt/cd      iso9660   ro,user,noauto,unhide  0      0
/dev/dvd             /mnt/dvd     udf       ro,user,noauto,unhide  0      0
/dev/fd0             /mnt/fl      vfat      user,noauto            0      0

/dev/hda3            /            ext3      defaults               0      1
/dev/hda1            /boot        ext2      defaults               0      1
/dev/hda2            swap         swap      defaults               0      0
/dev/hdc3            /media/hdc3  ext3      defaults               0      1
/dev/hdc5            /media/hdc5  ext3      defaults               0      1

and this is my mtab file:-

/dev/hda3 / ext3 rw 0 0
none /proc proc rw 0 0
none /sys sysfs rw 0 0
none /proc/bus/usb usbfs rw 0 0
none /dev/pts devpts rw 0 0
none /dev/shm tmpfs rw 0 0
/dev/hda1 /boot ext2 rw 0 0
/dev/hdc3 /media/hdc3 ext3 rw 0 0
/dev/hdc5 /media/hdc5 ext3 rw 0 0

from this i still cant figure out the redundant entry and im still getting that duplicate mounts for "/" ,i had the same problem with "hdc3" and "hdc5" but that got corrected by changing the mount points from /mnt/*** to /media/***.
and also i havent manually edited "mtab" , i have only edited "fstab".
thanks y'all,
rajiv nair

Offline

#7 2006-10-06 05:11:18

projektdotnet
Member
Registered: 2006-10-06
Posts: 10

Re: Has fstab gone redundant??

there is no duplicate. fstab is where you tell it to mount and mtab shows where everything is currently mounted. Looks fine if your Filesystem isn't buggin out I wouldn't worry about it

Offline

Board footer

Powered by FluxBB