FsArchiver Error & Fail : cannot format the filesystem ext4

Topics about disk partitioning (fdisk, parted, gparted, partimage), Volumes Management (lvm, evms, dmraid), Storage, file systems, ...
GIO67
Posts: 3
Joined: 22 Jun 2015, 07:31

FsArchiver Error & Fail : cannot format the filesystem ext4

Postby GIO67 » 22 Jun 2015, 07:45

Hello All,

trying to restore ext4 filesystem with fsarchiver @ SysRescueCD 4.5.3

command holds at mke2fs command: no disk activity at all and no more messages, after a while and typing return I get error message: see attached log from stdout

Regards,

Giancarlo
------------------------------------------------------------------------

[email protected] /root % ntfs-3g /dev/sdc1 /mnt/backup
[email protected] /root % fsarchiver restfs /mnt/backup/DELL/REL.2_9/DELL2_02.9_sda3.fsa id=0,dest=/dev/sda3 -vvvvvv
fsarchiver.c#274,process_cmdline(): Files smaller than 65536 will be packed with other small files
Detected fileformat=2 in archive /mnt/backup/DELL/REL.2_9/DELL2_02.9_sda3.fsa
Current fsarchiver version: 0.6.19.0
Minimum fsarchiver version for that archive: 0.6.4.0
============= extracting filesystem 0 =============
Current fsarchiver version: 0.6.19.0
Minimum fsarchiver version for that filesystem: 0.6.4.0
filesys.c#172,generic_get_mntinfo(): device=[/dev/sda3] has major=[8] and minor=[3]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[5] filesys=[devtmpfs] col_opt=[rw,size=10240k,nr_inodes=492253,mode=755] col_mnt=[/dev]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[11] minor=[0] filesys=[iso9660] col_opt=[ro,mode=0644] col_mnt=[/livemnt/boot]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[7] minor=[0] filesys=[squashfs] col_opt=[ro] col_mnt=[/livemnt/squashfs]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[15] filesys=[tmpfs] col_opt=[rw] col_mnt=[/livemnt/memory]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[16] filesys=[aufs] col_opt=[rw,si=1748f8bfea089673] col_mnt=[/]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[17] filesys=[tmpfs] col_opt=[rw,size=524288k] col_mnt=[/livemnt/tftpmem]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[18] filesys=[aufs] col_opt=[rw,si=1748f8bfea08c673] col_mnt=[/tftpboot]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[4] filesys=[proc] col_opt=[rw] col_mnt=[/proc]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[14] filesys=[tmpfs] col_opt=[rw,size=396332k,mode=755] col_mnt=[/run]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[13] filesys=[mqueue] col_opt=[rw] col_mnt=[/dev/mqueue]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[11] filesys=[devpts] col_opt=[rw,gid=5,mode=620,ptmxmode=000] col_mnt=[/dev/pts]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[19] filesys=[tmpfs] col_opt=[rw] col_mnt=[/dev/shm]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[20] filesys=[sysfs] col_opt=[rw] col_mnt=[/sys]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[21] filesys=[securityfs] col_opt=[rw] col_mnt=[/sys/kernel/security]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[6] filesys=[debugfs] col_opt=[rw] col_mnt=[/sys/kernel/debug]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[22] filesys=[configfs] col_opt=[rw] col_mnt=[/sys/kernel/config]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[23] filesys=[fusectl] col_opt=[rw] col_mnt=[/sys/fs/fuse/connections]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[0] minor=[24] filesys=[tmpfs] col_opt=[rw] col_mnt=[/tmp]
filesys.c#205,generic_get_mntinfo(): mountinfo entry: major=[8] minor=[33] filesys=[fuseblk] col_opt=[rw,user_id=0,group_id=0,allow_other,blksize=4096] col_mnt=[/mnt/backup]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[rootfs] col_mnt=[/] col_fs=[rootfs] col_opt=[rw,size=1969004k,nr_inodes=492251]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[udev] col_mnt=[/dev] col_fs=[devtmpfs] col_opt=[rw,relatime,size=10240k,nr_inodes=492253,mode=755]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[/dev/sr0] col_mnt=[/livemnt/boot] col_fs=[iso9660] col_opt=[ro,relatime,mode=0644]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[/dev/loop0] col_mnt=[/livemnt/squashfs] col_fs=[squashfs] col_opt=[ro,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[tmpfs] col_mnt=[/livemnt/memory] col_fs=[tmpfs] col_opt=[rw,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[none] col_mnt=[/] col_fs=[aufs] col_opt=[rw,noatime,si=1748f8bfea089673]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[tmpfs] col_mnt=[/livemnt/tftpmem] col_fs=[tmpfs] col_opt=[rw,relatime,size=524288k]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[none] col_mnt=[/tftpboot] col_fs=[aufs] col_opt=[rw,relatime,si=1748f8bfea08c673]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[proc] col_mnt=[/proc] col_fs=[proc] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[tmpfs] col_mnt=[/run] col_fs=[tmpfs] col_opt=[rw,nosuid,nodev,relatime,size=396332k,mode=755]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[mqueue] col_mnt=[/dev/mqueue] col_fs=[mqueue] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[devpts] col_mnt=[/dev/pts] col_fs=[devpts] col_opt=[rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[shm] col_mnt=[/dev/shm] col_fs=[tmpfs] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[sysfs] col_mnt=[/sys] col_fs=[sysfs] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[securityfs] col_mnt=[/sys/kernel/security] col_fs=[securityfs] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[debugfs] col_mnt=[/sys/kernel/debug] col_fs=[debugfs] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[configfs] col_mnt=[/sys/kernel/config] col_fs=[configfs] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[fusectl] col_mnt=[/sys/fs/fuse/connections] col_fs=[fusectl] col_opt=[rw,nosuid,nodev,noexec,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[tmpfs] col_mnt=[/tmp] col_fs=[tmpfs] col_opt=[rw,relatime]
filesys.c#278,generic_get_mntinfo(): mount entry: col_dev=[/dev/sdc1] col_mnt=[/mnt/backup] col_fs=[fuseblk] col_opt=[rw,relatime,user_id=0,group_id=0,allow_other,blksize=4096]
strdico_get_string(dicocmdline, 'mkfsopt') doesn't exist
filesystem=[ext4]
filesystemoptions=[]
fsbytestotal=[447.32 GB]
fsbytesused=[10.78 GB]
common.c#324,exec_command(): argv[0]=[mke2fs]
common.c#324,exec_command(): argv[1]=[-V]
getpathtoprog(mke2fs)=[/sbin/mke2fs]
executing [mke2fs -V]...
command [mke2fs -V] returned 0
common.c#324,exec_command(): argv[0]=[mke2fs]
common.c#324,exec_command(): argv[1]=[-V]
getpathtoprog(mke2fs)=[/sbin/mke2fs]
executing [mke2fs -V]...
command [mke2fs -V] returned 0
the filesystem type determined by the original filesystem features is [ext4]
the filesystem type to create considering the command options is [ext4]
--> feature [has_journal]=YES
--> feature [ext_attr]=YES
--> feature [resize_inode]=YES
--> feature [dir_index]=YES
--> feature [filetype]=YES
--> feature [extent]=YES
--> feature [journal_dev]=NO
--> feature [flex_bg]=YES
--> feature [meta_bg]=NO
--> feature [mmp]=NO
--> feature [large_file]=YES
--> feature [huge_file]=YES
--> feature [sparse_super]=YES
--> feature [uninit_bg]=YES
--> feature [dir_nlink]=YES
--> feature [extra_isize]=YES
--> feature [bigalloc]=NO
features: mkfs_options+=[-O has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc]
mke2fs version detected: 1.42.12
mke2fs version required: 1.41.0
dico.c#166,dico_get_generic(): case3: not found
dico.c#166,dico_get_generic(): case3: not found
exec: mke2fs -V
common.c#324,exec_command(): argv[0]=[mke2fs]
common.c#324,exec_command(): argv[1]=[/dev/sda3]
common.c#324,exec_command(): argv[2]=[-q]
common.c#324,exec_command(): argv[3]=[-r]
common.c#324,exec_command(): argv[4]=[1]
common.c#324,exec_command(): argv[5]=[-b]
common.c#324,exec_command(): argv[6]=[4096]
common.c#324,exec_command(): argv[7]=[-I]
common.c#324,exec_command(): argv[8]=[256]
common.c#324,exec_command(): argv[9]=[-O]
common.c#324,exec_command(): argv[10]=[has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc]
getpathtoprog(mke2fs)=[/sbin/mke2fs]
executing [mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc ]...

############################################# THIS POINT NO NOME MESSAGES BUT NO DISK ACTIVITY AT ALL, AFTER A WHILE I TYPE "RETURN" AND:

command [mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc ] returned 1
fs_ext2.c#281,extfs_mkfs(): command [mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc ] failed with return status=1
oper_restore.c#1280,extractar_filesystem_extract(): cannot format the filesystem ext4 on partition /dev/sda3
oper_restore.c#1524,oper_restore(): extract_filesystem(0) failed
oper_restore.c#1578,oper_restore(): THREAD-MAIN2: exit error
oper_restore.c#1582,oper_restore(): THREAD-MAIN2: exit
oper_restore.c#1584,oper_restore(): queue_count_items_todo(&g_queue)=0
oper_restore.c#1589,oper_restore(): queue_count_items_todo(&g_queue)=0
thread_archio.c#269,thread_reader_fct(): THREAD-READER: queue_set_end_of_queue(&g_queue, true)
thread_archio.c#272,thread_reader_fct(): THREAD-READER: exit
oper_restore.c#1593,oper_restore(): THREAD-MAIN2: queue is now empty
thread_comp.c#280,compression_function(): THREAD-COMP: exit success
[email protected] /root %

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: FsArchiver Error & Fail : cannot format the filesystem e

Postby gernot » 22 Jun 2015, 18:29

try the failing format command manual (this erase /dev/sda3)
mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O
or
strace mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O
Maybe you get more information.

check also that /dev/sda3 is unused and exist.
"fsarchiver probe" should list /dev/sda3.
cat /proc/mounts should it not list.

Gernot

GIO67
Posts: 3
Joined: 22 Jun 2015, 07:31

Re: FsArchiver Error & Fail : cannot format the filesystem e

Postby GIO67 » 23 Jun 2015, 14:28

Hello/Bonjour Gernot,
thank you for your feedback

I have checked, sda3 is not mounted and is recognized by fsarchiver probe
Cannot test the format command yet, firstly I have to be sure to be able to recover my image or create a new image with another tool.

Nevertheless I can see that:

in the command : "executing [mke2fs /dev/sda3 -q -r 1 -b 4096 -I 256 -O has_journal,ext_attr,resize_inode,dir_index,filetype,extent,^journal_dev,flex_bg,^meta_bg,^mmp,large_file,huge_file,sparse_super,uninit_bg,dir_nlink,extra_isize,^bigalloc ]..."

there are _four_ spaces between "-r 1" and "-b 4096", all other command switch have _two_spaces among them. Not sure if mke2fs can tolerate that.

I'll check again,

EDIT: excess spaces are not shown in this text when the post is published (reformat? I can see them in the edit window). They are evident in the original stdout output...

Thank you/Merci

Giancarlo

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: FsArchiver Error & Fail : cannot format the filesystem e

Postby gernot » 23 Jun 2015, 14:41

I missed the option line in my posting. Multiple spaces are no problem, but i wonder about the ^.

Gernot

GIO67
Posts: 3
Joined: 22 Jun 2015, 07:31

Re: FsArchiver Error & Fail : cannot format the filesystem e

Postby GIO67 » 23 Jun 2015, 14:52

"^" should not be a problem, either:

man mke2fs:
-O [^]feature[,...]
To disable a feature, simply prefix the feature name with a caret ('^') character.

Giancarlo

gernot
Posts: 1126
Joined: 07 Apr 2010, 16:19

Re: FsArchiver Error & Fail : cannot format the filesystem e

Postby gernot » 23 Jun 2015, 19:54

again learned something new.
Thanks.

Gernot


Return to “Hard-disk partitioning and storage”

Who is online

Users browsing this forum: No registered users and 2 guests