Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

EXT4 not mounting on boot.

Fri Sep 13, 2019 7:18 pm

Hello.

It has all been working fine until now, when I rebooted.

I have edited my fstab file to include the ID so it mounts to the same folder at startup, but everytime i reboot, it doesn't remount.

Actually I can't even find the entry when typing df in the terminal.

However, when I remove the fstab entry and reboot, it appears again and I can mount it manually.

Here is the entry:

Code: Select all

UUID="ID-XXXXXXXXXXXXXXXX" /disks/location  ext4  defaults,auto,rw,nofail 0 1

Andyroo
Posts: 4231
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: EXT4 not mounting on boot.

Fri Sep 13, 2019 7:36 pm

It’s possible the disk is not ready by the time the fstab is read.

Try a reboot with the line in and then run

Code: Select all

sudo mount -a
and see if that works.

This will show any errors as it tries to mount the drive.

By the way - no need to hide the UUID - we cannot get to the device and it can make it harder to debug issues when checking things.
Need Pi spray - these things are breeding in my house...

Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

Re: EXT4 not mounting on boot.

Fri Sep 13, 2019 7:38 pm

Andyroo wrote:
Fri Sep 13, 2019 7:36 pm
It’s possible the disk is not ready by the time the fstab is read.

Try a reboot with the line in and then run

Code: Select all

sudo mount -a
and see if that works.

This will show any errors as it tries to mount the drive.

By the way - no need to hide the UUID - we cannot get to the device and it can make it harder to debug issues when checking things.
It gives me an error, saying the partition is busy... Ok thanks for letting me know!

Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

Re: EXT4 not mounting on boot.

Fri Sep 13, 2019 11:25 pm

Andyroo wrote:
Fri Sep 13, 2019 7:36 pm
It’s possible the disk is not ready by the time the fstab is read.

Try a reboot with the line in and then run

Code: Select all

sudo mount -a
and see if that works.

This will show any errors as it tries to mount the drive.

By the way - no need to hide the UUID - we cannot get to the device and it can make it harder to debug issues when checking things.
this is the verbatim output:

Code: Select all

mount: /disks/linus: /dev/sda1 already mounted or mount point busy.

Andyroo
Posts: 4231
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: EXT4 not mounting on boot.

Fri Sep 13, 2019 11:52 pm

Anything else in fstab - can you pop it all on here?

Can you run

Code: Select all

blkid
Need Pi spray - these things are breeding in my house...

Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

Re: EXT4 not mounting on boot.

Sat Sep 14, 2019 2:51 am

Andyroo wrote:
Fri Sep 13, 2019 11:52 pm
Anything else in fstab - can you pop it all on here?

Can you run

Code: Select all

blkid
I can.

Code: Select all

proc            /proc           proc    defaults          0       0
PARTUUID=02166231-01  /boot           vfat    defaults          0       2
PARTUUID=02166231-02  /               ext4    defaults,noatime  0       1
# a swapfile is not a swap partition, no line here
#   use  dphys-swapfile swap[on|off]  for that
UUID=f9df3404-3a6a-d231-f01f-36784c6xd921 /disks/linus  ext4  defaults,auto,rw,nofail 0 1

Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

Re: EXT4 not mounting on boot.

Sat Sep 14, 2019 3:13 am

Andyroo wrote:
Fri Sep 13, 2019 11:52 pm
Anything else in fstab - can you pop it all on here?

Can you run

Code: Select all

blkid
Actually I can't run the BLKID, and a proces called fsck.ext4 seems to be taking a bit of CPU power while the drive is spinning.

However, it does not appear in the mount I specified.

This is the error:

Code: Select all

mount: /disks/linus: /dev/sda1 already mounted or mount point busy.

Sulforaphane
Posts: 39
Joined: Mon Sep 02, 2019 8:29 am

Re: EXT4 not mounting on boot.

Sat Sep 14, 2019 3:31 am

Also something weird:

Code: Select all

Device     Start        End    Sectors  Size Type
/dev/sda1   2048 3906961407 3906959360  1,8T Microsoft basic data
When typing lsblk -f (it's definitely an ext4 format, and I have been able to mount it before. But it's formatted in Windows)

Return to “Beginners”