Tiny Core Base > TCB Q&A Forum

pretce and LVM won't work

(1/1)

sebelk:
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:


--- Code: ---menuentry TinyCore {
set root=(hd0,3)
linux /tce/boot/vmlinuz max_loop=256 pretce=sda3/pre tce=dm-2
initrd /tce/boot/core.gz
}
--- End code ---

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?


gerald_clark:
Make sure your pre/optional directory is properly populated.
See all the needed extensions in the "Depends" panel for lvm2 in AppBrowser.

sebelk:

--- Quote from: gerald_clark on April 03, 2012, 09:17:27 PM ---Make sure your pre/optional directory is properly populated.
See all the needed extensions in the "Depends" panel for lvm2 in AppBrowser.

--- End quote ---

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

gerald_clark:
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.

Navigation

[0] Message Index

Go to full version