Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't open lock file /etc/mtab~
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
otti
n00b
n00b


Joined: 15 Feb 2004
Posts: 64

PostPosted: Sun Jan 08, 2006 2:46 pm    Post subject: can't open lock file /etc/mtab~ Reply with quote

Hi,

I have a really strange problem; I switched a while ago from devfs to udev and everything just worked as it should work.
But from time to time I get strange error-messages on the boot-process (it seems to occur randomly):
Code:
* Mounting local filesystems ...
can't open lock file /etc/mtab~: Read-only file system (use -n flag to override)
 * Some local filesystem failed to mount
  [ !! ]
 * Mounting USB device filesystem (usbfs) ...
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

 * Failed to mount USB device filesystem
  [ !! ]

Then I remove /etc/mtab~ and reboot. Now I suddenly get other error messages:
Code:
Reiserfs super block in block 16 on 0x305 of format 3.6 with standard journal
Blocks (total/free): 1247037/207344 by 4096 bytes
Filesystem is NOT clean
Filesystem seems mounted read-only. Skipping journal replay.
Checking internal tree..finished
  [ ok ]
 * Remounting root filesystem read/write ...
  [ ok ]
Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

Cannot create link /etc/mtab~
Perhaps there is a stale lock file?

 * Setting hostname to mini ...
  [ ok ]
 * Using /etc/modules.autoload.d/kernel-2.6 as config:
 *   Loading module b44 ...
  [ ok ]
 *   Loading module acerhk ...
  [ ok ]
 *   Loading module fglrx ...
  [ ok ]
 *   Loading module ide-scsi ...
  [ ok ]
 * Autoloaded 4 module(s)
 * Checking all filesystems ...
  [ ok ]
 * Mounting local filesystems ...
can't create lock file /etc/mtab~1621: Read-only file system (use -n flag to override)
 * Some local filesystem failed to mount
  [ !! ]
 * Mounting USB device filesystem (usbfs) ...
  [ ok ]

What happens here? My next step is to remove all /etc/mtab* and again to reboot. Now no error messages occur, but before I see the login-prompt, the system reboots again. But after that everything is ok. Now I can boot again for some time without error messages, but then, randomly it seems, I get again this error messages at the beginning...

Thanks for any help.
Back to top
View user's profile Send private message
vladgrigorescu
Guru
Guru


Joined: 11 Jan 2005
Posts: 360

PostPosted: Sun Jan 08, 2006 3:37 pm    Post subject: Reply with quote

The only /etc/mtab* I have is /etc/mtab. /etc/mtab~ would be a file emacs creates if you edit mtab with it, and can be safely deleted.
Back to top
View user's profile Send private message
otti
n00b
n00b


Joined: 15 Feb 2004
Posts: 64

PostPosted: Sun Jan 08, 2006 5:52 pm    Post subject: Reply with quote

Please read the whole post - In the normal case I have no /etc/mtab~ either...
Back to top
View user's profile Send private message
vladgrigorescu
Guru
Guru


Joined: 11 Jan 2005
Posts: 360

PostPosted: Tue Jan 10, 2006 4:47 am    Post subject: Reply with quote

I did read the entire post, and was just letting you know that they could be safely deleted. So... why don't you just write a script to delete them at shutdown?
Back to top
View user's profile Send private message
otti
n00b
n00b


Joined: 15 Feb 2004
Posts: 64

PostPosted: Wed Jan 11, 2006 11:39 pm    Post subject: Reply with quote

Because I want to know why the error messages appear sometime and sometime not; and I am not even shure when the mtab~ files are created. I do not edit /etc/mtab, so which program/process creates these files, or are they created at the boot-process??
Back to top
View user's profile Send private message
otti
n00b
n00b


Joined: 15 Feb 2004
Posts: 64

PostPosted: Fri Jan 20, 2006 2:18 pm    Post subject: Reply with quote

I finally semi-solved the problem :); I downgraded baselayout from 1.12.0_pre13-r1.ebuild to 1.11.13-r1 (stable). So the error-messages have not reappeared so far...
Back to top
View user's profile Send private message
kevinzyguo
n00b
n00b


Joined: 01 Apr 2013
Posts: 1

PostPosted: Mon Apr 01, 2013 12:30 pm    Post subject: Reply with quote

otti wrote:
I finally semi-solved the problem :); I downgraded baselayout from 1.12.0_pre13-r1.ebuild to 1.11.13-r1 (stable). So the error-messages have not reappeared so far...


hello,do you know how it is created?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum