LoginSignup
5
0

More than 5 years have passed since last update.

Raspberry Piで使っていたUSBメモリがwrite-protectedに

Posted at

Raspberry Piで使っていたUSBメモリがwrite-protectedに

ある日

sudo mount /dev/sda1 /mnt/USBMem/

mount: /dev/sda1 is write-protected, mounting read-only

になってしまった

これはUSBメモリが逝ってしまったか?
USBメモリは代替品を用意するとしても、なんとか中身を少しでも取り出したい

とりあえずfsckしてみた

sudo fsck -y /dev/sda1

fsck from util-linux 2.25.2
e2fsck 1.42.12 (29-Aug-2014)
fsck.ext4: Read-only file system while trying to open /dev/sda1
Disk write-protected; use the -n option to do a read-only
check of the device.

と連れない返事

write-protectedならReadOnlyでいいんじゃ

sudo mount -r /dev/sda1 /mnt/USBMem/

には

mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.

との返し

ディスクイメージを吸い出してマウントしてみたらどうだろう?

sudo dd if=/dev/sda1 bs=64k of=./sda1.img
sudo mount -o loop ./sda1.img /mnt/img

ををっ うまくいった

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0