Results 1 to 2 of 2
I have an external hard drive mounted to /bkroot, here's the line from fstab:
Code:
/dev/sda1 /media/usbdisk ext3 pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
I mount like this:
Code:
# mount /dev/sda1 /bkroot
...
- 03-21-2007 #1Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
restore error: "not found on tape"
I have an external hard drive mounted to /bkroot, here's the line from fstab:
I mount like this:Code:/dev/sda1 /media/usbdisk ext3 pamconsole,exec,noauto,fscontext=system_u:object_r:removable_t,managed 0 0
I performed backup like this:Code:# mount /dev/sda1 /bkroot
When I try to restore, I can see all files inside the testHome.bk, but when I try to restore I get: <filename> not found on tape. Here's an example session:Code:/sbin/dump -0uz -A "/bkroot/bkups/testHome.toc" -L "testHome" -f "/bkroot/bkups/testHome.bk" /home
I've tried umounting the /home partitioning and then doing the dump, but still get the same results?? Any Ideas??Code:# restore if /bkroot/bkups/testHome.bk Dump tape is compressed. restore > ls .: myhome/ restore > add myhome restore > extract You have not read any volumes yet. Unless you know which volume your file(s) are on you should start with the last volume and work towards the first. Specify next volume # (none if no more volumes): none You have not read any volumes yet. Unless you know which volume your file(s) are on you should start with the last volume and work towards the first. Specify next volume # (none if no more volumes): none ./myhome/file1: (inode 426509) not found on tape ./myhome/file2: (inode 524289) not found on tape ./myhome/file3: (inode 524362) not found on tape set owner/mode for '.'? [yn] n
I don't think it matters, but I'm running 2.6.10-1.760_FC3.
- 03-22-2007 #2Just Joined!
- Join Date
- Feb 2007
- Posts
- 3
I figured it out. I should have read the man pages more carefully
I needed to use "1" instead of "none" when restore asks to "Specify next volume #".
So here's a successfull restore session:
From the dump man page:Code:# /sbin/restore if /bkroot/bkups/testHome.bk /sbin/restore > cd myhome/myfile /sbin/restore > add myfile /sbin/restore > extract You have not read any volumes yet. Unless you know which volume your file(s) are on you should start with the last volume and work towards the first. Specify next volume # (none if no more volumes): 1 Mount tape volume 1 Enter ``none'' if there are no more tapes otherwise enter tape name (default: /bkroot/bkups/testHome2.bk) resync restore, skipped 96 blocks set owner/mode for '.'? [yn] set owner/mode for '.'? [yn] n
From the restore man page:A dump that is larger than the output medium is broken into multiple volumes. On most media the size is determined by writing until an end-of-media indication is returned.
If a backup was made using more than one tape volume, restore will notify the user when it is time to mount the next volume. If the -x or -i flag has been specified, restore will also ask which volume the user wishes to mount. The fastest way to extract a few files is to start with the last volume, and work towards the first volume.


Reply With Quote