Find the answer to your Linux question:
Results 1 to 6 of 6
Code: [root@archlight disk-10]# rm -R ./* rm: cannot remove `./

Thread: [SOLVED] Can't remove files on USB flashdrive

2}.362': Read-only file system rm: cannot remove `./\r\nsyslin.UX': Input/output error rm: cannot remove `./
6(~f?

Thread: [SOLVED] Can't remove files on USB flashdrive

22M.?f1': Read-only file system rm: cannot remove `./ 0.f5?': ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined! TuxXin's Avatar
    Join Date
    Apr 2008
    Posts
    23

    [SOLVED] Can't remove files on USB flashdrive


    Code:
    [root@archlight disk-10]# rm -R ./*
    rm: cannot remove `./\002}.\3536\352': Read-only file system
    rm: cannot remove `./\r\nsyslin.UX': Input/output error
    rm: cannot remove `./\016(~f?\002\262M.?f\241': Read-only file system
    rm: cannot remove `./\020.f\275?': Input/output error
    rm: cannot remove `./ -.S': Read-only file system
    rm: cannot remove `./2007.11.20_12.35.bld': Read-only file system
    rm: cannot remove `./?\002?>%l4y': Read-only file system
    rm: cannot remove `./?t\t?\016?\a.?\020?': Input/output error
    rm: cannot remove `./P701L.gz': Read-only file system
    rm: cannot remove `./blockcount.dat': Read-only file system
    rm: cannot remove `./ldlinux.sys': Read-only file system
    rm: cannot remove `./syslinux.cfg': Read-only file system
    rm: cannot remove `./user_start.dat': Read-only file system
    rm: cannot remove `./\353?EIt\ffB.f9\024': Input/output error
    [root@archlight disk-10]# ls
    ls: cannot access 
    syslin.UX: Input/output error
    ls: cannot access �?EIt
                           fB.f9: Input/output error
    ls: cannot access ?t	??.??: I┼⎻┤├/⎺┤├⎻┤├ ␊⎼⎼⎺⎼
    ┌⎽: ␌▒┼┼⎺├ ▒␌␌␊⎽⎽ .?: I┼⎻┤├/⎺┤├⎻┤├ ␊⎼⎼⎺⎼
    ?.?6?        ?.??                 ???>%┌4≤     ␉┌⎺␌┐␌⎺┤┼├.␍▒├  ┤⎽␊⎼_⎽├▒⎼├.␍▒├
    ??⎽≤⎽┌␋┼.UX    -.S                  ?├?????.???  ┌␍┌␋┼┤│.⎽≤⎽     ??EI├?B.9?
    ?(???M.??  2007.11.20_12.35.␉┌␍  P701L.≥     ⎽≤⎽┌␋┼┤│.␌
    [⎼⎺⎺├@▒⎼␌␤┌␋␤├ ␍␋⎽┐-10]#

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Something is wrong with USB drive. Remount it and execute ls command again. Check same USB drive in other machine too.
    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! TuxXin's Avatar
    Join Date
    Apr 2008
    Posts
    23
    Remounting or using another computer doesn't fix it. I tried formating the drive, but the files remain. I can still place files on the drive, but it is hard to work with them since certain commands cause the terminal to freak out.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    I tried formating the drive, but the files remain.
    Thats really weird. Formatting disk should remove everything.
    Plug-in Drive again in Linux Machine and execute this
    Code:
    dd if=/dev/zero of=/dev/sdb
    Make sure to use correct device name ( /dev/sdb ) else it will wipe your other disk. Check the output of fdisk -l command to check device name assigned to USB drive.

    Above command will wipe drive and you have to create new partition(s). You can use any Partition Manager to do that. You must have root privileges to execute above command.

    If you have any confusion regarding device name, post the output of fdisk -l command here.
    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! TuxXin's Avatar
    Join Date
    Apr 2008
    Posts
    23
    Thanks, that cleared everything up.

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Glad to help you !
    Do start a new thread if you have any other question.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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