1 |
Hi all, |
2 |
|
3 |
I've bought a simple and cheap USB key/MP3 player by memup. |
4 |
The kernel says: |
5 |
sdc: Write Protect is on |
6 |
How to disable this write protection? |
7 |
|
8 |
[all details bellow] |
9 |
I use hal/udev/ivman/pmount. When I insert the drive in my gentoo box, it is |
10 |
mounted by ivman/pmount in /media for the current user |
11 |
# df -T /dev/sdc |
12 |
Filesystem Type 1K-blocks Used Available Use% Mounted on |
13 |
/dev/sdc vfat 251496 1344 250152 1% /media/REGIS_USB |
14 |
|
15 |
drwx------ 2 regis users 16384 jan 1 1970 |
16 |
/media/REGIS_USB |
17 |
|
18 |
|
19 |
And /media/REGIS_USB does list the content of the USB drive. |
20 |
|
21 |
Now, I can't write anything on this filesytem. |
22 |
regis /media/REGIS_USB % touch |
23 |
toto |
24 |
|
25 |
touch: cannot touch `toto': Read-only file system |
26 |
|
27 |
As I understand my trivial configuration, this should be mounted read+write. |
28 |
Just in case, I tried: |
29 |
kro64 REGIS_USB # mount -o rw,remount /media/REGIS_USB/ |
30 |
mount: block device /dev/sdc is write-protected, mounting read-only |
31 |
|
32 |
dmesg says |
33 |
usb 2-4: USB disconnect, address 2 |
34 |
usb 3-4: new full speed USB device using ohci_hcd and address 10 |
35 |
usb 3-4: configuration #1 chosen from 1 choice |
36 |
scsi7 : SCSI emulation for USB Mass Storage devices |
37 |
usb-storage: device found at 10 |
38 |
usb-storage: waiting for device to settle before scanning |
39 |
Vendor: Model: Rev: |
40 |
Type: Direct-Access ANSI SCSI revision: 00 |
41 |
SCSI device sdc: 503521 512-byte hdwr sectors (258 MB) |
42 |
sdc: Write Protect is on |
43 |
sdc: Mode Sense: 00 c0 00 80 |
44 |
sdc: assuming drive cache: write through |
45 |
SCSI device sdc: 503521 512-byte hdwr sectors (258 MB) |
46 |
sdc: Write Protect is on |
47 |
sdc: Mode Sense: 00 c0 00 80 |
48 |
sdc: assuming drive cache: write through |
49 |
sdc: unknown partition table |
50 |
sd 7:0:0:0: Attached scsi removable disk sdc |
51 |
sd 7:0:0:0: Attached scsi generic sg1 type 0 |
52 |
usb-storage: device scan complete |
53 |
|
54 |
I have another usb key which is mounted rw as expected. The major difference |
55 |
I see is that dmesg says about the other key: |
56 |
sdc: Write Protect is off |
57 |
|
58 |
So: I do change this Write-protect parameter? |
59 |
|
60 |
Thanks and merry Easter. |
61 |
|
62 |
-- |
63 |
Régis |
64 |
|
65 |
-- |
66 |
Régis |