You are not logged in.
Pages: 1
When I try and mount an external, USB based, device the mount command appears to succeed:
mount -v /media/ds
mount: /dev/sdc1 mounted on /media/ds.The mounted directory, however, is empty - even though the device is not. When I try to umount the device I get the following:
umount /media/ds
umount: /media/ds: not mountedNothing relevant was added to /etc/mtab. Exactly the same happens whether I run the commands as root or a normal user. It's also exactly the same when I try and mount referencing the device under /dev instead of using the fstab entry.
I've also had similar results when trying to mount things via mtp.
Offline
What is in your fstab? And what is the output og
lsblk -f when the USB device is connected?
What kind of device is that?
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
fstab:
# <file system> <dir> <type> <options> <dump> <pass>
# UUID=863696d9-cb5c-49d4-a2ea-50b5188c0573 LABEL=root
/dev/md0p2 / ext4 rw,relatime,stripe=128,data=ordered 0 1
# UUID=e8c4f6c1-0235-4bbc-883b-aedd2a0599fe LABEL=boot
/dev/md0p1 /boot ext2 rw,relatime,stripe=128 0 2
# UUID=1e66419e-fdae-4b9e-9fe1-2d240781e947 LABEL=home
/dev/md0p3 /home ext4 rw,relatime,stripe=128,data=ordered 0 2
#swap
/swapfile none swap defaults 0 0
192.168.0.1:/opt/backup/ /opt/backup nfs users,noauto,nolock,x-systemd.automount 0 0
192.168.0.1:/opt/video/ /opt/video nfs users,noauto,nolock,x-systemd.automount 0 0
192.168.0.1:/opt/music/ /opt/music nfs users,noauto,nolock,x-systemd.automount 0 0
192.168.0.1:/opt/photos/ /opt/photos nfs users,noauto,nolock,x-systemd.automount 0 0
192.168.0.1:/opt/shared/ /opt/shared nfs users,noauto,nolock,x-systemd.automount 0 0
192.168.0.1:/opt/ebooks/ /home/paul/documents/ebooks nfs noauto,users,nolock,x-systemd.automount 0 0
/dev/disk/by-uuid/20A0-683F /media/cowon vfat users,noauto 0 0
/dev/disk/by-uuid/A036-C3DF /media/cowonsd vfat users,noauto 0 0
/dev/disk/by-uuid/DBE6-DDB7 /media/ds vfat users,noauto 0 0
/dev/disk/by-uuid/6213-12FE /media/android vfat users,noauto 0 0
/dev/disk/by-uuid/4EB1-7325 /media/kindle vfat users,noauto 0 0
/dev/sr0 /media/cdrom iso9660 users,noauto 0 0Output of "lsblk -f":
lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
└─sda1 linux_raid_member archiso:0 23cfc192-fc5c-525f-6e74-7f67256f2287
└─md0
├─md0p1 ext2 boot e8c4f6c1-0235-4bbc-883b-aedd2a0599fe /boot
├─md0p2 ext4 root 863696d9-cb5c-49d4-a2ea-50b5188c0573 /
└─md0p3 ext4 home 1e66419e-fdae-4b9e-9fe1-2d240781e947 /home
sdb
└─sdb1 linux_raid_member archiso:0 23cfc192-fc5c-525f-6e74-7f67256f2287
└─md0
├─md0p1 ext2 boot e8c4f6c1-0235-4bbc-883b-aedd2a0599fe /boot
├─md0p2 ext4 root 863696d9-cb5c-49d4-a2ea-50b5188c0573 /
└─md0p3 ext4 home 1e66419e-fdae-4b9e-9fe1-2d240781e947 /home
sdc
└─sdc1 linux_raid_member archiso:0 23cfc192-fc5c-525f-6e74-7f67256f2287
└─md0
├─md0p1 ext2 boot e8c4f6c1-0235-4bbc-883b-aedd2a0599fe /boot
├─md0p2 ext4 root 863696d9-cb5c-49d4-a2ea-50b5188c0573 /
└─md0p3 ext4 home 1e66419e-fdae-4b9e-9fe1-2d240781e947 /home
sde
└─sde1 linux_raid_member archiso:0 23cfc192-fc5c-525f-6e74-7f67256f2287
└─md0
├─md0p1 ext2 boot e8c4f6c1-0235-4bbc-883b-aedd2a0599fe /boot
├─md0p2 ext4 root 863696d9-cb5c-49d4-a2ea-50b5188c0573 /
└─md0p3 ext4 home 1e66419e-fdae-4b9e-9fe1-2d240781e947 /home
sdf
└─sdf1 vfat DBE6-DDB7
sr0 In this case, it's actually a micro SD - USB adapter. I have tried two in case it was the adapter, but the results were the same.
Offline
If I read this correctly, you are trying to mount a raid member (sdc1) that is presumably mounted as part of a raid array a second time in mount point /media/ds.
That seems fraught with danger.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
@ewaller - no, I'm trying ot mount a USB - micro SD adapter to /media/ds. The rest of my filesystem is raid - but I'm not having any problems with mounting that...
Offline
My concern is this:
mount -v /media/ds
mount: /dev/sdc1 mounted on /media/ds.That looks like you have media/ds set as the mount point for /dev/sdc1 in your /etc/fstab. But -- /dev/sdc1 is not your microSD, it is a member of a raid array
sdc
└─sdc1 linux_raid_member archiso:0 23cfc192-fc5c-525f-6e74-7f67256f2287
└─md0 I think your microSD is that vfat volume at /dev/sdf
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
From what is in his fstab I think it should work. When he mounts /media/ds it should look into fstab and mount /dev/disk/by-uuid/DBE6-DDB7 which from his output of lsblk is indeed /dev/sdf1.
Did you reboot between your first and second post? It could then just be the case that the usb device was /dev/sdc in his first post and is /dev/sdf in the second post. We all know that the order in which those /dev/sdX links are assigned can change.
Don't know why the mount doesn't do anything though. Does journalctl say anything about it when you try to mount?
Is /dev/disk/by-uuid/DBE6-DDB7 pointing too the right device?
Last edited by dice (2015-01-06 17:28:39)
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
From what is in his fstab I think it should work. When he mounts /media/ds it should look into fstab and mount /dev/disk/by-uuid/DBE6-DDB7 which from his output of lsblk is indeed /dev/sdf1.
You are right. I missed that line.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
is it correct to specify the uuids in fstab with /dev/disk/by-uuid?
The wiki says e.g.
UUID=CBB6-24F2 are these two formats equivalent? Maybe this could be the problem but it's just a wild guess.
I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do. (Gune | Titan A.E.)
Offline
Pages: 1