1 |
2006/3/24, Iain Buchanan <iaindb@××××××××××××.au>: |
2 |
> |
3 |
> On Fri, 2006-03-24 at 07:03 +0100, Martin S wrote: |
4 |
> > I lent my USB stick to a guy for a job the other day. Apparently his |
5 |
> > Win98 box wanted to install drivers for it to work, so he pulled it |
6 |
> > before Wintendo (anything < 2000) could get to doing its stuff. |
7 |
> > |
8 |
> > Now I get |
9 |
> > |
10 |
> > SuicidalPuppy martoni # mount /mnt/usb/ |
11 |
> > mount: block device /dev/sda is write-protected, mounting read-only |
12 |
> > mount: wrong fs type, bad option, bad superblock on /dev/sda, |
13 |
> > missing codepage or other error |
14 |
> > In some cases useful info is found in syslog - try |
15 |
> > dmesg | tail or so |
16 |
> |
17 |
> The "read-only" is a bit misleading - I get this message when mount |
18 |
> can't understand the filesystem, even though it may be ok. |
19 |
> |
20 |
> If you don't need any data from the drive, see if you can re-fdisk and |
21 |
> re-format it. Unplug it first and plug in again, just in case you did |
22 |
> something bad with hdparm. |
23 |
|
24 |
|
25 |
|
26 |
SuicidalPuppy martoni # fdisk /dev/sda |
27 |
You will not be able to write the partition table. |
28 |
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF |
29 |
disklabel |
30 |
Building a new DOS disklabel. Changes will remain in memory only, |
31 |
until you decide to write them. After that, of course, the previous |
32 |
content won't be recoverable. |
33 |
|
34 |
Warning: invalid flag 0x0000 of partition table 4 will be corrected by |
35 |
w(rite) |
36 |
|
37 |
Command (m for help): n |
38 |
Command action |
39 |
e extended |
40 |
p primary partition (1-4) |
41 |
p |
42 |
Partition number (1-4): 1 |
43 |
First cylinder (1-1015, default 1): |
44 |
Using default value 1 |
45 |
Last cylinder or +size or +sizeM or +sizeK (1-1015, default 1015): |
46 |
Using default value 1015 |
47 |
|
48 |
Command (m for help): p |
49 |
|
50 |
Disk /dev/sda: 262 MB, 262144000 bytes |
51 |
9 heads, 56 sectors/track, 1015 cylinders |
52 |
Units = cylinders of 504 * 512 = 258048 bytes |
53 |
|
54 |
Device Boot Start End Blocks Id System |
55 |
/dev/sda1 1 1015 255752 83 Linux |
56 |
|
57 |
Command (m for help): w |
58 |
|
59 |
Unable to write /dev/sda |
60 |
|
61 |
|
62 |
Regards, |
63 |
|
64 |
Martin S |