Questions tagged [fstab]

/etc/fstab is the file in UNIX/Linux systems that defines file systems that are mounted on boot or available to be manually mounted.

/etc/fstab is the file in UNIX/Linux systems that defines file systems (independent directory trees) that are mounted on boot or available to be manually mounted.

66 questions
10
votes
2 answers

How to mount a substed drive in windows Ubuntu subsystem

My development environment on Windows includes substed folders, i.e. the folder c:\MyBuild may be substed to a drive letter, say t: In a Ubuntu subsystem terminal, I can bind the folder to a mount, as this sudo mount --bind /mnt/c/MyBuild…
Totte Karlsson
  • 1,261
  • 1
  • 20
  • 55
4
votes
1 answer

in WSL on SD Card, git insufficient permission for adding an object

I'm trying to get Git working on my System, but I always get the error error: insufficient permission for adding an object to repository database ....../.git/objects I'm working on a Surface Pro 5 in Windows Subsystem for Linux with…
Nico G.
  • 487
  • 5
  • 12
4
votes
1 answer

Can't execute a .sh script from mounted disk (Ubuntu 18.04): zsh: permission denied

Ubuntu 18.04 - Installed Zsh and Oh-My-Zsh from here. Given the following echo '#!/bin/bash\n\nls ~;' >> myscript.sh chmod 755 ./myscript.sh ./myscript.sh Executed in my home folder, all goes as expected and it lists files in my home folder output…
rogodeter
  • 460
  • 9
  • 19
3
votes
0 answers

Mounting NTFS partition at boot with NTFS-3G and making it show up (and be accesible) in user interfaces (Files, Nemo, etc)

I have a NTFS partition (without Windows having ever been installed in it) that I want to mount automatically after boot - but specifically using NTFS-3G so chown and chmod can be used on its folders. Here is what I added to my…
AndraSol
  • 65
  • 6
3
votes
0 answers

Uboot : mount can't find root partition in /etc/fstab

I am on a BeagleBone Black with Debian Jessie 8.5 , so the BBB boots from the eMMc. My goal is to use SPI, but the cape manager was not available so according to RobertCNelson , I have set the linux image 3.8.13. Everything boots fine, but when I…
RebeCca
  • 47
  • 1
  • 4
2
votes
1 answer

Use variables instead of values in sed commande to replace words in a text file

I have to edit /etc/fstab to change mounting options for /dev/shm parameter. source line is : tmpfs /dev/shm tmpfs size=11g 0 0 I want to add noexec to the fourth field (mounting options) for the /dev/shm…
Babak.K
  • 23
  • 2
2
votes
0 answers

How add a folder with files inside AOSP root dir?

I'm trying to add a folder inside AOSP root directory using BOARD_ROOT_EXTRA_FOLDERS in Android.mk file, but when I flash it the folder or file isn't there. Also tried to use PRODUCT_COPY_FILES to insert folder (e.g. PRODUCT_COPY_FILES +=…
ltx
  • 45
  • 9
2
votes
2 answers

How to append entries in `/etc/fstab` of disks using Ansible-playbook?

I am using below playbook to write entries to /etc/fstab. And to create swap file: --- - name: Configure SWAP hosts: localhost become: yes become_user: root tasks: - name: Configuring a SWAP command: "{{ item }}" loop: …
Santosh Garole
  • 1,419
  • 13
  • 23
2
votes
1 answer

Automatically mounting S3 bucket using s3fs on Amazon CentOS

I have tried all the answers provided in similar questions but none is helpful. I installed S3 Fuse so that I can mount S3 bucket. After the installation, I performed the following the steps: Step 1 Create the mount point for S3 bucket mkdir –p…
MyShade
  • 39
  • 2
  • 8
2
votes
1 answer

Mount entry in fstab with go

Is there a way to mount a ssh device with Go using an entry in fstab where the mount options are defined. I have been trying syscall.Mount without success. func main() { src := "jeanluc@:/home/jeanluc" target :=…
ripat
  • 3,076
  • 6
  • 26
  • 38
1
vote
0 answers

sshfs works but auto mount with fstab doesn't

I would like to ask for help with the following problem. I want to mount folders on one server from two different servers with sshfs. Mounting works for both, but fstab auto mount only happens when sharing from one server, not the other. I use…
battila
  • 19
  • 2
1
vote
0 answers

Amazon AWS EFS - automount from fstab not working at boot, but runs fine live

I am looking to connect shared EFS mount points to our EC2 development instances. I wrote the mount points in /etc/fstab, and it runs fine when I test it with sudo mount -fav. However, it simply does not mount on reboot. The thing that jumps out at…
1
vote
1 answer

Setting user permissions for a directory mounted in /etc/fstab

My embedded Linux system is using an admin user account to make some restricted administration tasks. The home directory for that user is /mnt/foo. That directory is the mount point for a partition mounted by /etc/fstab on boot: /dev/mmcblk1p6 …
aicastell
  • 2,182
  • 2
  • 21
  • 33
1
vote
2 answers

Automounting sshfs with fstab, using passphrase-protected private key

I connect to my home server with ssh server, where server is configured in ~/.ssh/config as: Host server HostName {server-address} User me IdentityFile ~/.ssh/id_rsa IdentityFile is a passphrase-protected private key, so I have to enter…
murchu27
  • 527
  • 2
  • 6
  • 20
1
vote
1 answer

Why SpringBoot app cannot access to remote files (sshfs) unless a user is connected to the server?

This question involves a raspberry pi 4 connected via Wifi to the internet, and running a SpringBoot app that generates a file tree with special values upon user request. The SpringBoot App needs compute the parent path of some files located on the…
HelloWorld
  • 2,275
  • 18
  • 29
1
2 3 4 5