WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: pretce and LVM won't work  (Read 3038 times)

Offline sebelk

  • Newbie
  • *
  • Posts: 8
pretce and LVM won't work
« 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:

Code: [Select]
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?



Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: pretce and LVM won't work
« Reply #1 on: April 04, 2012, 01:17:27 AM »
Make sure your pre/optional directory is properly populated.
See all the needed extensions in the "Depends" panel for lvm2 in AppBrowser.

Offline sebelk

  • Newbie
  • *
  • Posts: 8
Re: pretce and LVM won't work (SOLVED)
« Reply #2 on: April 04, 2012, 05:39:09 AM »
[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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: pretce and LVM won't work
« Reply #3 on: April 04, 2012, 10:05:52 AM »
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.
« Last Edit: April 04, 2012, 10:13:47 AM by gerald_clark »