You are not logged in.
Pages: 1
Hello,
I don't understand why but I can't mount my usb disk (/dev/sdc1) in /mVirtual/2-mVirtual with fstab.
station@arch $ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 111.8G 0 disk
|-sda1 8:1 0 512M 0 part /boot
`-sda2 8:2 0 90G 0 part
`-volume 254:0 0 90G 0 crypt
|-volume-lv_swap 254:1 0 16G 0 lvm [SWAP]
|-volume-lv_racineArch 254:2 0 20G 0 lvm /
|-volume-lv_homeArch 254:3 0 10G 0 lvm /home
|-volume-lv_data 254:4 0 18G 0 lvm /data
|-volume-lv_mVirtual 254:5 0 18G 0 lvm /mVirtual
`-volume-lv_snapshots 254:6 0 8G 0 lvm /snapshots
sdc 8:32 0 119.2G 0 disk
`-sdc1 8:33 0 119.2G 0 part root@arch /# blkid
/dev/sda1: UUID="49F4-B181" TYPE="vfat" PARTLABEL="EFI System" PARTUUID="a2835fff-de63-4768-9046-7ad38d79b95c"
/dev/sda2: UUID="44dad311-65cf-49f9-a53b-71ab54303123" TYPE="crypto_LUKS" PARTLABEL="Linux LVM" PARTUUID="d3cbd07c-742a-49bc-9297-a309a3e1ce6b"
/dev/mapper/volume: UUID="sByyCD-7Kjj-n8UC-tjwQ-CUvz-28y5-aV95bN" TYPE="LVM2_member"
/dev/mapper/volume-lv_swap: UUID="924f8303-849e-461e-932d-ce1901f382d2" TYPE="swap"
/dev/mapper/volume-lv_racineArch: UUID="f10db369-4196-413f-816a-23ca3839e0ef" TYPE="ext4"
/dev/mapper/volume-lv_homeArch: UUID="10670a97-805f-4237-84e6-3630e34e95f0" TYPE="ext4"
/dev/mapper/volume-lv_data: UUID="24856eb2-4344-46b6-aa5b-e1a1fa31bc91" TYPE="ext4"
/dev/mapper/volume-lv_mVirtual: UUID="8c8f9511-9c94-4476-a89c-6893590348d0" TYPE="ext4"
/dev/mapper/volume-lv_snapshots: UUID="8de1f4d0-54d7-42d6-b0be-f36f2e5269a4" TYPE="ext4"
/dev/sdc1: LABEL="2-mVirtual" UUID="90942847-2315-47f6-9abe-4bced05c5194" TYPE="ext4" PARTUUID="2b63b8aa-01"
root@arch /# cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=f10db369-4196-413f-816a-23ca3839e0ef
/dev/mapper/volume-lv_racineArch / ext4 rw,relatime,data=ordered 0 1
# UUID=49F4-B181
#/dev/sda1 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
UUID=49F4-B181 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 2
# UUID=924f8303-849e-461e-932d-ce1901f382d2
/dev/mapper/volume-lv_swap none swap defaults 0 0
# UUID=10670a97-805f-4237-84e6-3630e34e95f0
/dev/mapper/volume-lv_homeArch /home ext4 rw,relatime,data=ordered 0 2
# UUID=24856eb2-4344-46b6-aa5b-e1a1fa31bc91
/dev/mapper/volume-lv_data /data ext4 rw,relatime,data=ordered 0 2
# UUID=58250474-2635-4112-b77d-b57735c32f17
/dev/mapper/volume-lv_mVirtual /mVirtual ext4 rw,relatime,data=ordered 0 2
# 8de1f4d0-54d7-42d6-b0be-f36f2e5269a4
/dev/mapper/volume-lv_snapshots /snapshots ext4 rw,relatime,data=ordered 0 2
# This is /dev/sdc1
UUID=90942847-2315-47f6-9abe-4bced05c5194 /mVirtual/2-mVirtual ext4 noauto,noatime,nodiratime,user 0 0stationt@arch $ ls -la /mVirtual/2-mVirtual
drwxrwxrwx 2 station station 4096 Feb 3 17:42 2-mVirtualThe most funny thing is it works without problem with debian. I don't understand. Is that someone has an idea?
Thanks a lot and arch Linux is very nice
Last edited by darius.V (2017-02-03 17:37:00)
Offline
Hi, and welcome to the Arch Linux forums
I don't understand why but I can't mount my usb disk (/dev/sdc1) in /mVirtual/2-mVirtual with fstab.
fstab does not mount filesystems - it simply configures the mounting behaviour for the tools that mount filesystems (e.g. the `mount` command, or the init system that auto-mounts filesystems at boot-time).
So... as far as I can see, your config looks fine - but what command do you actually run to mount the USB drive into /mVirtual/2-mVirtual?
And how do you determine that it has (or has not) been mounted? (you can check with `mount` or `findmnt`)
Offline
Hello, thanks for your reply
I don't use command, I use GUI Mate. But I have try with
station@arch $ mount /dev/sdc1 /mVirtual/2-mVirtual/
mount: only root can do thatBut this return it seems to me the same with debian
And how do you determine that it has (or has not) been mounted?
It's easy, if I save my file /etc/fstab with next line:
root@arch /# cat /etc/fstab
...
# This is /dev/sdc1
UUID=90942847-2315-47f6-9abe-4bced05c5194 /mVirtual/2-mVirtual ext4 noauto,noatime,nodiratime,user 0 0
...I can't see icon of my disk in my desktop but if I comment then
root@arch /# cat /etc/fstab
...
# This is /dev/sdc1
# UUID=90942847-2315-47f6-9abe-4bced05c5194 /mVirtual/2-mVirtual ext4 noauto,noatime,nodiratime,user 0 0
...I can see icon of my disk and If I clic on this icon, my disk mount automatically in directory "/run/media/station/2-mVirtual". But I would like mount exactly the same sing but in directory "/mVirtual/2-mVirtual"
Last edited by darius.V (2017-02-04 12:49:26)
Offline
noauto do not mount when "mount -a" is given (e.g., at boot
time)
Offline
Sorry but I don't understand, what do you mean by "man 5 fstab wrote:"
Ok edit:
man 5 fstabAnd I have never given command "mount -a"
I really did not understand ![]()
Last edited by darius.V (2017-02-04 13:50:09)
Offline
Perhaps this will help clear it up
noauto, auto
With noauto, this mount will not be added as a dependency for
local-fs.target or remote-fs.target. This means that it will not be
mounted automatically during boot, unless it is pulled in by some
other unit. The auto option has the opposite meaning and is the
default.
Offline
Ok but I don't want mount /dev/sdc1 during the boot it's an external disk
Last edited by darius.V (2017-02-04 14:02:17)
Offline
Ok but I don't want mount /dev/sdc1 during the boot it's an external disk
What or how do you want to mount it?
Offline
I do not know how it is called exactly, but I use graphical desktop (MATE). On the desktop when I connect a usb disk, (or other periferic) I can see a link of this periferic, if I clic (with my mouse) on the link, the system mount my periferic (here "usb disk" == "/dev/sdc1") in the directory "/run/media/station/2-mVirtual" == "/run/media/station/$USER/$(name of disk)" OR I want in directory /mVirtual/2-mVirtual
Last edited by darius.V (2017-02-04 14:24:21)
Offline
Udisks#Mount_to_media udisks2 the helper mate uses does not permit mounting to an arbitary location see wiki link for locations it will allow mounting to.
You could use a symlink from your preferred location to the actual location.
Alternatively you could use the mount command itself, it failed for you before with the self explanatory error message
mount: only root can do thatEdit:
spelling
Last edited by loqs (2017-02-04 14:28:54)
Offline
mount can be very picky about what it accepts from commandline, especially for non-root users.
In your fstab you don't have an entry for /dev/sdc1 , but use the uuid instead.
Try this command as user: mount //mVirtual/2-mVirtual
Last edited by Lone_Wolf (2017-02-04 15:32:06)
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Great Lone_Wolf
This command works
But if it works why "MATE desktop" doesn't get there? He miss a package?
Thanks also loqs I saw your link and symlink is a good idea also but I want all users of the system to have access to this hard drive (in /mVirtual/2-mVirtual) and with your idea It's not possible else I must to remove link and create a new link with a new location.
Example:
User= test
DirectoryMedia= /run/media/test/2-mVirtual
Link= /mVirtual/2-mVirtual > /run/media/test/2-mVirtual
User= station
DirectoryMedia= /run/media/station/2-mVirtual
Link= /mVirtual/2-mVirtual > /run/media/station/2-mVirtual
Edit (loqs): And also I don't want change a default directory
. When I mount another drive /run/media is good.
Last edited by darius.V (2017-02-04 17:15:57)
Offline
It's not mate, but udisks2 that does this.
I don't use udisks myself (hate automounting) , but it does seem possible udisks sees your device in fstab and just leaves it alone.
You could try the cli command udisksctl to find out more.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Sorry I could not answer before. I will look more and as soon as I find a solution that suits me I sol'ved this thread. Thanks
Offline
Pages: 1