Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: bigpcman on May 12, 2010, 07:59:32 PM

Title: How does this work again - "waitusb=30:LABEL=tinycore"
Post by: bigpcman on May 12, 2010, 07:59:32 PM
As of tc2.11 we have the following:

Quote
* Updated tc-config waitusb added optional LABEL/UID, e.g. waitusb=30:LABEL=tinycore

Please remind me how this works.

I read thread  http://forum.tinycorelinux.net/index.php?topic=5584.msg29883#msg29883 (http://forum.tinycorelinux.net/index.php?topic=5584.msg29883#msg29883) but I don't get how LABEL=tinycore relates to a "blkid" . Does this example simply look for the tc file system to be mounted? Is the label the name of the usb partition?
Title: Re: How does this work again - "waitusb=30:LABEL=tinycore"
Post by: jur on May 13, 2010, 12:43:39 AM
I just tried this option.

I named the usb stick label 'tinycore' (which because of VFAT turned out to be 'TINYCORE'), changed the boot code and observed it booted in about 4s. I stuck a 20s timeout in there and it used up 4s before the usb stick was recognized.
Title: Re: How does this work again - "waitusb=30:LABEL=tinycore"
Post by: roberts on May 13, 2010, 02:24:57 AM
The FAQ ( http://www.tinycorelinux.com/faq.html#pendrives ) explains how to write a label to a device.
Title: Re: How does this work again - "waitusb=30:LABEL=tinycore"
Post by: curaga on May 13, 2010, 05:18:21 AM
It polls for any block device with that label, exits immediately if found. If not, it waits the specified timeout.