Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab problem

Kernels & Hardware, configuring network, installing services

Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab problem

Postby sioban » 2019-07-30 12:31

Hi,

I've upgraded my debian stretch to buster recently.
With this I had to change my kernel version for the one coming from the new version.

I had several problems with my fstab.
This is my old one:
Code: Select all
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/md1        /               xfs     defaults,nobarrier        0       1
/dev/md0        /boot           ext2    defaults        0       2
/dev/md9        /home           xfs     defaults,nobarrier       0       2
/dev/md3        /tmp            xfs     defaults,nobarrier        0       2
/dev/md4        /usr            xfs     defaults,nobarrier        0       2
/dev/md5        /var            xfs     defaults,nobarrier        0       2
/dev/md8        /var/lib        xfs     defaults,nobarrier        0       2
/dev/md6        /var/log        xfs     defaults,nobarrier        0       2
/dev/md7        /var/spool      xfs     defaults,nobarrier        0       2
/dev/md2        none            swap    sw             0       0
/dev/sda1       /home/archives/downloads           ext4   rw,nosuid,nodev,auto,async,noatime,discard,nouser,defaults          0       2

# NAS
//10.10.12.201/z-archives       /mnt/z-archives cifs     rw,noperm,nosuid,nodev,auto,file_mode=0777,dir_mode=0777,iocharset=utf8,credentials=/root/.nascredentials,uid=0,gid=124 0 0


    - First nobarrier is not recognized anymore so I removed it
    - then for my NAS/SMB, I had to specify the version. I've first put vers=2.0 but missed symlinks. So I tried mfsymlinks but it was not well supported by my media player. Now I'm with vers=1.0 but I didn't tested with 4.19 right now
    - I still have a problem mounting /dev/sda1. It fails mounting at boot and end in emergency mode.

However when I enter my root password I do not get any prompt and can't see why the system can't mount the disk.

I've tried reducing the option to minimal needed but it stills fails.

Code: Select all
/dev/sda1       /home/archives/downloads           ext4    rw,nosuid,nodev,auto,nouser,defaults          0       2


Do you have any suggestion?
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby ruwolf » 2019-07-30 14:46

What does it write around fail of /dev/sda1 exactly?
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-07-30 17:18

I have only this as I have nothing in logs from this boot >_<

> https://framapic.org/f8nT4un4hBkj/oPoiTtX2qul3.jpg
Last edited by sioban on 2019-08-02 05:10, edited 1 time in total.
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Pakos » 2019-07-30 17:36

and what does systemctl status home-archives* says?
User avatar
Pakos
 
Posts: 93
Joined: 2008-03-08 17:36

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby ruwolf » 2019-07-30 17:38

There is hint for you:
See
Code: Select all
systemctl status home-archives-downloads.mount
for details.
User avatar
ruwolf
 
Posts: 392
Joined: 2008-02-18 05:04
Location: Slovakia, Banovce nad Bebravou, Matice slovenskej 1260/4-7

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-07-31 05:09

ruwolf wrote:There is hint for you:
See
Code: Select all
systemctl status home-archives-downloads.mount
for details.


Thanks but I can't run it when I have the problem because I'm not able to have a shell.
If I boot with kernel 4.9, I just get the current status as 4.9 is able to mount the drive without problems...

Code: Select all
 systemctl status home-archives-downloads.mount
Warning: The unit file, source configuration file or drop-ins of home-archives-downloads.mount changed on disk. Run 'systemctl daemon-reload' to reload units.
● home-archives-downloads.mount - /home/archives/downloads
   Loaded: loaded (/etc/fstab; generated)
   Active: active (mounted) since Sun 2019-07-28 14:38:22 CEST; 2 days ago
    Where: /home/archives/downloads
     What: /dev/sda1
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
    Tasks: 0 (limit: 4915)
   Memory: 56.0K
   CGroup: /system.slice/home-archives-downloads.mount

juil. 28 14:38:22 shax systemd[1]: Mounting /home/archives/downloads...
juil. 28 14:38:22 shax systemd[1]: Mounted /home/archives/downloads.
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Pakos » 2019-07-31 05:47

sioban wrote:
ruwolf wrote:There is hint for you:
See
Code: Select all
systemctl status home-archives-downloads.mount
for details.


Thanks but I can't run it when I have the problem because I'm not able to have a shell.
If I boot with kernel 4.9, I just get the current status as 4.9 is able to mount the drive without problems...

Code: Select all
 systemctl status home-archives-downloads.mount
Warning: The unit file, source configuration file or drop-ins of home-archives-downloads.mount changed on disk. Run 'systemctl daemon-reload' to reload units.
● home-archives-downloads.mount - /home/archives/downloads
   Loaded: loaded (/etc/fstab; generated)
   Active: active (mounted) since Sun 2019-07-28 14:38:22 CEST; 2 days ago
    Where: /home/archives/downloads
     What: /dev/sda1
     Docs: man:fstab(5)
           man:systemd-fstab-generator(8)
    Tasks: 0 (limit: 4915)
   Memory: 56.0K
   CGroup: /system.slice/home-archives-downloads.mount

juil. 28 14:38:22 shax systemd[1]: Mounting /home/archives/downloads...
juil. 28 14:38:22 shax systemd[1]: Mounted /home/archives/downloads.



how so? after fstab fail you should be in emergency, just use your root password and check
User avatar
Pakos
 
Posts: 93
Joined: 2008-03-08 17:36

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-07-31 07:29

I've tried, I've entered my password but it fails giving me a shell and just sit there.
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Pakos » 2019-07-31 14:25

sioban wrote:I've tried, I've entered my password but it fails giving me a shell and just sit there.



just login with root password, when you're i shell type

systemctl status home-archives-downloads.mount

and paste here what it says
User avatar
Pakos
 
Posts: 93
Joined: 2008-03-08 17:36

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Head_on_a_Stick » 2019-07-31 15:17

Enable persistent logging:
Code: Select all
# mkdir -p /var/log/journal

Then boot into the problematic kernel to generate the logs, reboot into the working kernel and use
Code: Select all
journalctl -b -1 -u home-archives-downloads.mount

^ That should show the journal entries for the mount unit from the previous boot.
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-08-01 12:33

Oh thanks I will do that as soon as possible !
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Head_on_a_Stick » 2019-08-01 17:30

Any chance you could replace your massive image with a link? We have forum users with limited bandwidth and clicking on this thread will cost them.
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-08-02 05:10

Head_on_a_Stick wrote:Any chance you could replace your massive image with a link? We have forum users with limited bandwidth and clicking on this thread will cost them.


Done!
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby sioban » 2019-08-02 16:23

Ok I've tried,

I got this :

Code: Select all
août 02 17:10:30 shax systemd[1]: home-archives-downloads.mount: Directory /home/archives/downloads to mount over is not empty, mounting anyway.
août 02 17:10:30 shax systemd[1]: Mounting /home/archives/downloads...
août 02 17:10:33 shax mount[558]: mount: /home/archives/downloads: /dev/sda1 already mounted or mount point busy.
août 02 17:10:31 shax systemd[1]: home-archives-downloads.mount: Mount process exited, code=exited, status=32/n/a
août 02 17:10:31 shax systemd[1]: home-archives-downloads.mount: Failed with result 'exit-code'.
août 02 17:10:31 shax systemd[1]: Failed to mount /home/archives/downloads.
sioban
 
Posts: 15
Joined: 2015-04-29 19:48

Re: Kernel 4.9.168-1+deb9u3 to 4.19.37-5+deb10u1 fstab probl

Postby Head_on_a_Stick » 2019-08-03 13:26

Try changing the auto option to x-systemd.automount.

EDIT: the noatime option is pointless for modern production SSDs and the discard option will slow your drive down (use fstrim every month instead).
User avatar
Head_on_a_Stick
 
Posts: 10380
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to System configuration

Who is online

Users browsing this forum: No registered users and 9 guests

fashionable