LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
LinkBack Search this Thread
Old 06-03-2009, 11:19 AM   #16
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266Reputation: 1266

How old is this drive ? It may just be broken...
 
Old 06-03-2009, 04:15 PM   #17
YassBoss
LQ Newbie
 
Registered: Jun 2009
Distribution: Gentoo Linux
Posts: 25

Original Poster
Rep: Reputation: 15
I buy it 4 months ago, and I'm just trying to to know if it's corrupted or not...
 
Old 06-03-2009, 04:20 PM   #18
YassBoss
LQ Newbie
 
Registered: Jun 2009
Distribution: Gentoo Linux
Posts: 25

Original Poster
Rep: Reputation: 15
any other suggetion because I dont think that's a good idea to buy a flash disk every 4 months...

Last edited by YassBoss; 06-03-2009 at 05:19 PM.
 
Old 06-03-2009, 07:28 PM   #19
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
hi, ro means read only.(in fstab)

see what happens if you change ro to user or rw.

Quote:
ro
Mount read-only.
rw
Mount the filesystem read-write. Again, using this option might alleviate confusion on the part of new Linux users who are frustrated because they can't write to their floppies, Windows partitions, or other media.
wiki http://en.wikipedia.org/wiki/Fstab

Another thing you could try....

Make sure the disk is loaded in the system.

change to the root directory and

ls -la

it should output a list of files.

to be sure , to be sure.

WARNING! "removes files recursively throughout the directories."

then once you're sure it is the right drive.... type and execute as root....

rm -rf *.*

That command is very dangerous with root priv. It removes files recursively throughout the directories, if any, then removes the directories too!...

cheers, Glenn

you may have a trojan on there, mbr?

Last edited by GlennsPref; 06-03-2009 at 07:43 PM. Reason: Warning.... removes files recursively throughout the directories
 
Old 06-04-2009, 07:20 AM   #20
YassBoss
LQ Newbie
 
Registered: Jun 2009
Distribution: Gentoo Linux
Posts: 25

Original Poster
Rep: Reputation: 15
sorry, thanks any way
and there is a virus in it, like i mentioned in the title..

Last edited by YassBoss; 06-04-2009 at 07:45 AM.
 
Old 06-04-2009, 08:35 AM   #21
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Mageia Studio-13.37 Kubuntu.
Posts: 3,325
Blog Entries: 33

Rep: Reputation: 199Reputation: 199
That's OK. I forgot you mentioned the virii.

rm -rf will remove it.

Once you have fstab organised it should be a piece of cake.

I do this all the time on winxp boxes, not so much usb sticks.

Then I would zero the drive as suggested by our learned friend above.

A handy tool is to have a live Linux distro on a CD-ROM or a flash stick.

I have found Mepis and Slax (respectively) really useful for these tasks.

regards Glenn
 
Old 07-10-2009, 05:39 PM   #22
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Rep: Reputation: 15
I want to continue with this thread instead to create another.

I have the same problem, and try all your tips, but all the solutions have the same thing, the USB is detected as Write protected since you plug it, the dmesg show:

sd 3:0:0:0: [sdb] Write Protect is on

So, commands like dd, fdisk, mount and others always show a warning

The device is write protected.

And nothing can be donde, so i think that the solution could be something like:

1.- Plug the drive
2.- Eject ($eject /dev/sdb)
3.- ?

I need your help?

Extra: Or my memory raise the all the read/write cycles.

Last edited by scmbg; 07-10-2009 at 05:43 PM. Reason: fix typos
 
Old 07-10-2009, 07:28 PM   #23
jefro
Guru
 
Registered: Mar 2008
Posts: 10,255

Rep: Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256Reputation: 1256
OPPS almost wrote this.
If you can't format it try to partition it.


It seems to be damaged beyond repair. Does any other flash drive work correctly.

Last edited by jefro; 07-10-2009 at 07:29 PM.
 
Old 07-11-2009, 09:57 AM   #24
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Rep: Reputation: 15
Yes, i have other USB pen drive and works fine, and i plug others (friends and family), and also works.
 
  


Reply

Tags
drive, readonly, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
USB Thumbdrive Win32/Linux Encrypt & Stop Write to autorun.inf jago25_98 Linux - Hardware 1 06-01-2009 09:14 AM
autorun.exe and *.exe for linux eutalia2000 Linux - Newbie 3 12-23-2008 06:31 AM
Autorun a exe file when ubuntu boots. ASTRAPI Linux - Newbie 4 09-28-2007 07:02 PM
How to write an autorun.inf file Digital Surgeon Programming 6 04-04-2006 03:46 PM
SETUP.EXE/autorun.exe don't run in wine mst3kman Linux - Games 3 01-22-2006 02:20 PM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration