Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

wiki:pretce [2011/10/26 21:56]
gerald_clark [Putting tce on an existing RAID or LVM]
wiki:pretce [2013/12/10 08:20] (current)
gerald_clark [Create lvm2-boot.tcz]
Line 18: Line 18:
   * Reboot.   * Reboot.
  
-==== Create mdadm-boot.tcz ====+==== Create mdadm-boot.tcz ==== 
 +Starting with dCore and Core 5.1 mdadm-boot.sce is no longer needed. 
 +Instead, you can put the line **mdadm -A --scan ; sleep 2** into an executable shell script named **onpre.sh** in the pretce directory. 
 +The shell script **onpre.sh** is run after all the pretce packages are loaded. 
 We need an extension that activates the RAID volumes. The following script will create it. We need an extension that activates the RAID volumes. The following script will create it.
 <code> <code>
Line 42: Line 46:
   * Mv **mdadm-boot.tcz** to **/mnt/sda1/pre/optional/**.   * Mv **mdadm-boot.tcz** to **/mnt/sda1/pre/optional/**.
   * Add the line **mdadm-boot.tcz** to the end of **/mnt/sda1/pre/onboot.lst**.   * Add the line **mdadm-boot.tcz** to the end of **/mnt/sda1/pre/onboot.lst**.
 +  * If you do not want the pretce device to remain mounted, be sure to add the **copy2fs.flg** file to the pretce directory.
 +
 +==== Create lvm2-boot.tcz ====
 +Starting with dCore and core 5.1 lvm2-boot.sce is no longer needed.
 +Instead, you can put the line **vgchange -ay ; sleep 2** into an executable shell script named **onpre.sh** in the pretce directory.
 +The shell script **onpre.sh** is run after all the pretce packages are loaded.
  
-==== Create a lvm2-boot.tcz ==== 
 We need an extension that activates the lvm2 volumes. The following script will create it.  We need an extension that activates the lvm2 volumes. The following script will create it. 
 <code> <code>
Line 67: Line 76:
   * Mv **lvm2-boot.tcz** to **/mnt/sda1/pre/optional/**.   * Mv **lvm2-boot.tcz** to **/mnt/sda1/pre/optional/**.
   * Add the line **lvm2-boot.tcz** to the end of **/mnt/sda1/pre/onboot.lst**.   * Add the line **lvm2-boot.tcz** to the end of **/mnt/sda1/pre/onboot.lst**.
 +  * If you do not want the pretce device to remain mounted, be sure to add the **copy2fs.flg** file to the pretce directory.
 +
  
 ==== Boot Entry ==== ==== Boot Entry ====
Line 77: Line 88:
 For LVM,  add the boot options **pretce=sda1/pre tce=dm-0**. For LVM,  add the boot options **pretce=sda1/pre tce=dm-0**.
  
-Reboot and verify that /opt/.tce_dir contains /mnt/dm-0/tce or whatever is correct for your machine ).+Reboot and verify that /opt/.tce_dir contains **/mnt/md126/tce**, or **/mnt/dm-0/tce** , or whatever is correct for your machine.
Print/export