Estou tentando montar um arquivo ReiserFS 3.6 que contém um sistema de arquivos raiz:
$ file /tmp/rootfs
/tmp/rootfs: ReiserFS V3.6
$ sudo mkdir /mnt/restore
$ sudo mount -o loop -t reiserfs /tmp/rootfs /mnt/restore
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
$ dmesg | tail -n 4
[ 385.566305] REISERFS (device loop0): found reiserfs format "3.6" with standard journal
[ 385.566308] REISERFS warning (device loop0): reiserfs_fill_super: Filesystem cannot be mounted because it is bigger than the device
[ 385.566309] REISERFS warning (device loop0): reiserfs_fill_super: You may need to run fsck or increase size of your LVM partition
[ 385.566310] REISERFS warning (device loop0): reiserfs_fill_super: Or may be you forgot to reboot after fdisk when it told you to
Eu corri fsck
como sugerido:
$ fsck.reiserfs /tmp/rootfs --yes
reiserfsck 3.6.24
Will read-only check consistency of the filesystem on /tmp/rootfs
Will put log info to 'stdout'
bread: End of file, cannot read the block (1023999).
Aborted (core dumped)
Eu tenho muito espaço livre:
$ df -h /
Filesystem Size Used Avail Use% Mounted on
/dev/dm-0 62G 5.0G 54G 9% /
A imagem é de apenas 4 GB:
$ ls -lh /tmp/rootfs
-rw------- 1 1000 1000 4.0G Apr 13 18:16 /tmp/rootfs
Como posso montar esta imagem?
Tags loop-device reiserfs