리눅스
Read only file system 오류
ufris
2020. 1. 31. 15:34
cat /proc/mounts | grep /dev 을 통해 하드 마운팅 권한이 ro가 아닌 rw로 되어 있어야 합니다
(ro로 되어 있는 경우 읽기 전용)
sudo umount '새 볼륨'
sudo umount /dev/sda2
sudo mount -t hfsplus -o rw,remount -force /dev/sda2 '새 볼륨'
그리고 재부팅을 하면 됩니다
그래도 안되면 듀얼부팅 컴퓨터라면 윈도우에서 해당 드라이버를 실행한 다음에 들어오는 방법도 있습니다
e2fsck를 통해 복구를 하는 방법이 있습니다
e2fsck를 사용할 시 umount를 해야합니다
e2fsck /dev/sda2
e2fsck: Bad magic number in super-block /dev/sda2 를 열고 있습니다.
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
/dev/sda2 contains a ntfs file system labelled '새 볼륨'
위와 같은 에러가 뜰 때는 type이 ext가 아닌 경우 발생합니다
ntfsfix /dev/sda2
를 통해 mount가 가능합니다