Find the answer to your Linux question:
Results 1 to 9 of 9
Hi All Today I am facing strange issue with my USB. I can't format my pendrive. Doing all possible commands it showing that the pendrive is write protected it cannot ...
  1. #1
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24

    [SOLVED] USB drive formatting

    Hi All

    Today I am facing strange issue with my USB. I can't format my pendrive. Doing
    all possible commands it showing that the pendrive is write protected
    it cannot be fomatted

    I have tried fdisk,cfdisk,gparted,dd, rm * etc
    pendrive is transcend 8 gib but it showing 530gib of size

    Pls help me regarding this issue.

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Is it unmounted? Check the output of df -h command.
    Unmount USB and execute format it.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    yes it is mounted, I have tried that method also

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    USB disk should not be mounted. Its not possible to format mounted partition. Unmount it using umount command and format it after that.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    I am getting below error in /var/log/messages

    Mar 17 14:23:29 localhost kernel: end_request: I/O error, dev sdc, sector 1022816
    Mar 17 14:23:29 localhost kernel: sd 4:0:0:0: SCSI error: return code = 0x08000002
    Mar 17 14:23:29 localhost kernel: sdc: Current: sense key: Data Protect
    Mar 17 14:23:29 localhost kernel: Add. Sense: Write protected
    Mar 17 14:23:29 localhost kernel:
    Mar 17 14:23:29 localhost kernel: Info fld=0x0
    Mar 17 14:23:29 localhost kernel: end_request: I/O error, dev sdc, sector 1023056
    Mar 17 14:23:29 localhost kernel: sd 4:0:0:0: SCSI error: return code = 0x08000002
    Mar 17 14:28:51 localhost kernel: FAT: Directory bread(block 8136) failed
    Mar 17 14:28:51 localhost kernel: scsi 3:0:0:0: rejecting I/O to dead device

  6. #6
    Just Joined! ultimatelinux's Avatar
    Join Date
    Mar 2010
    Posts
    36

    Thumbs up

    install gParted and then unmount the pendrive and then format.
    BTW,what's the command that you are using to format the pendrive.

    or else
    you cd to pendrive and issue the command
    rm -rf *

  7. #7
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    I have try all the possibilities. When ever I type the command
    #rm -rf *

    the file are deleted, After that I gave the #ls
    that time I can able to see the content residing in the folder.

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    As I asked in my first post in this thread, plug-in USB and execute df -h command. Post output here.
    Code:
    tail -s 3 -f /var/log/messages
    df -h
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  9. #9
    Just Joined!
    Join Date
    Mar 2010
    Location
    Mountain View, CA
    Posts
    24
    Thanks for all reply. Final I have formated the usb drive using JetFlash Online Recovery. For more info JetFlash Online Recovery

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...