0

Here is the image:
My image

I have tried the following command but got nothing:

sudo hdparm -r0 /dev/sde

/dev/sde:
 setting readonly to 0 (off)
 readonly      =  0 (off)

Kindly, help me in this situation.

**Edited output of the command dmesg -w

Here is the output Gist

6
  • It would help if you add the output of dmesg -w when you plug the usb
    – Katu
    Mar 9, 2018 at 14:06
  • sure.. Let me edit the output of the command. Mar 10, 2018 at 5:03
  • I didn't explain correctly, sorry. dmesg shows the kernel messages. dmesg -w leaves these open and live updates. What it might help you is to disconnect the USB, type dmesg -w and then connect the USB. You will see new messages appearing related to your USB and you might see an error message if the device is damaged. Ubuntu configuration often states that if there are errors reading a system, is mounted read only and this is what I was trying to figure out. If you don't mind losing the information in the drive, reformatting it may help. Have a look at fdisk, gparted or others.
    – Katu
    Mar 11, 2018 at 9:16
  • @Katu Thank you for the explanation. But what I should do if my pen drive is corrupted or damaged? Please can you help me in making it operational again? Mar 12, 2018 at 5:06
  • If it's the /dev/sdd device that your dmesg shows, it doesn't look damaged. Try help.ubuntu.com/community/DataRecovery
    – Katu
    Mar 12, 2018 at 8:31

1 Answer 1

0

You can try restoring the USB drive to a standard format. There is a utility called mkusb. Look at this link. Add the ppa, update apt and then sudo apt install mkusb and when done, run mkusb.

Step by step instructions. Run these commands:

sudo add-apt-repository ppa:mkusb/ppa
sudo apt-get update
sudo apt-get install mkusb
mkusb

and select option d see below:

enter image description here

if prompted for root password, enter it. Follow the insturctions on the screen:

and then select the Restore to a Standard Storage Device option (WARNING: you will loose all your data on the USB drive):

enter image description here enter image description here

That should do it.

6
  • I got error: Error gist. Kindly, let me know what I can do. Mar 10, 2018 at 6:31
  • I might know what's happening. in /media there should be a directory with your user name. In the past I had similar issues and I found that the directory was owned by root and after I changed the owner/group to my user name, the issue went away. In the terminal, type: ls /media/$USER -dl and for owner / group, see if it says root root and if so, I believe that's the issue. You can try changing the permissions to your user name and try it again.
    – marko
    Mar 10, 2018 at 6:43
  • How I can change the permissions ? Please guide me. Mar 10, 2018 at 6:58
  • I have tried changing the permissions. See the gist of error I have got. Mar 10, 2018 at 7:02
  • I just noticed this, /dev/sdd1: No such file or directory and to me this indicates an issue with your partition table on the disk. Are you experienced with GParted? You can try creating a new partition table: Device->Create Partition Table and then create different partitions. Select the msdos version. You will lose all your data.
    – marko
    Mar 10, 2018 at 7:28

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .