LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-04-2015, 06:25 AM   #1
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Rep: Reputation: Disabled
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,

Last edited by lin66uxx; 09-05-2015 at 09:53 AM.
 
Old 09-04-2015, 08:50 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please provide the output of
Code:
mount
when this problem occurs.
 
Old 09-04-2015, 09:25 AM   #3
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
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)
 
Old 09-04-2015, 02:52 PM   #4
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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
 
Old 09-05-2015, 05:12 AM   #5
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
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,
 
Old 09-05-2015, 09:02 AM   #6
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 09-05-2015, 09:07 AM   #7
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
The folder /media/username/CANON_DC does not exist !

What is TTY ??

Thanks,
 
Old 09-05-2015, 09:13 AM   #8
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by lin66uxx View Post
The folder /media/username/CANON_DC does not exist !
Read my post again.

Quote:
Originally Posted by lin66uxx View Post
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.
 
Old 09-05-2015, 09:21 AM   #9
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
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,

Last edited by lin66uxx; 09-05-2015 at 09:34 AM.
 
Old 09-05-2015, 09:36 AM   #10
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
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.
 
Old 09-05-2015, 09:39 AM   #11
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
It is empty .

I use Gnome .
 
Old 09-05-2015, 09:51 AM   #12
Head_on_a_Stick
Senior Member
 
Registered: Dec 2014
Location: London, England
Distribution: Debian stable (and OpenBSD-current)
Posts: 1,187

Rep: Reputation: 285Reputation: 285Reputation: 285
Quote:
Originally Posted by lin66uxx View Post
I use Gnome .
Put that in the title then.

I'm stumped here, hopefully somebody else will be able to help you better.
 
Old 09-05-2015, 09:54 AM   #13
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Thank you any way .
 
Old 09-07-2015, 12:21 PM   #14
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Hi all ,
I have found a solution ; I run :
Quote:
#gnome-disk-image-mounter
and mount it from there , it works !

Thanks ,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
USB key fails booting littlebigman Linux - Software 4 04-27-2010 05:40 AM
Install grub on a USB hard disk (not disk on key) zvivered Linux - Embedded & Single-board computer 4 07-22-2009 10:30 PM
Problem mounting a file System over an USB key disk !!!! dante_3dsmax Linux - Embedded & Single-board computer 4 09-26-2008 02:39 AM
USB key not mounting NNP Linux - Hardware 5 03-30-2006 02:52 PM
Help mounting USB key selan Linux - Hardware 5 06-08-2004 05:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration