Hot answers tagged

6 votes
Accepted

How to reboot my Raspberry Pi after wrong edition of my fstab?

Since I found the solution myself, I am posting it here, very grateful to every author of the raspberry pi forum posts. 1. Part 1 - getting command line in the boot Error Got "Cannot open access to ...
JMax's user avatar
  • 181
5 votes
Accepted

RPi won't boot after editing fstab

If you want to edit files on the root partition, an easy way is to download some Linux distribution (Ubuntu for example) flash it to an USB stick and boot from it. Here is a tutorial how to do it. ...
jake's user avatar
  • 1,339
4 votes

RPi won't boot after editing fstab

You can repair most such problems on the Pi by rebooting to a root shell. Append init=/bin/sh at the end of cmdline.txt and reboot. After booting you will be at the prompt in a root shell. Your root ...
Milliways's user avatar
  • 58.7k
4 votes

Changed the fstab file, now stuck in a reboot loop

I'm assuming you have full-size personal computer to work on, otherwise where would your share be connected to! So..., can you mount and read the SDHC card from the Pi on that PC? If you think you ...
SlySven's user avatar
  • 3,621
4 votes
Accepted

Auto mount with fstab not auto mounting

One step you may have overlooked was consulting man fstab - in other words, the system manual for creating & maintaining /etc/fstab. Even though it's a bit dated now (Feb 2015 in my bullseye OS), ...
Seamus's user avatar
  • 21.2k
4 votes
Accepted

What is the difference between adding 'ro' to /boot/cmdline.txt vs /etc/fstab?

It has to do with how the kernel initially mounts the root filesystem. According to the Linux kernel user’s and administrator’s guide, there are both ro and rw parameters: ro [KNL] ...
tc.'s user avatar
  • 156
3 votes
Accepted

Mount a remote Raspberry Pi filesystem over SSH

I used raspbian lite, and sshfsisn't installed by default. So I installed it with sudo apt-get install sshfs Then I added it to the /etc/fstab [email protected]:/mnt/4TB/ /mnt/files fuse.sshfs ...
janw's user avatar
  • 523
2 votes
Accepted

Pi not auto mounting exfat drive on boot, despite fstab entry

You should use 'exfat' instead of 'exfat-fuse' in the fstab entry. This should make it work with exfat-fuse. The assumption is that you've already installed exfat-fuse.
recantha's user avatar
  • 4,499
2 votes

Automatic mounting of NAS drive fails

Setting it to automount worked for me Append _netdev,x-systemd.automount to your options For example: //192.168.2.11/Videos /home/pi/NASvideos cifs username=NASUSER,password=NASPAS,iocharset=utf8,...
lightswitch05's user avatar
2 votes

Raspbian Stretch read/only

I was able to get this guide to work with Stretch 2017-11-29: https://www.raspberrypi.org/forums/viewtopic.php?f=63&t=161416 A few notes, though: In the second code block, there is no "local-...
Christopher Dickey's user avatar
2 votes

How to boot without mounting a Drive present during booting

/etc/fstab has a noauto option which will prevent the configured device or partition from being mounted automatically upon boot. $man fstab The fourth field (fs_mntops). This field ...
RubberStamp's user avatar
  • 1,389
2 votes

Why can't I write to a mounted USB hard disk drive?

Since you already have user in the options of your fstab, I'd suggest you try to run sudo chown -R pi:pi /media/pi/HDD once it is mounted. This applies the owner recursively to all files and ...
Aarkon's user avatar
  • 121
2 votes

Bas rights on a folder when I automount an hard drive

Your fstab entry is incorrect. It should be something like:- UUID= /mnt/SeagateBackupPlus ntfs rw,noauto,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0 UUID= /mnt/PiData ext4 ...
Milliways's user avatar
  • 58.7k
2 votes
Accepted

Pi will not boot after unplugging external USB drive

It's odd that reconnecting the drive won't allow boot to complete. Did you change the drive in any way after unplugging it, and before plugging it back in? If so, that would explain the issue. If this ...
Seamus's user avatar
  • 21.2k
2 votes
Accepted

root automatically set as mounted directory owner

For mounting a vfat file system there are particular options. You can set uid=<value> (user id) and gid=<value> (group id) in fstab so it looks like for example: PARTUUID=xxxyyyzzz-01 /...
Ingo's user avatar
  • 41.9k
2 votes
Accepted

Raspian not booting after editing fstab and reverting changes

The mount I used did not edit the file even though saving worked without any warnings. Mounting via ext2fsd seems to be readonly. Grabbed a Linux DVD, booted my pc into there and fixed it with gedit ...
jaaq's user avatar
  • 173
2 votes

RPi won't boot after editing fstab

For anyone that hits this problem that only has a mac, you can install this software and use the free 10-day trial to mount the sd card on your mac and just edit the /etc/fstab file directly on your ...
matt burns's user avatar
2 votes

How do I go about auto-mounting my NTFS hard drive at boot?

This is the line in my /etc/fstab for a Toshiba Canvio 1 TB usb drive. Your UUID and mount points will be different. UUID=A0027BBF027B994C /media/pi/Toshiba ntfs-3g defaults,auto,umask=000,users,rw,...
Michael Harvey's user avatar
2 votes
Accepted

How do I go about auto-mounting my NTFS hard drive at boot?

I know you are trying to replace an automount. fstab is confusing, the documentation for mount is somewhat clearer. If you are happy with the way automount works I suggest you let your system ...
Milliways's user avatar
  • 58.7k
2 votes

Network Drive Permissions

I am not completely clear on your question, but it seems that your problem may be in your /etc/fstab file. We'll try that first, and if you can give some feedback as we go through this, perhaps we can ...
Seamus's user avatar
  • 21.2k
2 votes

Boot order breaking due to automount (running into emergency mode)

Your Question addresses 2 issues- SD Card reliability and pi user permissions and seems to conflate them. It has long been recognised that having a default username/password is a security risk. ...
Milliways's user avatar
  • 58.7k
1 vote
Accepted

Raspberry Pi won't connect to NAS Server

samba-client is a so-called virtual package. From the FAQ: Debian GNU/Linux FAQ 6.8 What is a Virtual Package? A virtual package is a generic name that applies to any one of ...
Ljm Dullaart's user avatar
  • 2,451
1 vote

RPi won't boot after editing fstab

Ran into the same problem. Here is my solution, hope somebody will find it useful. Issue: messed up /etc/fstab bootfail my PI is , as many, not hooked up to a screen or keyboard, running somewhere ...
solution's user avatar
1 vote

sda2 is not on SD card. Don't know how to expand

The same error is thrown when you want to issue raspi-config -> Expand Filesystem after resizing the RaspberryPi image physically with qemu-img resize raspbian.img +6G and booting on Qemu. Here is ...
ceremcem's user avatar
  • 287
1 vote
Accepted

sda2 is not on SD card. Don't know how to expand

The sda2 partition needs to be expanded beyond the 32GB size created by the Jessie install, then the filesystem needs to be expanded into that new space. open up fdisk sudo fdisk /dev/sda 'delete' ...
tobyd's user avatar
  • 988
1 vote

How to reboot my Raspberry Pi after wrong edition of my fstab?

I couldn't use @jmax's answer because for some reason I couldn't ever get into the command line. Maybe it's a mac thing? For anyone that hits this problem that only has a mac, you can install this ...
matt burns's user avatar
1 vote

mount error(13): Permission denied

Try: Change to vers=3.0 to use the newest version of the protocol. Manually mount with sudo mount -t cifs -o username=BB,... //169.254... /home/pi/testbuy Use smbclient //169.254... to test it with ...
potom's user avatar
  • 111
1 vote

RPi SD 'sync' time

You want to have your cake and eat it too: If the fs is mounted 'sync' then the file is also intact, but this doesn't seem to be an ideal solution. [...] I realise that 'don't pull the ...
goldilocks's user avatar
  • 58.5k
1 vote

Boot up hangs - fstab problem

I guess you are using Raspbian which comes with systemd. You can try to use automount so the connection is made when it is really used, e.g. when clicking on a link or so. With my NFS shares it works ...
Ingo's user avatar
  • 41.9k
1 vote

How to boot without mounting a Drive present during booting

The nofail option in /etc/fstab will allow the drive to be skipped if it cannot be found despite it being listed with the auto which is one of the values included in the default setting for many file-...
SlySven's user avatar
  • 3,621

Only top scored, non community-wiki answers of a minimum length are eligible