denniswage
Posts: 3
Joined: Mon Aug 21, 2017 10:40 pm

fstab fails

Mon Aug 21, 2017 10:52 pm

fstab worked before I did apt-get dist-upgrade

Pretty sure I did apt-get dist-upgrade


proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot vfat defaults 0 2
/dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/sdb1 /mnt/usb ntfs-3g defaults 0 0
/dev/sda1 /mnt/usb2 ext4 defaults 0 0

The content of fstab above
sdb1 fails. sda1 mounts just fine.

mount /dev/sdb1 /dev/usb works.

mount -a also works.

This has worked fine until we had a power failure today, and it never booted up.

The fstab fail also causes the dhcpd.conf file to not assign an ip to eth0

Thanks,

totaly noob here.

tpylkko
Posts: 409
Joined: Tue Oct 14, 2014 5:21 pm

Re: fstab fails

Tue Aug 22, 2017 9:43 am

Since systemd can mount the disks without fstab, I wonder if it could just be removed from Raspbian. I know it can be done on Debian.

In your case the failing mount is ntfs

Is there anything in the logs?

Uses

Code: Select all

journalctl 

NotRequired
Posts: 196
Joined: Sat Apr 29, 2017 10:36 am
Location: Denmark

Re: fstab fails

Tue Aug 22, 2017 11:15 am

What errors do you get? First you should make sure that ntfs-3g is installed:

Code: Select all

sudo apt-get install ntfs-3g
If already installed, try reinstall:

Code: Select all

sudo apt-get install --reinstall ntfs-3g
Last but not least, change fstab to let mount auto detect the file system:

Code: Select all

/dev/sdb1 /mnt/usb auto defaults 0 0
Good luck :)
Please do not ask questions in private messages, they will not help others.

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: fstab fails

Tue Aug 22, 2017 11:17 am

/dev/sdb1 /mnt/usb ntfs-3g defaults 0 0
Have you got "ntfs-3g" installed?

User avatar
topguy
Posts: 6491
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: fstab fails

Tue Aug 22, 2017 11:53 am

The powerfailure might be the cause.
Run "dmesg" command in a terminal and look for signs that mounting fails because of "dirty" filesystem.
I guess this is removable disks so you can take it to a windows machine and run a filesystem check and then plug it back in the Pi.

Return to “General discussion”