Sunday, November 4, 2018

volume disk mounting problem with ubuntu 18

Today i want to share a good experience with you all that can be useful especially if your desktop is a linux OS. Last month i upgraded my OS and after that every time when i plugged my USB hard disk to my PC, system (ubuntu) didn't detect the Mass storage and unfortunately couldn't mount it, So many ways i tried to fix but this problem and nothing succeeded. After executing 'lsusb' command you can see your device is detected on USB port, but not as a mounted volume. Then before plugging the disk again, type this command to see what was happening on my system:
tail -F /var/log/syslog
Reported result is something like below:
"
 kernel: [  605.363832] usb 2-3: new SuperSpeed USB device number 3 using xhci_hcd
 usbguard-daemon[1015]: message repeated 3 times: [ IPC connection denied: uid=1000 gid=1000 pid=4988]
 usbguard-daemon[1015]: uid=0 pid=963 device.rule='block id 1058:1078 via-port "2-3" with-interface 08:06:50' type='Device.Insert' result='SUCCESS' device.system_name='/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3'
 usbguard-daemon[1015]: uid=0 pid=963 result='SUCCESS' device.system_name='/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3' target.new='block' type='Policy.Device.Update' device.rule='block id 1058:1078 target.old='block'
 usbguard-daemon[1015]: Ignoring unknown UEvent action: sysfs_devpath=/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3 action=bind
 kernel: [  605.384367] usb 2-3: New USB device found, idVendor=1058, idProduct=1078
 kernel: [  605.384374] usb 2-3: New USB device strings: Mfr=2, Product=3, SerialNumber=1
 kernel: [  605.384379] usb 2-3: Product:
 kernel: [  605.384384] usb 2-3: Manufacturer:
 kernel: [  605.384388] usb 2-3: SerialNumber:
 kernel: [  605.384755] usb 2-3: Device is not authorized for usage
 mtp-probe: checking bus 2, device 3: "/sys/devices/pci0000:00/0000:00:14.0/usb2/2-3"
 mtp-probe: bus: 2, device: 3 was not an MTP device
 usbauth[6138]: Config file not found or empty.
 fwupd[5094]: failed to add USB device: 1058:1078 is not supported: USB error on device 1058:1078 : Entity not found [-5]
 upowerd[1346]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb2/2-3
 usbguard-daemon[1015]: IPC connection denied: uid=1000 gid=1000 pid=4988
" 
sudo -i (prompt to root access)
cd /sys/bus/usb/devices/2-3

First i had thought it was happened because of 
usbguard APP on my ubuntu, but after changing 
it's default decision to allow and nothing happened, try to investigated logs on line 11: "Device is not authorized for usage". So i tried to find-out what was the problem:
There is many files to show each attributes of my disk and one file named 'authorized'.
'cat authorized' reported back '0' and i changed it to '1' by 'vi' editor or 'leafpad' App  and after save the file, the disk volume mounted successfully at last.
There is an important point you should always consider, if your system can't mount volume, your VMs on VMware Workstation and other virtualization Type II host can't, even your system detect device type and you choose different guest OS like windows for your VM.



No comments:

Post a Comment

I will start a new journey soon ...