WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How does this work again - "waitusb=30:LABEL=tinycore"  (Read 2360 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
How does this work again - "waitusb=30:LABEL=tinycore"
« 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 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?
« Last Edit: May 12, 2010, 08:05:17 PM by bigpcman »
big pc man

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: How does this work again - "waitusb=30:LABEL=tinycore"
« Reply #1 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.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: How does this work again - "waitusb=30:LABEL=tinycore"
« Reply #2 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.
10+ Years Contributing to Linux Open Source Projects.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11039
Re: How does this work again - "waitusb=30:LABEL=tinycore"
« Reply #3 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.
The only barriers that can stop you are the ones you create yourself.