Waktu itu, ketika lagi download file dari ftp dan memang sengaja download sampe penuh hard disk, muncul error:
$ ls -l
ls: cannot access FILE_NAME: Input/output error
Hard disk tersebut dikonfigurasi dengan LVM dengan file system ext4. Biasanya diperbaiki dengan Ubuntu LiveCD, namun kali ini dicoba live.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 6.4G 2.5G 3.7G 40% /
udev 683M 4.0K 683M 1% /dev
tmpfs 139M 224K 139M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 692M 0 692M 0% /run/shm
/dev/mapper/vg1-lv1 20G 12G 7.8G 60% /u01
fsck
butuh data lokasi file system . Dari informasi df, LVM ada di /dev/mapper/vg1-lv1 :
$ sudo fsck.ext4 /dev/mapper/vg1-lv1
e2fsck 1.42 (29-Nov-2011)
/dev/mapper/vg1-lv1 is mounted.
WARNING!!! The filesystem is mounted.
If you continue you ***WILL***
cause ***SEVERE*** filesystem damage.
Do you really want to continue<n>? yes
Kalo males tekan tombol y
, bisa ditambahkan opsi -y
:
$ sudo fsck.ext4 -y /dev/mapper/vg1-lv1
Done.
Tidak ada komentar:
Posting Komentar