[gentoo-user] Write Protect is on: USB key insists on being read-only filesystem

2006-04-16 Thread Régis Décamps
Hi all,I've bought a simple and cheap USB key/MP3 player by memup.The kernel says:sdc: Write Protect is onHow to disable this write protection?[all details bellow]I use hal/udev/ivman/pmount. When I insert the drive in my gentoo box, it is mounted by ivman/pmount in /media for the current user
# df -T /dev/sdcFilesystem Type 1K-blocks Used Available Use% Mounted on/dev/sdc vfat 251496 1344 250152 1% /media/REGIS_USBdrwx-- 2 regis users 16384 jan 1 1970 /media/REGIS_USB 
And /media/REGIS_USB does list the content of the USB drive.Now, I can't write anything on this filesytem.regis /media/REGIS_USB % touch toto 
touch: cannot touch `toto': Read-only file systemAs I understand my trivial configuration, this should be mounted read+write. Just in case, I tried:kro64 REGIS_USB # mount -o rw,remount /media/REGIS_USB/


mount: block device /dev/sdc is write-protected, mounting read-onlydmesg saysusb 2-4: USB disconnect, address 2usb 3-4: new full speed USB device using ohci_hcd and address 10usb 3-4: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devicesusb-storage: device found at 10usb-storage: waiting for device to settle before scanning Vendor: Model: Rev: Type: Direct-Access ANSI SCSI revision: 00
SCSI device sdc: 503521 512-byte hdwr sectors (258 MB)sdc: Write Protect is onsdc: Mode Sense: 00 c0 00 80sdc: assuming drive cache: write throughSCSI device sdc: 503521 512-byte hdwr sectors (258 MB)

sdc: Write Protect is onsdc: Mode Sense: 00 c0 00 80sdc: assuming drive cache: write throughsdc: unknown partition tablesd 7:0:0:0: Attached scsi removable disk sdcsd 7:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan completeI have another usb key which is mounted rw as expected. The major difference I see is that dmesg says about the other key:sdc: Write Protect is offSo: I do change this Write-protect parameter?
Thanks and merry Easter.-- Régis-- Régis


Re: [gentoo-user] Write Protect is on: USB key insists on being read-only filesystem

2006-04-16 Thread Mantas Povilaitis
On 4/16/06, Régis Décamps [EMAIL PROTECTED] wrote:
 Hi all,
 So: I do change this Write-protect parameter?

on my usb mp3 player there is a slider(? sorry, don't know how to call
it in english) - it can be in one of the two positions. one for
readonly, another - read/write. just like a floppy disks have. maybe
there is something like this on your player too.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Write Protect is on: USB key insists on being read-only filesystem

2006-04-16 Thread Hemmann, Volker Armin
a) write protect switch
b) hdparm (man hdparm)
-- 
gentoo-user@gentoo.org mailing list