LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   mounting USB disk on key fails under Gnome jessie 8.2 (https://www.linuxquestions.org/questions/debian-26/mounting-usb-disk-on-key-fails-under-gnome-jessie-8-2-a-4175552606/)

lin66uxx 09-04-2015 06:25 AM

mounting USB disk on key fails under Gnome jessie 8.2
 
hi ,
When I try to mount usb storage device it fails with the error that says :

Quote:

mount: /dev/sdb1 is already mounted or /media/CANON_DC busy
if I reboot with the stick inserted it does mount it automatically !

Thanks,

TobiSGD 09-04-2015 08:50 AM

Please provide the output of
Code:

mount
when this problem occurs.

lin66uxx 09-04-2015 09:25 AM

Here it is :
Quote:

sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,relatime,size=10240k,nr_inodes=453675,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /run type tmpfs (rw,nosuid,relatime,size=729416k,mode=755)
/dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=23,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
rpc_pipefs on /run/rpc_pipefs type rpc_pipefs (rw,relatime)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
tmpfs on /run/user/117 type tmpfs (rw,nosuid,nodev,relatime,size=364708k,mode=700,uid=117,gid=125)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=364708k,mode=700,uid=1000,gid=1000)
/dev/sda2 on /media/Windows7_OS type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper= udisks2)

Head_on_a_Stick 09-04-2015 02:52 PM

Are you sure that the device was plugged and the problem was apparent when you posted that output?

Run this command then plug the stick in and post the resulting output:
Code:

udevadm monitor

lin66uxx 09-05-2015 05:12 AM

Quote:

monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[27794.017542] add /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb)
KERNEL[27794.018248] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb)
KERNEL[27794.018765] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19 (scsi)
KERNEL[27794.018801] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/scsi_host/host19 (scsi_host)
UDEV [27794.136871] add /devices/pci0000:00/0000:00:14.0/usb3/3-2 (usb)
UDEV [27794.138434] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0 (usb)
UDEV [27794.139284] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19 (scsi)
UDEV [27794.139986] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/scsi_host/host19 (scsi_host)
KERNEL[27795.017992] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0 (scsi)
KERNEL[27795.018060] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0 (scsi)
KERNEL[27795.018095] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_disk/19:0:0:0 (scsi_disk)
KERNEL[27795.018231] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_device/19:0:0:0 (scsi_device)
KERNEL[27795.018344] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_generic/sg3 (scsi_generic)
KERNEL[27795.018525] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/bsg/19:0:0:0 (bsg)
UDEV [27795.018979] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0 (scsi)
UDEV [27795.019786] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0 (scsi)
UDEV [27795.020525] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_disk/19:0:0:0 (scsi_disk)
UDEV [27795.021341] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_device/19:0:0:0 (scsi_device)
UDEV [27795.021788] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/bsg/19:0:0:0 (bsg)
UDEV [27795.021847] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/scsi_generic/sg3 (scsi_generic)
KERNEL[27795.249558] add /devices/virtual/bdi/8:32 (bdi)
UDEV [27795.249807] add /devices/virtual/bdi/8:32 (bdi)
KERNEL[27795.266695] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/block/sdc (block)
KERNEL[27795.266714] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/block/sdc/sdc1 (block)
UDEV [27827.355510] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/block/sdc (block)
KERNEL[27827.581551] add /devices/virtual/bdi/254:0 (bdi)
KERNEL[27827.581750] add /devices/virtual/block/dm-0 (block)
UDEV [27827.582025] add /devices/virtual/bdi/254:0 (bdi)
KERNEL[27827.596380] change /devices/virtual/block/dm-0 (block)
KERNEL[27827.728620] add /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.728655] add /devices/virtual/block/dm-1 (block)
UDEV [27827.728851] add /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.729022] remove /devices/virtual/block/dm-1 (block)
KERNEL[27827.729124] remove /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.729171] remove /devices/virtual/block/dm-1 (block)
UDEV [27827.729243] remove /devices/virtual/bdi/254:1 (bdi)
UDEV [27827.764557] add /devices/virtual/block/dm-0 (block)
UDEV [27827.772449] add /devices/virtual/block/dm-1 (block)
UDEV [27827.774293] remove /devices/virtual/block/dm-1 (block)
UDEV [27827.774373] remove /devices/virtual/block/dm-1 (block)
KERNEL[27827.948520] add /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.948642] add /devices/virtual/block/dm-1 (block)
UDEV [27827.948777] add /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.949257] remove /devices/virtual/block/dm-1 (block)
UDEV [27827.949359] add /devices/pci0000:00/0000:00:14.0/usb3/3-2/3-2:1.0/host19/target19:0:0/19:0:0:0/block/sdc/sdc1 (block)
KERNEL[27827.949379] remove /devices/virtual/bdi/254:1 (bdi)
KERNEL[27827.949453] remove /devices/virtual/block/dm-1 (block)
UDEV [27827.950085] remove /devices/virtual/bdi/254:1 (bdi)
UDEV [27828.040633] change /devices/virtual/block/dm-0 (block)
UDEV [27828.041982] add /devices/virtual/block/dm-1 (block)
UDEV [27828.044165] remove /devices/virtual/block/dm-1 (block)
UDEV [27828.044309] remove /devices/virtual/block/dm-1 (block)
I just wanted to add that it appears on the left side of dolphin but it is not mounted !

Thanks,

Head_on_a_Stick 09-05-2015 09:02 AM

Does this work:
Code:

# umount -R /media/CANON_DC
# mount /dev/sdb1 /mnt

It sounds like automounting is interfering with your attempts to manually mount the device (although that should mean it will show up in the output of `mount` but it doesn't).

You could drop to a TTY before plugging the stick and mount it from there to prevent your desktop from "helping" you.

lin66uxx 09-05-2015 09:07 AM

The folder /media/username/CANON_DC does not exist !

What is TTY ??

Thanks,

Head_on_a_Stick 09-05-2015 09:13 AM

Quote:

Originally Posted by lin66uxx (Post 5416230)
The folder /media/username/CANON_DC does not exist !

Read my post again.

Quote:

Originally Posted by lin66uxx (Post 5416230)
What is TTY ??

A teletypewriter, also known as the console.

Press <Ctrl>+<Alt>+F2 (at the same time) to access it.

Use <Ctrl>+<Alt>+F7 to get back to your desktop.

lin66uxx 09-05-2015 09:21 AM

Quote:

Read my post again.
Nor does /media/CANON_DC .

I get the same error that the /dev/sdc1 is already mounted or /media/canon (folder I created) is busy !

BTW , When I plug the stick under TTY , I get the following message :

Quote:

[42670:393570] sd 27:0:0:0 [sdc] No caching mode page found
[42670:393621] sd 27:0:0:0 [sdc] assuming drive cache :write through
Thanks,

Head_on_a_Stick 09-05-2015 09:36 AM

Can you browse the contents of media/canon?

I'm running out of ideas here -- this is exactly the reason why I avoid fancy desktop environments and automounters.

You should probably put "KDE" in the title (if that is what you are using) to attract the attention of fellow KDE users.

lin66uxx 09-05-2015 09:39 AM

It is empty .

I use Gnome .

Head_on_a_Stick 09-05-2015 09:51 AM

Quote:

Originally Posted by lin66uxx (Post 5416247)
I use Gnome .

Put that in the title then.

I'm stumped here, hopefully somebody else will be able to help you better.

lin66uxx 09-05-2015 09:54 AM

Thank you any way .

lin66uxx 09-07-2015 12:21 PM

Hi all ,
I have found a solution ; I run :
Quote:

#gnome-disk-image-mounter
and mount it from there , it works !

Thanks ,


All times are GMT -5. The time now is 07:37 PM.