Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: meka on June 02, 2014, 08:39:47 AM

Title: booting Tinycore won't use "onboot.lst"
Post by: meka on June 02, 2014, 08:39:47 AM
For some reason my TinyCore 4.7.1 installation won't load anything specified in "onboot.lst".

The "extlinux.conf" contains: "opt=sda1 home=sda1 restore=sda1/tce lst=onboot.lst"

I had to add "restore=sda1/tce" because otherwise it wouldn't extract my "mydata.tgz" as well, I tried to add multiple similar prefixes to the boot code but without success (for example lst=sda1/tce/onboot.lst). From where is TinyCore trying to load my onboot.lst from or may I have accidentally disabled it?

Thank you!
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: gerald_clark on June 02, 2014, 08:50:53 AM
Is this a USB drive? If so you forgot the waitusb=5 boot code.
You don't need restore= or lst= bootcodes.
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: meka on June 02, 2014, 09:25:49 AM
No it is not an USB device but an internal SSD. But it contains the waitusb=5 part... although it might not need it.

Thanks!
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: gerald_clark on June 02, 2014, 09:54:52 AM
So, is it working now?
If not, show us the output of "showbootcodes" and "fdisk -l".
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: meka on June 03, 2014, 10:42:51 AM
No. Not working.

showbootcodes:
Code: [Select]
initrd=/tce/boot/core.gz quiet text waitusb=5:UUID="31352b24-b978-4474-b965-32b2f0805b13" tce=UUID="31352b24-b978-4474-b965-32b2f0805b13" opt=sda1 home=sda1 restore=sda1/tce lst=onboot.lst BOOT_IMAGE=/tce/boot/vmlinuz
And I tried lst=tce/onboot.lst or lst=sda1/tce/onboot.lst ...without any difference.

fisk -l:
Code: [Select]
Disk /dev/sda: 32.0 GB, 32044482560 bytes
255 heads, 63 sectors/track, 3895 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1   *           1        3895    31286556  83 Linux
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: gerald_clark on June 03, 2014, 11:57:41 AM
Get rid of the restore= and lst= boot options.
Show the output of "blkid /dev/sda*".
Show the output of "ls -l /etc/sysconfig/tcedir".
Show the output of "cat /etc/sysconfig/tcedir/onboot.lst".
Show the output of "ls /usr/local/tce.installed".
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: meka on June 04, 2014, 03:52:52 AM
Without the restore= it wouldn't extract the "mydata.tar.gz" ... I put it there to get it working. And also the lst part... it didn't work without it so I tried adding it.

Just a second on the other outputs...
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: meka on June 04, 2014, 04:02:04 AM
Ok... a number of problems:

Title: Re: booting Tinycore won't use "onboot.lst"
Post by: meka on June 04, 2014, 04:27:33 AM
Thank you! After changing the UUID at tce the system boots up as expected!

I also removed the waitusb restore and lst part.

Is it possible to change the tce UUID string at extlinux.conf from console to the UUID of a particular device? Possible after restore a backup to a new disk?


Title: Re: booting Tinycore won't use "onboot.lst"
Post by: bmarkus on June 04, 2014, 04:40:19 AM
Is it possible to change the tce UUID string at extlinux.conf from console to the UUID of a particular device? Possible after restore a backup to a new disk?

You do not need UUID at all in a properly configured system. You can forget it.
Title: Re: booting Tinycore won't use "onboot.lst"
Post by: curaga on June 04, 2014, 04:50:55 AM
I recommend you use labels instead of uuids if you need to restore to newly formatted partitions.