Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: sebelk on April 03, 2012, 10:00:15 PM
-
Hi,
I'm using TCE 4.4 Core Plus, I've tried to use a backup restore on a logical volume.
I've followed the documentation at http://wiki.tinycorelinux.net/wiki:pretce
Sadly it doesn't work
I've configured grub2 as follows:
menuentry TinyCore {
set root=(hd0,3)
linux /tce/boot/vmlinuz max_loop=256 pretce=sda3/pre tce=dm-2
initrd /tce/boot/core.gz
}
More data:
[root@pc sergio]# ls /boot/tce/
boot mydata.tgz onboot.lst ondemand optional xwbar.lst
[root@pc sergio]# cat /boot/pre/onboot.lst
lvm2.tcz
lvm2-boot.tcz
mount | grep sda3
/dev/sda3 on /boot type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)
Please could you tell me what I am doing wrong?
-
Make sure your pre/optional directory is properly populated.
See all the needed extensions in the "Depends" panel for lvm2 in AppBrowser.
-
[suspicious][/suspicious]
Make sure your pre/optional directory is properly populated.
See all the needed extensions in the "Depends" panel for lvm2 in AppBrowser.
Thanks Finally I've got it.
I've populated the pre/optional directory as you suggested:
libdevmapper.tcz ncurses.tcz
liblvm2.tcz raid-dm-3.0.21-tinycore.tcz
lvm2-boot.tcz readline.tcz
lvm2.tcz udev-lib.tcz
ncurses-common.tcz
Also, I've added the list to pre/onboot.lst
readline.tcz
ncurses-common.tcz
ncurses.tcz
udev-lib.tcz
libdevmapper.tcz
raid-dm-3.0.21-tinycore.tcz
liblvm2.tcz
lvm2.tcz
lvm2-boot.tcz
I've found that order is important, isn't it?
And I replaced tce=dm-2 with tce=dm-0
For some reason Fedora and tinycore see that volume on different device
HTH
-
They are dependencies. You do not need to add them to the onboot.lst.
You do need the .dep files in pre/optional, though.
I suspect you did not do the following part of the instructions:
Boot with the options: tce=sda1/pre.
Run tce-load -iw lvm2.
That would have loaded the extensions and dep files for you.