Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

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

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#1 Post by sioban »

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?

User avatar
ruwolf
Posts: 623
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 35 times
Been thanked: 26 times

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

#2 Post by ruwolf »

What does it write around fail of /dev/sda1 exactly?

sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#3 Post by sioban »

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.

User avatar
Pakos
Posts: 106
Joined: 2008-03-08 17:36

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

#4 Post by Pakos »

and what does systemctl status home-archives* says?

User avatar
ruwolf
Posts: 623
Joined: 2008-02-18 05:04
Location: Banovce nad Bebravou
Has thanked: 35 times
Been thanked: 26 times

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

#5 Post by ruwolf »

There is hint for you:
See

Code: Select all

systemctl status home-archives-downloads.mount
for details.

sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#6 Post by sioban »

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.

User avatar
Pakos
Posts: 106
Joined: 2008-03-08 17:36

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

#7 Post by Pakos »

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

sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#8 Post by sioban »

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

User avatar
Pakos
Posts: 106
Joined: 2008-03-08 17:36

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

#9 Post by Pakos »

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
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#10 Post by Head_on_a_Stick »

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.
deadbang

sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#11 Post by sioban »

Oh thanks I will do that as soon as possible !

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#12 Post by Head_on_a_Stick »

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.
deadbang

sioban
Posts: 20
Joined: 2015-04-29 19:48

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

#13 Post by sioban »

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: 20
Joined: 2015-04-29 19:48

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

#14 Post by sioban »

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.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

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

#15 Post by Head_on_a_Stick »

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).
deadbang

Post Reply