Tiny Core Extensions > TCE Q&A Forum

How to install/setup the Grub2 bootloader on CorePlus ??

<< < (2/2)

coreplayer2:

--- Quote from: Josepha on October 08, 2018, 05:50:03 AM ---Question 2: I noticed in example above the location of usb flash drive is hardcoded as hd0.1 in grub.cfg. Is grub file location persistent for removable usb/devices ? Is it possible the hd0.1 location may vary depending on which usb port and order usb devices are inserted at computer ? (My concern is that my TCL/usb flash drive may not work in other computers if hardcoding location of files).

--- End quote ---


I think we answered these questions at you're other thread..
http://forum.tinycorelinux.net/index.php/topic,22277.msg139447.html#msg139447

And where do you see a USB drive ID hard coded as hd0.1 ?? 

search --no-floppy --fs-uuid --set=root 196fcfb2-bd37-495d-b855-41f08201be7d
Will set this drive as root (1st drive)

waitusb=5:UUID="196fcfb2-bd37-495d-b855-41f08201be7d"
Will pause the boot process until this specified drive has initiated

tce=UUID="196fcfb2-bd37-495d-b855-41f08201be7d"/tc8-x86
This bootcode informs TC where to find the tce/extensions required by this boot.cfg entry.    In this case i changed the name "tce" to "tc8-x86", so this needs to be specified, otherwise not.

scuz:
i like persistance
mount -o loop iso_path i use /iso/CorePlus-16.1.iso on 1st parition  /mnt/folder name i use /mnt/x
mnt/x will be read only copy it to i use /mnt/boot then i rname x in /boot to coreplus
rename the cde folder to tce in the i use /boot/coreplus


--- Code: ---menuentry "coreplus iso cde>tce  " {
   load_video
   insmod lvm
   insmod gzio
   insmod part_msdos
   insmod ext2
   insmod part_gpt
   set root='hd0,msdos1'
#  search --no-floppy --label A1EXT2 --set=root
    echo 'setting up isofile ...'
    set iso_path="/iso/CorePlus-16.1.iso"
#  search --set=root --file $iso_path
    echo 'setting up loopback'
    loopback loop (hd0,msdos1)/${iso_path}
    echo 'booting vmlinuz ...'
    linux (loop)/boot/vmlinuz iso=/mnt/sda1/${iso_path} loglevel=3 waitusb=5  showapps desktop=icewm  tce=sda1/boot/coreplus/tce noutc
    echo 'initrd ...'
    initrd (loop)/boot/core.gz
}
menuentry "coreplus iso syslinux memdisk cd>tce tab edit boot options  loglevel=3 waitusb=5  showapps desktop=icewm  tce=sda1/boot/coreplus/tce  " {
   load_video
   insmod lvm
   insmod gzio
  insmod part_gpt
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
#  search --no-floppy --label A1EXT2 --set=root
    echo 'setting up isofile ...'
    set iso_path="/img/CorePlus-16.1.iso"
#  search --set=root --file $iso_path
#    echo 'setting up loopback'
#    loopback loop (hd0,msdos1)/${iso_path}
    echo 'booting vmlinuz ...'
    linux16 /img/memdisk raw
    echo 'initrd ...'
    initrd16 /img/CorePlus-16-1.iso

}
--- End code ---

you can use the set root or search lines (that i # have disabled)
i keep my CorePluse-16.1.iso on first partion in /iso folder
i use both insod part_msdos & insmod part_gpt 

Rich:
Hi scuz

Please use  Code Tags  when posting commands and responses seen in a terminal. To use  Code Tags  click on the  #  icon
above the reply box and paste your text between the  Code Tags  as shown in this example:


--- Quote ---[code][   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517[/code]
--- End quote ---

It will appear like this in your post:

--- Code: ---[   36.176529] pcm512x 1-004d: Failed to get supply 'AVDD': -517
[   36.176536] pcm512x 1-004d: Failed to get supplies: -517
[   36.191753] pcm512x 1-004d: Failed to get supply 'AVDD': -517
--- End code ---

Code Tags  serve as visual markers between what you are trying to say and the information you are posting. They also preserve
spacing so column aligned data displays properly. Code tags also automatically add horizontal and or vertical scrollbars
to accommodate long lines and listings.

scuz:
non iso boot


--- Code: ---menuentry "coreplus sda1 cde>tce" {
    load_video
    insmod gzio
insmod part_msdos
        insmod part_gpt
insmod lvm
insmod ext2
set root='hd0,msdos1'
 #  search --no-floppy --label A1EXT2  --set=root
    echo 'booting vmlinuz ...'
    linux /boot/coreplus/boot/vmlinuz iso=/mnt/sda1/${iso_path} loglevel=3 waitusb=5  showapps desktop=icewm  tce=sda1/boot/coreplus/tce
    echo 'initrd ...'
    initrd /boot/coreplus/boot/core.gz

--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version