I am trying to access a USB pendrive on my system having OS Ubuntu 16.04.
I could not see the drive symbol. I have searched for the solution and have tried this solution: Sandisk USB not detected by Ubuntu 14.04 but detected by Windows 7
But it doesn't worked for me. Even the USB drive is not getting accessed on any Windows Platform too. It shows a message to format the drive recursively and do not let me access the drive on Windows.
But my primary issue is with respect to Ubuntu as I always use this OS only.
I have seen that when I insert the pendrive the drive menus blink, but I could not see the drive.
Kindly, help me how to make the drive visible and even workable for me. I do not want to format the drive as it has a much important data and there is no backup currently. Please let me know your advice. If anyone has the same problem and have solved it previously, kindly let me know the answer.
After Typing command dmesg
[79536.075479] sd 18:0:0:0: [sdb] Assuming drive cache: write through
[79536.081868] sd 18:0:0:0: [sdb] Attached SCSI removable disk
This is the output I get but I do not see the drive in the list after opening folder structure. On windows system it shows that is is write protected too. i don't know why this happening. Do share your thoughts.
dmesg
(last lines) after connecting the pendrive. If the drive is recognized and connected to some device (like/dev/sdn
), you may install (sudo apt install testdisk
) and runsudo testdisk /dev/sdn
on that device. – ridgy Nov 29 '16 at 10:32testdisk
I do not know what for it is as it did nothing and I don't know how it will help in fixing my problem. – Jaffer Wilson Nov 29 '16 at 10:53sudo fdisk -l
orsudo fdisk /dev/sdb
and then enterp
to list the partition(s) andq
to quit. If a partition is recognized, trysudo mount /dev/sdb1 /mnt
and if there are no errors, issuemount
to see filesystem etc. If there are errors (no partitions, mount not able) you may needtestdisk
(see my first comment). – ridgy Nov 29 '16 at 11:33[sudo] password for aims:
Welcome to fdisk (util-linux 2.27.1). Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
fdisk: cannot open /dev/sdb: Read-only file system `
– Jaffer Wilson Nov 29 '16 at 11:36hdparm
- see usb-turn-write-protection-off. One comment there suggests that it may also be because of connection defects (try different USB connector?). – ridgy Nov 29 '16 at 11:46