You are not logged in.

#1 2019-08-27 19:12:47

FrenchdToastify
Member
Registered: 2019-08-27
Posts: 1

Help with mounting directory on /etc/fstab

I'm working on a small school project creating some Diskless Systems, followed the wiki and everything went fine. Every time i shut off the server though, the system mounted on the server unmounts and i have to manually mount the directory again using the command:

# mount -o loop,discard,compress=lzo /srv/arch.img /srv/arch

I looked into fstab and tried to mount it at boot modifying the file adding this line

/srv/arch.img /srv/arch btrfs loop,discard,compress=lzo 0 0

but I get a "failed to mount /srv/arch" when I boot. Can someone tell me what I'm doing wrong or point me in the right direction please, I'd appreciate it.

Last edited by FrenchdToastify (2019-08-27 19:14:50)

Offline

#2 2019-08-27 19:37:38

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 78,422

Re: Help with mounting directory on /etc/fstab

Can you mount it afterwards using "mount /srv/arch"?
If yes (or maybe anyway), please post the entire fstab.

Offline

Board footer

Powered by FluxBB