deano724
August 3rd, 2012, 01:17 AM
I am slightly surprised how recent this thread is. I have been trying to solve the same problem and came across this thread. Thanks for the help up to now. Similar to manuganji, I have a USB pendrive of unknown manufacturer that has gotten stuck in read-only mode. I originally installed Ubuntu with Persistance on it, but one day I tried starting up and it could not mount '/'.
All attempts at using WinXP, Win7 formatting, GParted (Live CD or in Ubuntu Live CD), fdisk, and dd have resulted most of the time with the words "read-only file system". I am starting to fear the drive is hopeless even though I read it just fine.
Picking up at the end of trying everything, fdisk resulted in "Bad file descriptor" when trying to delete the partition or write a new one, and dd stopped immediately while opening my /dev/sdb saying it was a "read-only file system".
I still have to try the "HP USB Disk Storage Format Tool" since this is a FAT32 formatted drive. But I thought I would look for one last set of advice. One other thing I tried is the following with dosfsck (wasn't sure if I should call the device or the partition):
ubuntu@ubuntu:~$ sudo dosfsck -a -v /dev/sdb
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
open: Read-only file system
ubuntu@ubuntu:~$ sudo dosfsck -a -v /dev/sdb1
dosfsck 3.0.9 (31 Jan 2010)
dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN
Checking we can access the last sector of the filesystem
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
3:53/4d, 4:59/53, 5:53/44, 6:4c/4f, 7:49/53, 8:4e/35, 9:55/2e, 10:58/30
, 90:fa/33, 91:fc/c9, 92:31/8e, 93:c9/d1, 94:8e/bc, 95:d1/f4, 96:bc/7b
, 97:76/8e, 98:7b/c1, 99:52/8e, 100:06/d9, 101:57/bd, 102:1e/00, 103:56/7c
, 104:8e/88, 105:c1/4e, 106:b1/02, 107:26/8a, 108:bf/56, 109:78/40
, 110:7b/b4, 111:f3/08, 112:a5/cd, 113:8e/13, 114:d9/73, 115:bb/05
, 116:78/b9, 117:00/ff, 118:0f/ff, 119:b4/8a, 120:37/f1, 121:0f/66
, 122:a0/0f, 123:56/b6, 124:20/c6, 125:d2/40, 126:78/66, 127:1b/0f
, 128:31/b6, 129:c0/d1, 130:b1/80, 131:06/e2, 132:89/3f, 133:3f/f7
, 134:89/e2, 135:47/86, 136:02/cd, 137:f3/c0, 138:64/ed, 139:a5/06
, 140:8a/41, 141:0e/66, 142:18/0f, 143:7c/b7, 144:88/c9, 145:4d/66
, 146:f8/f7, 147:50/e1, 148:50/66, 149:50/89, 150:50/46, 151:cd/f8
, 152:13/83, 153:eb/7e, 154:62/16, 155:8b/00, 156:55/75, 157:aa/38
, 158:8b/83, 159:75/7e, 160:a8/2a, 161:c1/00, 162:ee/77, 163:04/32
, 164:01/66, 165:f2/8b, 166:83/46, 167:fa/1c, 168:4f/66, 169:76/83
, 170:31/c0, 171:81/0c, 172:fa/bb, 173:b2/00, 174:07/80, 175:73/b9
, 176:2b/01, 177:f6/00, 178:45/e8, 179:b4/2b, 180:7f/00, 181:75/e9
, 182:25/48, 183:38/03, 184:4d/a0, 185:b8/fa, 186:74/7d, 187:20/b4
, 188:66/7d, 189:3d/8b, 190:21/f0, 191:47/ac, 192:50/84, 193:54/c0
, 194:75/74, 195:10/17, 196:80/3c, 197:7d/ff, 198:b8/74, 199:ed/09
, 200:75/b4, 201:0a/0e, 202:66/bb, 203:ff/07, 204:75/00, 205:ec/cd
, 206:66/10, 207:ff/eb, 208:75/ee, 209:e8/a0, 210:eb/fb, 211:0f/7d
, 212:51/eb, 213:51/e5, 214:66/a0, 215:ff/f9, 216:75/7d, 217:bc/eb
, 218:eb/e0, 219:07/98, 220:51/cd, 221:51/16, 222:66/cd, 223:ff/19
, 224:36/66, 225:1c/60, 226:7c/66, 227:b4/3b, 228:08/46, 229:e8/f8
, 230:e9/0f, 231:00/82, 232:72/4a, 233:13/00, 234:20/66, 235:e4/6a
, 236:75/00, 237:0f/66, 238:c1/50, 239:ea/06, 240:08/53, 241:42/66
, 242:89/68, 243:16/10, 244:1a/00, 245:7c/01, 246:83/00, 247:e1/80
, 248:3f/7e, 249:89/02, 250:0e/00, 251:18/0f, 252:7c/85, 253:fb/20
, 254:bb/00, 255:aa/b4, 256:55/41, 257:b4/bb, 258:41/aa, 259:e8/55
, 260:cb/8a, 261:00/56, 262:72/40, 263:10/cd, 264:81/13, 265:fb/0f
, 266:55/82, 267:aa/1c, 268:75/00, 269:0a/81, 270:f6/fb, 271:c1/55
, 272:01/aa, 273:74/0f, 274:05/85, 275:c6/14, 276:06/00, 277:46/f6
, 278:7d/c1, 279:00/01, 280:66/0f, 281:b8/84, 282:90/0d, 283:78/00
, 284:00/fe, 285:00/46, 286:66/02, 287:ba/b4, 288:00/42, 289:00/8a
, 290:00/56, 291:00/40, 292:bb/8b, 293:00/f4, 294:80/cd, 295:e8/13
, 296:0e/b0, 297:00/f9, 299:81/58, 300:3e/66, 301:1c/58, 302:80/66
, 303:c5/58, 304:ed/66, 305:5a/58, 306:70/eb, 307:75/2a, 308:74/66
, 309:e9/33, 310:f8/d2, 311:02/66, 312:66/0f, 313:03/b7, 314:06/4e
, 315:60/18, 316:7b/66, 317:66/f7, 318:13/f1, 319:16/fe, 320:64/c2
, 321:7b/8a, 322:b9/ca, 323:10/66, 324:00/8b, 325:eb/d0, 326:2b/66
, 327:66/c1, 328:52/ea, 329:66/10, 330:50/f7, 331:06/76, 332:53/1a
, 333:6a/86, 334:01/d6, 335:6a/8a, 336:10/56, 337:89/40, 338:e6/8a
, 339:66/e8, 340:60/c0, 341:b4/e4, 342:42/06, 343:e8/0a, 344:77/cc
, 345:00/b8, 346:66/01, 347:61/02, 348:8d/cd, 349:64/13, 350:10/66
, 351:72/61, 352:01/0f, 353:c3/82, 354:66/54, 355:60/ff, 356:31/81
, 357:c0/c3, 358:e8/00, 359:68/02, 360:00/66, 361:66/40, 362:61/49
, 363:e2/0f, 364:da/85, 365:c6/71, 366:06/ff, 367:46/c3, 368:7d/4e
, 369:2b/54, 370:66/4c, 371:60/44, 372:66/52, 373:0f/20, 374:b7/20
, 375:36/20, 376:18/20, 377:7c/20, 378:66/20, 379:0f/00, 380:b7/00
, 381:3e/00, 382:1a/00, 383:7c/00, 384:66/00, 385:f7/00, 386:f6/00
, 387:31/00, 388:c9/00, 389:87/00, 390:ca/00, 391:66/00, 392:f7/00
, 393:f7/00, 394:66/00, 395:3d/00, 396:ff/00, 397:03/00, 400:77/00
, 401:17/00, 402:c0/00, 403:e4/00, 404:06/00, 405:41/00, 406:08/00
, 407:e1/00, 408:88/00, 409:c5/00, 410:88/00, 411:d6/00, 412:b8/00
, 413:01/00, 414:02/00, 415:e8/00, 416:2f/00, 418:66/00, 419:61/00
, 420:72/00, 421:01/00, 422:c3/00, 423:e2/00, 424:c9/00, 425:31/00
, 426:f6/00, 427:8e/00, 428:d6/0d, 429:bc/0a, 430:68/52, 431:7b/65
, 432:8e/6d, 433:de/6f, 434:66/76, 435:8f/65, 436:06/20, 437:78/64
, 438:00/69, 439:be/73, 440:da/6b, 441:7d/73, 442:ac/20, 443:20/6f
, 444:c0/72, 445:74/20, 446:09/6f, 447:b4/74, 448:0e/68, 449:bb/65
, 450:07/72, 451:00/20, 452:cd/6d, 453:10/65, 454:eb/64, 455:f2/69
, 456:31/61, 457:c0/2e, 458:cd/ff, 459:16/0d, 460:cd/0a, 461:19/44
, 462:f4/69, 463:eb/73, 464:fd/6b, 465:8a/20, 466:16/65, 467:74/72
, 468:7b/72, 469:06/6f, 470:cd/72, 471:13/ff, 472:07/0d, 473:c3/0a
, 474:42/50, 475:6f/72, 476:6f/65, 477:74/73, 478:20/73, 479:65/20
, 480:72/61, 481:72/6e, 482:6f/79, 483:72/20, 484:0d/6b, 485:0a/65
, 486:00/79, 487:00/20, 488:00/74, 489:00/6f, 490:00/20, 491:00/72
, 492:00/65, 493:00/73, 494:00/74, 495:00/61, 496:00/72, 497:00/74
, 498:00/0d, 499:00/0a, 504:fe/00, 505:02/ac, 506:b2/cb, 507:3e/d8
, 508:18/00, 509:37/00
Not automatically fixing this.
Boot sector contents:
System ID "SYSLINUX"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
4096 bytes per cluster
36 reserved sectors
First FAT starts at byte 18432 (sector 36)
2 FATs, 32 bit entries
7889920 bytes per FAT (= 15410 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 15798272 (sector 30856)
1972358 data clusters (8078778368 bytes)
63 sectors/track, 255 heads
520 hidden sectors
15809720 sectors total
Reclaiming unconnected clusters.
Checking free cluster summary.
/dev/sdb1: 250 files, 965593/1972358 clusters
Also for reference, here is my dmesg info:
dmesg | tail
[ 1594.485897] sd 4:0:0:0: [sdb] Write Protect is on
[ 1594.485903] sd 4:0:0:0: [sdb] Mode Sense: 03 00 80 00
[ 1594.486391] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1594.486397] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1594.489525] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1594.489534] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1594.491145] sdb: sdb1
[ 1594.493889] sd 4:0:0:0: [sdb] No Caching mode page present
[ 1594.493895] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 1594.493900] sd 4:0:0:0: [sdb] Attached SCSI removable disk
Thanks for any ideas for me and manuganji. I'm hoping two test cases might help.
Powered by vBulletin® Version 4.2.2 Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.