You are not logged in.
Hello all,
got my system up and running, with the exception of automatically connecting to CIFS shares via fstab.
Here is my fstab:
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
# /dev/sda1
UUID=6ee7eda6-59f2-469b-b5c7-1648c8babbbd / ext4 rw,relatime,data=ordered 0 2
# /dev/sda2
UUID=78385fe7-0ab7-49e2-940b-1b9932176e25 /home ext4 rw,relatime,data=ordered 0 2
# swapfile
#UUID=67152dce-1e26-4db0-b500-a8b91ffe55de
/swapfile none swap defaults 0 0
# /dev/sda3
UUID=779f0bfe-c3b7-45df-b089-b7c5f0457390 /mnt/hold ext4 rw,relatime,data=ordered 0 2
# /dev/sdb1
UUID=da3031d4-55ab-45ad-8db7-b008ec432fb2 /mnt/data ext4 rw,relatime,data=ordered 0 2
//srvnas/dvd /mnt/dvd cifs uid=nixit,credentials=/mnt/data/docs/smb.creds 0 0
//srvnas/bluray /mnt/bluray cifs uid=nixit,credentials=/mnt/data/docs/smb.creds 0 0
//srvnas/music /mnt/music cifs uid=nixit,credentials=/mnt/data/docs/smb.creds 0 0
After login in from a fresh boot, the mount points /mnt/dvd(bluray, music) are not mounted. If I execute:
sudo mount -a
I can now access the nas mount points.
Not sure what to look for to see what's going on.
any ideas?
--nixIT
Last edited by nixIT (2012-12-13 21:22:32)
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
You shouldn't realy have to specify this, but what happens if you add 'auto'?
Offline
A possible problem would be if
/dev/sdb1
is not already mounted, cause there lives your credential file.
Last edited by Tarqi (2012-12-02 04:29:22)
Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse
Offline
You shouldn't realy have to specify this, but what happens if you add 'auto'?
Unfortunately, this did not work.
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
A possible problem would be if
/dev/sdb1
is not already mounted, cause there lives your credits-file.
hmmm, this never seem to be an issue before, only after the reinstall.
I moved sdb up in the mount chain to give it time to actually be mounted. With systemd, does sdb get mounted in fstab? I thought I remember reading that the drives are mounted someplace else. Could be wrong though.
--nixIT
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
I moved sdb up in the mount chain to give it time to actually be mounted. With systemd, does sdb get mounted in fstab? I thought I remember reading that the drives are mounted someplace else. Could be wrong though.
--nixIT
There is nothing like an automount in arch, except you implement it. Try x-systemd.automount as mountoption is fstab. See also the Wiki entry.
Last edited by Tarqi (2012-12-02 04:36:45)
Knowing others is wisdom, knowing yourself is enlightenment. ~Lao Tse
Offline
nixIT wrote:I moved sdb up in the mount chain to give it time to actually be mounted. With systemd, does sdb get mounted in fstab? I thought I remember reading that the drives are mounted someplace else. Could be wrong though.
--nixITThere is nothing like an automount in arch, except you implement it. Try x-systemd.automount as mountoption is fstab. See also the Wiki entry.
This did not work for me either, not sure if I had the systemd.automount in the correct spot. I can't access that system now, but when I get home I will post where I put them in the fstab file.
--nixIT
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline
nixIT wrote:I moved sdb up in the mount chain to give it time to actually be mounted. With systemd, does sdb get mounted in fstab? I thought I remember reading that the drives are mounted someplace else. Could be wrong though.
--nixITThere is nothing like an automount in arch, except you implement it. Try x-systemd.automount as mountoption is fstab. See also the Wiki entry.
I added this:
//srvnas/dvd /mnt/dvd cifs uid=nixit,credentials=/mnt/data/docs/smb.creds,x-systemd.automount 0 0
//srvnas/bluray /mnt/bluray cifs uid=nixit,credentials=/mnt/data/docs/smb.creds,x-systemd.automount 0 0
//srvnas/music /mnt/music cifs uid=nixit,credentials=/mnt/data/docs/smb.creds,x-systemd.automount 0 0
to my work system, and it worked like a charm, will have to give this a shot at home later, but I'm confident that it will work.
--nixIT
ASRock X570 PG VELOCITA AM4 AMD X570 | AMD Ryzen 5900x | 128GB G.SKILL RipjawsV | ASRock Radeon RX 6700 XT Challenger D
Offline