View previous topic :: View next topic |
Author |
Message |
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Thu Oct 29, 2015 7:08 am Post subject: localmount fails on boot |
|
|
Hi,
Recently on the rare occasions I need to reboot I've found that localmount fails to start when booting.
The thing I don't understand is that its supposed to attempt to mount file systems based on the contents of /etc/fstab which looks like...
/etc/fstab: |
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
LABEL=root / ext4 noatime 0 1
UUID=3e54d3ee-ac61-4bce-ae90-1da94ec8bd78 none swap sw 0 0
LABEL=boot /boot ext4 noatime,rw,users 1 2
LABEL=portage /usr/portage ext4 noatime,users 0 3
LABEL=home /home ext4 noatime,users,exec 0 4
# Old System disk
LABEL=gentoo-backup /mnt/gentoo-backup ext4 noatime,rw,users 0 0
LABEL=data /mnt/data ext4 noatime,rw,users 0 0
# Optical Drives
/dev/sr0 /mnt/dvd1 auto noauto,rw,users,exec 0 0
/dev/sr1 /mnt/dvd2 auto noauto,rw,users,exec 0 0
# TmpFS
tmpfs /var/tmp/portage tmpfs size=2G 0 0
# USB devices
/dev/sdf1 /mnt/usb auto noauto,rw,users 0 0
/dev/sdg1 /mnt/usb2 auto noauto,rw,users 0 0
/dev/sdh1 /mnt/usb3 auto noauto,rw,users 0 0
# USB/Backup devices
/dev/disk/by-label/backup250gb /mnt/backup250gb auto noatuo,rw,users 0 0
/dev/disk/by-label/backup2tb /mnt/backup2tb auto noauto,rw,users 0 0
/dev/disk/by-label/PHONE32 /mnt/phone32 auto noauto,rw,users 0 0
/dev/disk/by-uuid/FCE7-07E4 /mnt/phone auto noauto,rw,users 0 0
/dev/disk/by-label/CANON_DC /mnt/sd16gb auto noauto,rw,users 0 0
/dev/disk/by-uuid/6638-3561 /mnt/sd32gb auto noauto,rw,users 0 0
/dev/disk/by-label/sd64gb /mnt/sd64gb auto noauto,rw,users 0 0
/dev/disk/by-uuid/6334-3539 /mnt/sd32gb auto noauto,rw,users 0 0
/dev/disk/by-uuid/408F-BE4B /mnt/clip auto noauto,rw,users 0 0
/dev/disk/by-label/backup-video /mnt/backup-video auto noauto,rw,users 0 0
/dev/disk/by-label/backup-pics /mnt/backup-pics auto noauto,rw,users 0 0
/dev/disk/by-label/backup-music /mnt/backup-music auto noauto,rw,users 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
## RAID Array and LVM2 partitions (on final partition)
/dev/vg0/music /mnt/music ext4 auto,rw,users,exec 0 0
/dev/vg0/pics /mnt/pics ext4 auto,rw,users,exec 0 0
/dev/vg0/video /mnt/video ext4 auto,rw,users,exec 0 0
/dev/vg0/work /mnt/work ext4 auto,rw,users,exec 0 0
|
It fails when trying to mount '/dev/disk/by-label/backup250gb' reporting that there is no such device but it shouldn't even be trying to mount it since its got 'noauto' flag against its entry in /etc/fstab so no attempt to auto-mount it should occur. I have to comment all of my USB/Backup devices out if I want a clean boot.
My inital thought was that it might be udev not having started, but thats in runlevel sysinit and starts before localmount which is in default...
rc-update show: |
# rc-update show
NetworkManager | default
acpid | default
binfmt | boot
bootmisc | boot
consolekit | default
cups-browsed | default
cupsd | default
devfs | sysinit
dmesg | sysinit
fcron | default
fsck | boot
hostname | boot
hwclock | boot
keymaps | boot
killprocs | shutdown
kmod-static-nodes | sysinit
lighttpd | default
local | default
localmount | boot
loopback | boot
lvm | boot
mdraid | boot
mediatomb | default
modules | boot
mount-ro | shutdown
mpd | default
mtab | boot
net.lo | boot
nfs | default
procfs | boot
root | boot
rsyncd | default
savecache | shutdown
smartd | default
sshd | default
swap | boot
swapfiles | boot
sysctl | boot
sysfs | sysinit
syslog-ng | default
termencoding | boot
tmpfiles.dev | sysinit
tmpfiles.setup | boot
transmission-daemon | default
udev | sysinit
udev-trigger | sysinit
urandom | boot
xdm | default
|
Any ideas on why this is happening and how to correct it would be very much appreciated.
Thanks,
slackline _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
Roman_Gruber Advocate
Joined: 03 Oct 2006 Posts: 3846 Location: Austro Bavaria
|
Posted: Thu Oct 29, 2015 8:02 am Post subject: |
|
|
You may add some sort of delay, so the disc is able to spin up. It exists for grub2, so I assume there exists something for fstab too. Or some workaround.
One of the usb drives i sold recently needed two minutes to get up. it filled up my dmesg wiht lots of junk messages. The main reason why i dumped it, after not using it for years.
And you may check if you can mount it by hand: '/dev/disk/by-label/backup250gb'
Sometimes the mount point just does not exists or the drive does just not exists. |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Thu Oct 29, 2015 8:20 am Post subject: Re: localmount fails on boot |
|
|
slackline wrote: | /etc/fstab: |
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
LABEL=root / ext4 noatime 0 1
UUID=3e54d3ee-ac61-4bce-ae90-1da94ec8bd78 none swap sw 0 0
LABEL=boot /boot ext4 noatime,rw,users 1 2
LABEL=portage /usr/portage ext4 noatime,users 0 3
LABEL=home /home ext4 noatime,users,exec 0 4
# Old System disk
LABEL=gentoo-backup /mnt/gentoo-backup ext4 noatime,rw,users 0 0
LABEL=data /mnt/data ext4 noatime,rw,users 0 0
# Optical Drives
/dev/sr0 /mnt/dvd1 auto noauto,rw,users,exec 0 0
/dev/sr1 /mnt/dvd2 auto noauto,rw,users,exec 0 0
# TmpFS
tmpfs /var/tmp/portage tmpfs size=2G 0 0
# USB devices
/dev/sdf1 /mnt/usb auto noauto,rw,users 0 0
/dev/sdg1 /mnt/usb2 auto noauto,rw,users 0 0
/dev/sdh1 /mnt/usb3 auto noauto,rw,users 0 0
# USB/Backup devices
/dev/disk/by-label/backup250gb /mnt/backup250gb auto noatuo,rw,users 0 0
|
|
Sometimes computers are kinda pedantic. Try "noauto" instead of "noatuo" in that certain line. |
|
Back to top |
|
|
slackline Veteran
Joined: 01 Apr 2005 Posts: 1471 Location: /uk/sheffield
|
Posted: Thu Oct 29, 2015 8:44 am Post subject: Re: localmount fails on boot |
|
|
charles17 wrote: |
Sometimes computers are kinda pedantic. Try "noauto" instead of "noatuo" in that certain line. |
Damn it my mind must be going, as thats the second typo I've made and not noticed myself in the last month. It can't be my eye-sight (I had it tested recently and it was better than 20/20 at around 6/3).
I'll correct that and try rebooting this evening when I get home.
The slightly strange thing is that I haven't edited /etc/fstab recently, I wrote all the USB/Backup section well over a year ago when I did a fresh install on a new SSD and its never complained until the last month.
Anyway, mark another one up against the user being the problem again.
Thanks and I'll remember to read carefully each time (although its quite likely that my mind is reading it correctly so I don't notice). _________________ "Science is what we understand well enough to explain to a computer. Art is everything else we do." - Donald Knuth |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3664
|
Posted: Thu Oct 29, 2015 8:54 am Post subject: Re: localmount fails on boot |
|
|
slackline wrote: | charles17 wrote: |
Sometimes computers are kinda pedantic. Try "noauto" instead of "noatuo" in that certain line. |
Damn it my mind must be going, as thats the second typo I've made and not noticed myself in the last month. |
Sometimes such kind of typing errors get more evident with a more table-like formatting. |
|
Back to top |
|
|
|
|
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
|
|