[Ilugc] mounting problem

  • From: mrugeshkarnik@xxxxxxxxx (Mrugesh Karnik)
  • Date: Tue Jan 29 22:58:08 2008

On Tuesday 29 Jan 2008 19:40:41 Mohan Sundaram wrote:

Arun Khan wrote:
On Tuesday 29 Jan 2008, Mohan Sundaram wrote:
Do not know how but my /etc/mtab permissions have changed due to
which I'm unable to mount my partitions. /dev/sda5 is listed in
/etc/fstab but while mounting it gives an error saying /etc/mtab
permission denied. This is not my primary partition but has data in
it.

As root user, what does "ls -l /etc/mtab" show?  If you cannot mount and
fix perms as root user then your system is hosed.  Rebooting might
solve the problem.

Does not read either. ls -al says permission denied which means no read
access. I came to the hosed conclusion much earlier but wanted to see if
some wise men could help.

Am on Gutsy. Read some place that Synaptic run upgrades of X11 sometimes
hoses /etc/mtab. Guess I'm a victim of that. Am left scratching my head.

Hmm. IIRC, the system should work even in the absence of /etc/mtab, albeit 
with some issues, with /proc/mounts. One thing to try out is to simply copy 
over /proc/mounts to /etc/mtab. /proc/mounts leaves out some of the details 
included in /etc/mtab, but at least, the system will work properly. You can 
also soft link /etc/mtab to /proc/mounts. The issues are minor IIRC.. 
something to do with loopback mounts or mounting with `user' not working 
properly.

-- 
----------------------------------------
Mrugesh Karnik
GPG Key 0xBA6F1DA8
Public key on http://wwwkeys.pgp.net
----------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 
http://www.ae.iitm.ac.in/pipermail/ilugc/attachments/20080129/5df95a13/attachment.bin

Other related posts: