oper_save.c#1129: /folder is not a valid block device

Please ask questions here if you are not familiar with fsarchiver
Post Reply
tanwald
Posts: 5
Joined: Sun Mar 07, 2010 2:21 pm

oper_save.c#1129: /folder is not a valid block device

Post by tanwald » Sun Mar 07, 2010 2:55 pm

Hey,

I keep trying to save my root partition but it just does not work out. At first I tried to use the SystemRescueCd but FSArchiver does not detect my filesystems correctly. Most probably SystemRescueCd does not support my raid-controller.

So I booted with a Fedora 12 live CD and installed FSArchiver using yum. The probe option returned the following:
[======DISK======] [=============NAME==============] [====SIZE====] [MAJ] [MIN]
[sda ] [FUJITSU MHZ2160B ] [ 149.05 GB] [ 8] [ 0]
[sdb ] [ST9160411ASG ] [ 149.05 GB] [ 8] [ 16]
[sdc ] [1600BEVExternal ] [ 149.05 GB] [ 8] [ 32]

[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN] [==============LONGNAME==============] [=================UUID=================]
[loop0 ] [squashfs ] [<unknown> ] [ 8.00 KB] [ 7] [ 0] [/dev/loop0 ] [<unknown> ]
[loop1 ] [DM_snapshot_cow] [<unknown> ] [ 960.00 KB] [ 7] [ 1] [/dev/loop1 ] [<unknown> ]
[loop2 ] [squashfs ] [<unknown> ] [ 638.61 MB] [ 7] [ 2] [/dev/loop2 ] [<unknown> ]
[loop3 ] [ext4 ] [Fedora-12-i686-L ] [ 3.00 GB] [ 7] [ 3] [/dev/loop3 ] [b31beb5d-5a2e-4da6-a9dd-0551fe9f4d3c ]
[loop4 ] [DM_snapshot_cow] [<unknown> ] [ 512.00 MB] [ 7] [ 4] [/dev/loop4 ] [<unknown> ]
[sdc1 ] [ntfs ] [WD Passport ] [ 149.05 GB] [ 8] [ 33] [/dev/sdc1 ] [160823EB0823C897 ]
[dm-0 ] [<unknown> ] [<unknown> ] [ 298.10 GB] [253] [ 0] [/dev/mapper/isw_bffjcadhhj_ARRAY ] [<unknown> ]
[dm-1 ] [ntfs ] [System ] [ 249.27 GB] [253] [ 1] [/dev/mapper/isw_bffjcadhhj_ARRAYp1 ] [587C90A67C908104 ]
[dm-2 ] [swap ] [<unknown> ] [ 48.82 GB] [253] [ 2] [/dev/mapper/isw_bffjcadhhj_ARRAYp2 ] [44d9197c-ddb4-4028-bf2d-4e19bd6e8b24 ]
[dm-3 ] [ext4 ] [Fedora-12-i686-L ] [ 44.91 GB] [253] [ 3] [/dev/mapper/isw_bffjcadhhj_ARRAYp5 ] [47e22a62-43d6-43e0-a472-b786cc261664 ]
[dm-4 ] [swap ] [Swap ] [ 3.91 GB] [253] [ 4] [/dev/mapper/isw_bffjcadhhj_ARRAYp6 ] [c61e6d8e-01fd-431d-9f04-b32007328b8f ]
[dm-5 ] [ext4 ] [Fedora-12-i686-L ] [ 3.00 GB] [253] [ 5] [/dev/mapper/live-rw ] [b31beb5d-5a2e-4da6-a9dd-0551fe9f4d3c ]
[dm-6 ] [ext4 ] [Fedora-12-i686-L ] [ 3.00 GB] [253] [ 6] [/dev/mapper/live-osimg-min ] [b31beb5d-5a2e-4da6-a9dd-0551fe9f4d3c ]


Until now everything seems fine. I want to backup dm-3 and therefore I type
mount -t ext4 -o ro /dev/dm-3 /media/Fedora/
and check the mtab:

...
/dev/dm-3 /media/Fedora ext4 ro 0 0
/dev/dm-1 /media/System fuseblk rw,nosuid,nodev,allow_other,default_permissions,blksize=4096 0 0
...
I type
fsarchiver savefs -e Videos Music -L FedoraRoot -v /media/System/IMG/img.fsa /media/Fedora
fsarchiver savefs -e Videos Music -L FedoraRoot -v /media/System/IMG /media/Fedora
and both times I receive the message:

oper_save.c#1129,oper_save(): /media/System/IMG/img.fsa is not a valid block device

I also tried other targets/options but the result is always the same... Any ideas?

Thanks.

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: oper_save.c#1129: /folder is not a valid block device

Post by admin » Sun Mar 07, 2010 4:09 pm

1) Can you boot with the latest SystemRescueCd-1.4.1-beta and show me the output of "fsarchiver probe" to see why it's not detected. If it does not work, please get the list of loaded modules under fedora (lsmod)

2) You should not use "/dev/dm-3" directly since that name can change. It's just the third device managed by the device mapper it may be different from what it is on fedora. You should use /dev/mapper/isw_bffjcadhhj_ARRAYp5 instead.

3) In savefs the first argument is the file where to write data and all the other arguments are block devices such as /dev/something. Not a mounted directory like "/media/Fedora"

4) Have you created the directory called /media/System/IMG ?

5) Can you do that: "touch /media/System/IMG/img.test && echo successful || echo failed "

6) You can run fsarchiver with "-vv" to have more details about the problem.

tanwald
Posts: 5
Joined: Sun Mar 07, 2010 2:21 pm

Re: oper_save.c#1129: /folder is not a valid block device

Post by tanwald » Sun Mar 07, 2010 9:11 pm

Once again the phrase "If you are in a hurry work slowly" proves to be right:

ad 1) With SystemRescueCd-1.4.1-beta the output of "fsarchiver probe detailed" was correct. Same output with Fedora live & installed.

ad 2,3) I wrote the arguments in a wrong order. Obviously took it for granted, that the options follow the savefs command, and the I was searching for the mistake everywhere but in the syntax. By the way, why comes the target first? "Normally" it's the other way round. With the command

Code: Select all

fsarchiver -e Videos,Music savefs /mnt/backup/IMG/fedora.fsa /dev/mapper/isw_bffjcadhhj_ARRAY5 -vv
everything worked like a charm...wonderful.

ad 4,5) Yes, I've created the directory on my usb-disk and yes, the directory was writeable if you wanted to find that out.

ad 6) No more problems, thanks a lot!

Although, maybe you can help me to explain the following: When i run "fsarchiver probe detailed" nn my installed version of Fedora I get:

Code: Select all

[======DISK======] [=============NAME==============] [====SIZE====] [MAJ] [MIN]
[sda             ] [FUJITSU MHZ2160B               ] [   149.05 GB] [  8] [  0]
[sdb             ] [ST9160411ASG                   ] [   149.05 GB] [  8] [ 16]
[sdc             ] [1600BEVExternal                ] [   149.05 GB] [  8] [ 32]

[=====DEVICE=====] [==FILESYS==] [======LABEL======] [====SIZE====] [MAJ] [MIN] [==============LONGNAME==============] [=================UUID=================] 
[sdc1            ] [ntfs       ] [WD Passport      ] [   149.05 GB] [  8] [ 33] [/dev/sdc1                           ] [160823EB0823C897                      ] 
[dm-0            ] [<unknown>  ] [<unknown>        ] [   298.10 GB] [253] [  0] [/dev/mapper/isw_bffjcadhhj_ARRAY    ] [<unknown>                             ] 
[dm-1            ] [ntfs       ] [System           ] [   249.27 GB] [253] [  1] [/dev/mapper/isw_bffjcadhhj_ARRAYp1  ] [587C90A67C908104                      ] 
[dm-2            ] [ext4       ] [Fedora-12-i686-L ] [    44.91 GB] [253] [  2] [/dev/mapper/isw_bffjcadhhj_ARRAYp5  ] [47e22a62-43d6-43e0-a472-b786cc261664  ] 
[dm-3            ] [swap       ] [Swap             ] [     3.91 GB] [253] [  3] [/dev/mapper/isw_bffjcadhhj_ARRAYp6  ] [c61e6d8e-01fd-431d-9f04-b32007328b8f  ]
With parted I get:

Code: Select all

(parted) print all                                                        
Error: Can't have a partition outside the disk! 
When i start gparted:

Code: Select all

sudo gparted
[sudo] password for tanwald: 
======================
libparted : 1.9.0
======================
Could not stat device /dev/md/ARRAY - No such file or directory.
Could not stat device /dev/md/ARRAY - No such file or directory.
Can't have a partition outside the disk!
/dev/sdb: unrecognised disk label
The kernel was unable to re-read the partition table on /dev/sdc (Device or resource busy).  This means Linux won't know anything about the modifications you made until you reboot.  You should reboot your computer before doing anything with /dev/sdc.
The kernel was unable to re-read the partition table on /dev/sdc (Device or resource busy).  This means Linux won't know anything about the modifications you made until you reboot.  You should reboot your computer before doing anything with /dev/sdc.
Do you see something strange here:

Code: Select all

sudo fdisk -l /dev/dm-0

Disk /dev/dm-0: 320.1 GB, 320078872576 bytes
255 heads, 63 sectors/track, 38914 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xa42d04a3

     Device Boot      Start         End      Blocks   Id  System
/dev/dm-0p1               1       32540   261377518+   7  HPFS/NTFS
/dev/dm-0p2           32541       38913    51191122+   f  W95 Ext'd (LBA)
/dev/dm-0p5   *       32541       38403    47094516   83  Linux
/dev/dm-0p6           38404       38913     4096543+  82  Linux swap / Solaris
Something's wrong, isn't it?

admin
Site Admin
Posts: 550
Joined: Sat Feb 21, 2004 12:12 pm

Re: oper_save.c#1129: /folder is not a valid block device

Post by admin » Sun Mar 07, 2010 10:06 pm

I don't see anything wrong on this partition table, but it would be easier to read it in MB unit.

"The kernel was unable to re-read the partition": it's a known problem, the workaround is in parted-2.2 or a patched version of parted-2.1, just use GParted from SystemRescueCd-1.4.0 or newer it's patched.

Post Reply