Problem with mtab?
Hello all, I use Debian 1.2/Linux 2.0.29. I have three partitions on my hard disk : /dev/hda1 : linux /dev/hda2 : linux swap /dev/hda3 : ms-dos 6.22 And I have a problem with the mount command : nathalie# mount /hda3/ can't lock lock file /etc/mtab~: timed out So, I delete /etc/mtab~ and it runs. But, I have to delete this mtab~ at each boot. I have three computer running Debian, and it is the only one with this problem. Any idea? Sylvain. Sylvain Briole | SysOp d'Eclice B.B.S. EMail InterNet : [EMAIL PROTECTED] | +33-3-20137288 NetMail FidoNet : 2:322/20 | Lille - Nord - France NetMail FrancoMedia : 101:176/114 | Eclice sur I.R.C. | -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Problem with mtab?
This is what I have in my /etc/init.d/boot, version @(#)boot 2.10 26-Apr-1997 [EMAIL PROTECTED] [cut] # # Remount rootfs rw (default), but do not try to change mtab because it # is on a ro fs until the remount succeeded. Then clean up old mtabs and # finally write the new mtab. # mount -n -o remount,rw / rm -f /etc/mtab~ /etc/nologin : > /etc/mtab mount -o remount,rw / mount /proc [cut] So according to this, /etc/init.d/boot should take care of removing /etc/mtab~ during the boot. The /etc/init.d/boot file I have comes with sysvinit version 2.71-2 that was installed with Debian 1.3. // Heikki Sylvain Briole <[EMAIL PROTECTED]> wrote: > > Hello all, > > I use Debian 1.2/Linux 2.0.29. > I have three partitions on my hard disk : > > /dev/hda1 : linux > /dev/hda2 : linux swap > /dev/hda3 : ms-dos 6.22 > > And I have a problem with the mount command : > > nathalie# mount /hda3/ > can't lock lock file /etc/mtab~: timed out > > So, I delete /etc/mtab~ and it runs. > But, I have to delete this mtab~ at each boot. > I have three computer running Debian, and it is the only one with this > problem. > > Any idea? -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Problem with mtab?
[Charset iso-8859-1 unsupported, filtering to ASCII...] > This is what I have in my /etc/init.d/boot, version [..] > rm -f /etc/mtab~ /etc/nologin [..] > So according to this, /etc/init.d/boot should take care of removing > /etc/mtab~ during the boot. That'll solve the problem, but not the cause. The /etc/mtab~ file is a lock file for mount, and mount should delete it itself. > Sylvain Briole <[EMAIL PROTECTED]> wrote: > > > > Hello all, > > > > I use Debian 1.2/Linux 2.0.29. > > I have three partitions on my hard disk : > > > > /dev/hda1 : linux > > /dev/hda2 : linux swap > > /dev/hda3 : ms-dos 6.22 > > > > And I have a problem with the mount command : > > > > nathalie# mount /hda3/ > > can't lock lock file /etc/mtab~: timed out Apparently your mount eigher doesn't exit properly (maybe it's trying to mount nfs volumes in the background?), or it's killed for some other reason. What does: $ ps -ax|grep [m]ount output on your system (is mount still running)? And during boot, when the "mount -avt" comes, what does mount say? (or maybe there are other mount calls, like the nfs mount one.). -- joost witteveen, [EMAIL PROTECTED] #!/usr/bin/perl -sp0777ihttp://www.dcs.ex.ac.uk/~aba/rsa/ -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Problem with mtab?
Hello joost, > > > nathalie# mount /hda3/ > > > can't lock lock file /etc/mtab~: timed out > Apparently your mount eigher doesn't exit properly (maybe it's trying > to mount nfs volumes in the background?), or it's killed for > some other reason. > What does: > $ ps -ax|grep [m]ount > output on your system (is mount still running)? nathalie# ps -aux|grep [m]ount root892 0.0 1.9 836 376 ? S 13:37 0:00 /usr/sbin/rpc.mount > And during boot, when the "mount -avt" comes, what does mount say? > (or maybe there are other mount calls, like the nfs mount one.). msdos: fs not supported by the kernel But : I have msdos-fs in the kernel : it is a module! Thanx for the help, Sylvain. Sylvain Briole | SysOp d'Eclice B.B.S. EMail InterNet : [EMAIL PROTECTED] | +33-3-20137288 NetMail FidoNet : 2:322/20 | Lille - Nord - France NetMail FrancoMedia : 101:176/114 | Eclice sur I.R.C. | -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .
Re: Problem with mtab?
Hello Heikki, > [cut] > # > # Remount rootfs rw (default), but do not try to change mtab because it > # is on a ro fs until the remount succeeded. Then clean up old mtabs and > # finally write the new mtab. > # > mount -n -o remount,rw / > rm -f /etc/mtab~ /etc/nologin > : > /etc/mtab > mount -o remount,rw / > mount /proc > [cut] > So according to this, /etc/init.d/boot should take care of removing > /etc/mtab~ > during the boot. It is what I thought but it doesn't delete /etc/mtab~ because this file is present when I log in as root > The /etc/init.d/boot file I have comes with sysvinit version 2.71-2 that was > installed with Debian 1.3. Mine is 2.69-1 : I will try to update Thanx, Sylvain. Sylvain Briole | SysOp d'Eclice B.B.S. EMail InterNet : [EMAIL PROTECTED] | +33-3-20137288 NetMail FidoNet : 2:322/20 | Lille - Nord - France NetMail FrancoMedia : 101:176/114 | Eclice sur I.R.C. | -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .