Ubuntu Pen Drive Read Only Problem


Some times Pen drive will be mounted in read only mode in Ubuntu due to virus problem.you cannot write anything into it. If you want to change the read only privilege, you can remount the pen drive. just follow these steps
  • Insert the pen drive in Ubuntu , then find the device name
root@Ubuntu:/home/anthoniraj# fdisk -l
Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0×90909090

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13        7650    61337600    7  HPFS/NTFS
/dev/sda3            7651       11782    33190290    5  Extended
/dev/sda4           11783       14594    22579200    7  HPFS/NTFS
/dev/sda5            7651        8135     3895731   82  Linux swap / Solaris
/dev/sda6            8136       11782    29294496   83  Linux

Disk /dev/sdb: 8032 MB, 8032092160 bytes
131 heads, 50 sectors/track, 2395 cylinders
Units = cylinders of 6550 * 512 = 3353600 bytes
Disk identifier: 0×00008640

Device Boot      Start         End      Blocks   Id  System

/dev/sdb1   *           2        2396     7839744    b  W95 FAT3


In My system /dev/sdb1 is the pen drive device name

Pen Drive Device Name
  • Create one folder for mounting your pen drive files
# mkdir /media/Antony
  • Now Unmount the drive
# umount /dev/sdb1
  • Now manually mount the device with read-write mode
#mount -t vfat -o rw /dev/sda1 /media/Antony/
After this  steps, your pen drive privilleges will be changed to write mode.

No comments:

Post a Comment