PDA

View Full Version : [SOLVED] Cannot mount anything - F16 KDE



alkobottle
9th December 2011, 03:46 AM
I'm somewhat new to Fedora (been using Ubuntu for years...) and encountered a strange problem today:
whenever I plug in device (Kindle, Android Phone, USB Key...) I'm only getting the following message when trying to access the device via KDE:
"An error occurred while accessing DEVICENAME, the system responded: The requested operation has failed.: Error creating moint point: Permission denied"
(yeah, I actually does say MOINT point ^^)
The same happens when I try to mount a TrueCrypt Volume.

I can't find anything suspicious in /var/log/messages.
Tried setting the permission of /media to 755, didn't help.

Any suggestions?

[EDIT]:
OK, now I'm really worried...now I can't even create directory as root in /media:
[root@work media]# mkdir test
mkdir: cannot create directory `test': Permission denied
Still, the permissions are set to 755?

VernDog
9th December 2011, 04:16 AM
From a terminal, does 'dmesg' reveal any further evidence?

alkobottle
9th December 2011, 04:22 AM
here's the output of dmesg after connecting my kindle and trying to access it:


[ 8195.432025] usb 1-3: new high speed USB device number 8 using ehci_hcd
[ 8200.254001] ehci_hcd 0000:00:1a.7: port 3 reset error -110
[ 8200.255817] ehci_hcd 0000:00:1a.7: port 3 reset error -110
[ 8200.257627] ehci_hcd 0000:00:1a.7: port 3 reset error -110
[ 8200.259429] ehci_hcd 0000:00:1a.7: port 3 reset error -110
[ 8200.261229] ehci_hcd 0000:00:1a.7: port 3 reset error -110
[ 8200.262070] hub 1-0:1.0: hub_port_status failed (err = -32)
[ 8200.463041] hub 1-0:1.0: unable to enumerate USB device on port 3
[ 8200.910015] usb 4-1: new full speed USB device number 5 using uhci_hcd
[ 8201.037385] usb 4-1: not running at top speed; connect to a high speed hub
[ 8201.065386] usb 4-1: New USB device found, idVendor=1949, idProduct=0004
[ 8201.065390] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8201.065393] usb 4-1: Product: Amazon Kindle
[ 8201.065396] usb 4-1: Manufacturer: Amazon
[ 8201.065398] usb 4-1: SerialNumber: XXXXXXXXXXXXXXX (<-- censored)
[ 8201.074521] scsi13 : usb-storage 4-1:1.0
[ 8202.079418] scsi 13:0:0:0: Direct-Access Kindle Internal Storage 0100 PQ: 0 ANSI: 2
[ 8202.079479] scsi: killing requests for dead queue
[ 8202.079554] scsi: killing requests for dead queue
[ 8202.079622] scsi: killing requests for dead queue
[ 8202.079694] scsi: killing requests for dead queue
[ 8202.079763] scsi: killing requests for dead queue
[ 8202.079831] scsi: killing requests for dead queue
[ 8202.079900] scsi: killing requests for dead queue
[ 8202.079968] scsi: killing requests for dead queue
[ 8202.080995] sd 13:0:0:0: Attached scsi generic sg3 type 0
[ 8202.089408] sd 13:0:0:0: [sdc] 6410688 512-byte logical blocks: (3.28 GB/3.05 GiB)
[ 8202.192407] sd 13:0:0:0: [sdc] Write Protect is off
[ 8202.192411] sd 13:0:0:0: [sdc] Mode Sense: 0f 00 00 00
[ 8202.302406] sd 13:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 8202.551405] sdc: sdc1
[ 8202.812408] sd 13:0:0:0: [sdc] Attached SCSI removable disk

fdrake
9th December 2011, 04:25 AM
plug in you devices/usb-disks and post output of:


sudo fdisk -l
mount
less /etc/fstab

alkobottle
9th December 2011, 04:29 AM
fdisk -l:

fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x14e64884

Device Boot Start End Blocks Id System
/dev/sda1 2046 409593239 204795597 5 Extended
/dev/sda2 * 409602048 409806847 102400 7 HPFS/NTFS/exFAT
/dev/sda3 409806848 976771071 283482112 7 HPFS/NTFS/exFAT
/dev/sda5 2048 2000895 999424 82 Linux swap / Solaris
/dev/sda6 2008188 409593239 203792526 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sdb: 160.0 GB, 160000000000 bytes
255 heads, 63 sectors/track, 19452 cylinders, total 312500000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 1 312499999 156249999+ ee GPT
/dev/sdb2 * 0 0 0 0 Empty

Disk /dev/sdc: 3282 MB, 3282272256 bytes
4 heads, 16 sectors/track, 100167 cylinders, total 6410688 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 16 6410687 3205336 b W95 FAT32


mount:

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime,seclabel)
devtmpfs on /dev type devtmpfs (rw,nosuid,relatime,seclabel,size=1949804k,nr_inod es=487451,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,seclabel,gid=5,mode=620 ,ptmxmode=000)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,relatime,seclabel)
/dev/sda6 on / type ext4 (rw,relatime,seclabel,user_xattr,acl,barrier=1,dat a=ordered)
tmpfs on /run type tmpfs (rw,nosuid,nodev,relatime,seclabel,mode=755)
selinuxfs on /sys/fs/selinux type selinuxfs (rw,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,relatime,seclabel,mode=755 )
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
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,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
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 type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
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=20,pgrp=1,timeout=300,minproto=5,m axproto=5,direct)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,relatime)
mqueue on /dev/mqueue type mqueue (rw,relatime,seclabel)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,seclabel)
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=syste m_u:object_r:mnt_t:s0,seclabel,mode=755)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
/etc/auto.misc on /misc type autofs (rw,relatime,fd=7,pgrp=982,timeout=300,minproto=5, maxproto=5,indirect)
-hosts on /net type autofs (rw,relatime,fd=13,pgrp=982,timeout=300,minproto=5 ,maxproto=5,indirect)
/etc/auto.cifs on /media type autofs (rw,relatime,fd=19,pgrp=982,timeout=600,minproto=5 ,maxproto=5,indirect)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
gvfs-fuse-daemon on /home/username/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=10 00)

fstab:

UUID=cb67049e-2c3c-4ffd-99cd-231d73330289 / ext4 defaults,user_xattr 1 1
UUID=c91ec1ae-1182-4732-95b8-9bb30c36bfbd swap swap defaults 0 0


thanks for your help!

fdrake
9th December 2011, 04:48 AM
tmpfs on /media type tmpfs (rw,nosuid,nodev,noexec,relatime,rootcontext=syste m_u:object_r:mnt_t:s0,seclabel,mode=755)

the reason why you cannot mount to /media is because is already used by tmpfs: a virtual memory sys use by applications.
in fedora you should try to munt youd disk in the /mnt forlder (i know Ubuntu lets use both /media and /mnt with no distinction)

to mount the disk try
(first install hfs modules)


sudo yum install hfsutils.i686 hfsplusutils.i686 hfsplus-tools.i686
sudo mkdir /mnt/disk_1
sudo mount -t vfat /dev/sdc1 /mnt/disk_1
sudo mkdir /mnt/disk_2
sudo mount -t hfs /dev/sdb1 /mnt/disk_2

if the last command does not work try:
sudo mount -t hfsplus /dev/sdb1 /mnt/disk_2

if you still have not luck in mounting /dev/sdb1 please post output for:

sudo parted -l

alkobottle
10th December 2011, 07:36 PM
@fdrake, thanks for all your help!
The sdb disk wasn't the one causing the trouble - my /etc/auto.master was the culprit! :)

As you guessed, coming from Ubuntu, I used to use fstab to automount my smb shares on my NAS. Following a guide for Fedora 16 I use /media as a starting point for my smb shares.
After correcting the path to /mnt everything works again as it should :)

Thanks again for pointing me in the right direction!