Questions tagged [fstab]

fstab (File Systems Table) is a configuration file found in most Linux distributions. It controls how disks and other memory stores integrate with the system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

is it ok to link /var/log to /tmp or /run to save the SD card

You have probably read the Raspberry Pi: Extending the life of the SD card article on zdnet by now. It features this line: tmpfs /var/log tmpfs defaults,noatime,nosuid,mode=0755,size=100m ...
0 votes
1 answer
106 views

Why can I mount an NTFS HDD, but mounting an NTFS SSD fails?

I have a Pi 4 and want to mount my Samsung 860 EVO SSD. I am unable to accomplish this, but attaching a HDD (same adapter and usb port) work just fine. Both the SSD and HDD were formatted in NTFS (...
1 vote
2 answers
82 views

Automounted drive can only be accessed by root

I'm trying to set up a Raspberry Pi as a git server using the instructions I found at www.sitepoint.com. Rather then have the files stored on the SD card I've mounted an external USB drive instead as ...
2 votes
2 answers
16k views

Auto mount with fstab not auto mounting

I'm new to Linux and the Raspberry pi. I'm having trouble mounting my USB 1TB HDD automatically using fstab. It mounts no problem when using something like this in the terminal: sudo mount /dev/sda1 /...
0 votes
0 answers
120 views

RPi Bullseye: libcamera-jpeg does not write to USB drive, while libcamera-vid does

I'm running a Python script on a Raspberry Pi 3 B+. This script automatically takes video and stills using the Raspberry Pi camera and should write it to an external USB drive. I've mounted a USB ...
0 votes
0 answers
107 views

Cannot mount network drive on boot despite _netdev,x-systemd.device-timeout=60 in fstab as well as wait for network on boot

I understand that this has been asked many times but the stuff that has worked for everyone else does not seem to work for me. I am trying to mount a network drive (HDD connected to SHIELD TV Pro) on ...
2 votes
1 answer
263 views

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

I have a Raspberry Pi running Raspbian GNU/Linux 10 (buster). The Pi is running on a microSD-Card with a read-only boot partition and activated overlay-filesystem (both is currently deactivated for ...
1 vote
2 answers
240 views

hard drive gets seen too late by the kernel after upgrading to debian bullseye

i just swapped out my old rpi sd card with raspbian stretch for one with raspian bullseye because stretch didnt gave me kernel 5.x and it felt outdated. everything worked so far except that my usb ...
-1 votes
2 answers
785 views

Fixing corrupted fstab

My raspberry pi zero ran out of space on its microSD card and somehow corrupted part of the filesystem, as it doesn't boot properly. When I insert the microSD card into another computer, I can look at ...
-1 votes
2 answers
2k views

Mounting smb with CIFS ignores file_mode and dir_mode

I'm having trouble with permissions involving an SMB share hosted on another machine on my local network. It appears that no matter what options I provide in the /etc/fstab or in a mount command, ls -...
1 vote
2 answers
476 views

Temp mount works but permanent mount errors - Raspberry Pi to Windows

I am trying to access a shared drive on a Windows server from a Raspberry Pi 3. My temporary mount works - sudo mount //192.168.1.10/Files /home/pi/Files -o username=Myname,password=Mypassword - I can ...
3 votes
2 answers
2k views

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

I'm setting up a read-only filesystem and some of the guides I have read say to add fastboot noswap ro to /boot/cmdline.txt, others don't. All of them mention adding ro to /etc/fstab though. Is ...
0 votes
0 answers
816 views

Diagnose USB hard drive problems

I have a Raspberry Pi 4B with 4 GB of RAM with the official power supply. Using an old HDD from a laptop I want to build a NAS. The HDD is a Hitachi Travelstar 5K750 750GB and connected with a SATA to ...
0 votes
1 answer
760 views

Unable to find or create trash directory for /usb/passport/

I'm trying to delete a folder from an external USB drive I have mounted. The error I receive is "Season 2: Unable to find or create trash directory for /usb/passport/Season 2" I added a line ...
1 vote
1 answer
310 views

mounted ext4 partition is immediately unmounted

I'm trying to mount an external USB SSD in RPi Zero-W in Raspbian, no desktop mode, with fstab, and seems that it unmounts immediately. EDIT: I found this bug (which is still unfixed), and see that ...
0 votes
1 answer
725 views

Network Drive Permissions

I want to save images from Bird-Table cam to a network drive but struggling to mount and connect. So far I have:- created /home/pi/TableCam created /home/pi/TableCam/share (not sure why tho!) edited ...
3 votes
3 answers
6k views

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

I am trying to mount a USB HDD. A create a folder here: /media/pi/HDD My HDD is formated to ext2 After that, I modified my /etc/fstab and add this line: /dev/sda1 /media/pi/HDD ext2 rw,...
1 vote
2 answers
875 views

Mounting USB on boot causes error on boot

I am attempting to mount a usb drive to a specific directory at boot time so that it's mapped to the same directory each time. I read this article, Automounting USB drive on boot, that says to add it ...
6 votes
4 answers
20k views

RPi won't boot after editing fstab

My Pi was working until I followed this tutorial on how to auto-mount a specific drive on RPi boot. I added the following to the fstab file: UUID="123091823" /media/pi/"Orange Passport" auto ...
0 votes
2 answers
3k views

Fstab: Mount a network share using host name (not IP address)

I have a CIFS share working correctly in fstab using //192.168.x.x/directory/to/folder /media/my/directory cifs ... However since our company network dynamically allocates ip addresses, is there a ...
3 votes
2 answers
8k views

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

I'm trying to get my usb drive to auto mount and Ive been following countless guides and threads on it but I still can't get it to work, using fstab. I wasn't even able to boot until I added nofail, ...
1 vote
1 answer
2k views

How to record to NAS from TVHeadend running on Raspberry Pi 4

Sorry if I unintentionally transgress any forum etiquette - in all my time looking for answers to questions I have been able to get there through searching and have never actually had to post a ...
2 votes
2 answers
10k views

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

I edited my fstab file (/etc/fstab) to mount a new /media local network drive. After this wrong edition, my Raspberry eventually can't boot anymore. I get the error: Cannot open access to console, ...
0 votes
1 answer
2k views

How to move /var/ to a directory on external hdd?

I have LAMP installed on my Raspbian, and I'm worried that logs and database can damage my SDcard too quickly. I have also external hard drives connected with USB and formatted with ext4. I don't want ...
1 vote
1 answer
245 views

Permissions problems (read only rights) after a mounted nas directory

I'm trying to mount a folder from a Syno Nas to my Raspberry (OS : Rapsbian). The mount is done at every boot. On my NAS, I added a NFS rule, with read/write rights, with the raspberry's IP address ...
1 vote
2 answers
1k views

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

There are questions similar to this one, but I am not an expert Unix user so I really don't wanna try and break /etc/fstab while doing this. Here's what blkid tells me about my hard drive: /dev/sda1: ...
2 votes
1 answer
765 views

Mounting USB-HDD with NTFS filesystem on Raspbian boot

I use Raspberry pi3+ as a small NAS (with Samba). I have to use a couple of HDDs in usb-sata cases with NTFS file system. Raspbian mounts them automatically on boot in /media/pi directory. I don't ...
1 vote
2 answers
4k views

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

I created image of raspbian jessie on 32GB memory card using dd command. sudo dd if=/dev/disk3 of=~/os_images/raspbian_jessie.img bs=1m then I used etcher tool to flash that image to the 120GB SSD, ...
1 vote
1 answer
164 views

USB drive not mounting in CLI mode

I've been trying to get my USB drive to mount without having to launch into the GUI. I'm using a raspberry pi 3b+ with raspian OS. My current fstab entry for the usb drive is UUID=845-CG11 /media/...
0 votes
1 answer
484 views

Fail to mount NAS network drive

I am attempting to mount a network drive. Since I am experienced with raspbian I've asked a friend that is for help, but neither him or I have managed to succeed. I'm, using a RPi-3b+ and a ReadyNas ...
0 votes
1 answer
683 views

Raspberry Pi won't connect to NAS Server

I can't connect to my local NAS from my Raspberry Pi, and yet, on my Mac I can using the old Cmd+K. So far, I've tried several options, including : sudo mount -t cifs -o username=USERNAME,password=...
4 votes
5 answers
17k views

Automatic mounting of NAS drive fails

I have set-up my RPi to automatically mount a NAS drive. My /etc/fstab file looks like: proc /proc proc defaults 0 0 /dev/mmcblk0p5 /boot vfat ...
0 votes
0 answers
39 views

Could I have ruined my RPi 3's SD card by putting it in a tablet?

I have a Raspberry Pi B+ (2014) that was working great until I formatted an external hard drive, restarted the Pi, and ran into this issue with fstab. I tried putting the SD card in both an old Nook ...
0 votes
0 answers
367 views

Corruption of external USB pen

I'm running Raspbian Lite on an RPi3B+. It's powered with a bench power supply capable of sourcing over 3A. I never see an "under-voltage" warning. My application requires an USB pen drive always ...
0 votes
2 answers
4k views

Raspbian Stretch read/only

My system is based upon Raspbian Stretch and has three partitions: boot (fat32) rootfs (ext4) home (ext4) I don't have a lot of background services, just samba, ssh, lighttpd. I'm looking for a ...
1 vote
0 answers
875 views

Raspbian Samba/Fstab file limitation

I'm connecting a HDD to the pi to share in my network. I setup SAMBA as directed, install ntfs-3g (my HDD is NTFS), then set specific UUID in /etc/fstab to the mountpoint located on my pi: UUID=...
2 votes
1 answer
2k views

Raspian not booting after editing fstab and reverting changes

I have a RaspberryPi3 with a headless stretch installation. It ran a VPN server and a DNS server. Today I wanted to mount a HDD to use as a place to drop files in the LAN following this guide. After ...
1 vote
0 answers
176 views

After power outage, my NAS drive isn't automounting

I have a RPi 1 Model B, configured as a torrent box, running Wheezy with Webmin, deluge torrent and Sickrage. To store the medias, i put a 2tb external hard drive on my router Linksys EA6400 and i ...
0 votes
1 answer
4k views

mount error(13): Permission denied

I am trying to share a folder from Windows 10, and mount on my Raspberry Pi 3. These are the steps I followed. Changed the permissions of a folder in windows, to give it full access to everyone. ...
1 vote
1 answer
2k views

Mounted folder changes name after reboot

I have Raspbian OS installed. My Raspberry Pi is used to save my ipcam snapshots. They are sent through ftp (proftpd) to a usb stick attached on my Rpi. Mount point = /dev/sda1 df -h Everything works ...
1 vote
2 answers
167 views

RPi SD 'sync' time [closed]

It seems that the RPi does not necessarily write data to the SD very promptly and data loss can occur if the power is pulled after a write operation; even after a few minutes or longer. this can be ...
1 vote
1 answer
2k views

Pi will not boot after unplugging external USB drive

I successfully mounted an external USB HD by editing the /etc/fstab file as detailed here, and everything worked great, until I tried booting up my Pi without the drive attached. The Pi refused to ...
1 vote
1 answer
776 views

root automatically set as mounted directory owner

I made an entry in fstab for my USB HDD PARTUUID=xxxyyyzzz-01 /mnt/usbstorage vfat defaults,nofail 0 0 I made the owner of the /mnt/usbstorage to be pi (so that when i run apps as pi, there ...
0 votes
0 answers
28 views

Trouble autoconnecting to wireless network after automounting USB drive

I'm having issues SSHing into a headless Raspberry Pi over the wireless network. I set up the fresh install properly with /boot/ssh and wpa_supplicant.conf, and I even modified etc/network/interface ...
0 votes
0 answers
1k views

Need help giving Plex media server permission to access external NTFS drive from raspberry pi 3

I am running the Plex media server on my raspberry pi 3 (Raspbian Jessie). My media is mounted on the RPI3 from an external NTFS drive. I'm accessing my Plex media server from my laptop remotely. ...
0 votes
1 answer
2k views

Boot up hangs - fstab problem

My Raspberry PI works headless without monitor and keyboard as weather station server. I managed it with SSH and that works ok until today. I added a line into /etc/fstab where it should mount a ...
0 votes
0 answers
568 views

Need help setting up udev rules to keep external hard drive from unmounting and remounting as read-only

I've been having trouble with my external hard drive unmounting from my pi 3 torrentbox and then mounting as read-only with a different /dev/sd[letter]. I saw this blog post about how a user set up ...
2 votes
1 answer
6k views

Mount a remote Raspberry Pi filesystem over SSH

I want to mount pi share on another pi. I tried this: sudo nano /etc/fstab && sudo mount -a And in fstab I added: [email protected]:/mnt/4TB/ /mnt/files fuse.sshfs defaults,allow_other,_netdev ...
2 votes
3 answers
11k views

How do I mount my NAS?

I just got a Raspberry Pi 3 and I am currently trying to mount my WD MyCloud EX2 to it and I am not having any luck. I tried following this guide I found here But I got this error: unable to find ...
2 votes
1 answer
91 views

Bas rights on a folder when I automount an hard drive

I want to automount an hard drive when my raspberry pi zero starts. The commands works but I can't write in the folder because I don't have permission even if I use sudo. I can only read. I already ...