You are not logged in.

#1 2012-01-30 01:02:15

teratomata
Member
Registered: 2010-02-23
Posts: 13

Home partitions don't mount on startup but mount -a works.

When I boot up the computer fails at logging into KDE because the /home/ partition is not mounted. If I drop into CLI and do a 'umount -a' and then 'mount -a', all the partitions get mounted properly and I can log into KDE. I'm not sure if I have updated anything or what I did to cause the break because I don't reset for days. I'm lead to believe that my fstab is formatted correctly because mount -a works, but I tried switching from UUIDs to /dev/sdax ids and that didn't fix anything either. I'm pretty much at a loss as to what to look at now.

Offline

#2 2012-01-30 01:45:04

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: Home partitions don't mount on startup but mount -a works.

Is it specific to your account or does it affect other accounts on your machine?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2012-01-30 02:00:18

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,360

Re: Home partitions don't mount on startup but mount -a works.

Perhaps you should post up your fstab, just in case? And boot logs, of course.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#4 2012-01-30 02:35:50

teratomata
Member
Registered: 2010-02-23
Posts: 13

Re: Home partitions don't mount on startup but mount -a works.

/etc/fstab:

#
# /etc/fstab: static file system information
#
# <file system> <dir>   <type>  <options>       <dump>  <pass>
tmpfs           /tmp    tmpfs   nodev,nosuid    0       0

UUID=16fffbe3-cac5-4d62-a464-85327cddc1c6 /             ext4 defaults,discard                   0 1
UUID=2d6a3297-b8d5-4166-bf71-8131b042c12c /boot ext2 defaults                           0 1
UUID=4fa241cd-c16c-4d0e-9d81-96c860b446d3 /home ext4 defaults,user_xattr,discard        0 1
UUID=bee76820-1906-4997-9464-3e4509bf7391 swap          swap defaults                           0 0

#/dev/sda3      /     ext4 defaults,discard                   0 1
#/dev/sda1      /boot ext2 defaults                           0 1
#/dev/sda4      /home ext4 defaults,user_xattr,discard        0 1
#/dev/sda2      swap  swap defaults                           0 0

dmesg | grep sda

[    1.448404] sd 0:0:0:0: [sda] 117231408 512-byte logical blocks: (60.0 GB/55.8 GiB)
[    1.448550] sd 0:0:0:0: [sda] Write Protect is off
[    1.448556] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    1.448600] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.450075]  sda: sda1 sda2 sda3 sda4
[    1.451616] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.758344] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[    4.245198] EXT4-fs (sda3): re-mounted. Opts: discard
[    4.435647] Adding 265068k swap on /dev/sda2.  Priority:-1 extents:1 across:265068k SS
[   15.549479] EXT4-fs (sda3): re-mounted. Opts: discard,commit=15
[   66.196235] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: user_xattr,discard

Full dmesg

I'm not sure if I should post anything else?

Offline

#5 2012-01-30 02:50:30

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Home partitions don't mount on startup but mount -a works.

Not strictly related, but please fix your fsck passno values. All drives to be fsck'd that are not root should be given a value of 2, not 1.

Offline

#6 2012-01-30 03:00:10

teratomata
Member
Registered: 2010-02-23
Posts: 13

Re: Home partitions don't mount on startup but mount -a works.

@cfr
Since the /home partition doesn't mount it doesn't affect any specific account, it affects anyone trying to run KDE or any else on /home.

@falconindy fixed, thanks.

I decided to boot into CLI by switching 'ro nomodeset' to 'ro 3' in /boot/grub/menu.lst, and then added 'sudo umount -a; sudo mount -a; kdm' to rc.local. This is also fixed a dual monitor issue I was having, but is obviously a crappy hack and has some other problems. I may just reinstall if I can't fix it.

Offline

#7 2012-01-30 05:09:23

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,536

Re: Home partitions don't mount on startup but mount -a works.

Same as OP,
I posted some detail in this post.
Even the solution here posted I doubt will work, let me just have to try.

EDIT
In fact I haven't solved by increasing fsck'ing on the /etc/fstab.
I can solve by unmount & remount all devices, but it's a very bad remedy.
Hoping for a nice clue roll roll

EDIT2
I've put an ugly fix in /etc/rc.local

if [ $(cat /proc/mounts |grep -c home) == 0 ]; then
 mount /home
fi

But this sysinit will skip fs checking.

Last edited by TheSaint (2012-01-30 09:46:17)


do it good first, it will be faster than do it twice the saint wink

Offline

Board footer

Powered by FluxBB