WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Thanks for the best Boot Code ever  (Read 17171 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Thanks for the best Boot Code ever
« on: October 19, 2012, 08:42:15 PM »
I have to say, thanks for this boot code 

waitusb=5:LABEL=TINYCORE

this, this above boot code has decreased my USB boot process tremendously, cut to a fraction of the previously used waitusb=5.   Another benefit of this boot code is seen when the Label has been corrupted (renamed etc) where a countdown will be presented, providing system feedback (beside the obvious accidental Label rename).

I know bmarkus is a heavy supporter of Labels, am sad to say I never gave enough respect to Labels before.  However all that has changed, now I understand the importance of Labels. 


Thanks again

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Thanks for the best Boot Code ever
« Reply #1 on: October 19, 2012, 10:44:58 PM »
waitusb=5:LABEL=TINYCORE

Impressive.  I wonder if other "mountable targets" like UUIDs are valid.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11573
Re: Thanks for the best Boot Code ever
« Reply #2 on: October 19, 2012, 10:53:56 PM »
Hi genec
Yes, you can replace  LABEL  with  UUID

Offline netnomad

  • Hero Member
  • *****
  • Posts: 1026
Re: Thanks for the best Boot Code ever
« Reply #3 on: October 20, 2012, 02:50:43 AM »
I have to say, thanks for this boot code 

waitusb=5:LABEL=TINYCORE
 

great contribution!
on my old 1,6ghz-one-core-notebook i could decrease the boot-time from 8,6s to 3,9s now.
that's a noticeable speed improvement.

thanks.
« Last Edit: October 20, 2012, 02:57:15 AM by netnomad »

aus9

  • Guest
Re: Thanks for the best Boot Code ever
« Reply #4 on: October 20, 2012, 07:37:37 PM »
hi

sorry but best boot code ever?
Not if you are filesystem is on normal hard drives, meaning not USB drives.

but I would say, that a candidate for most unique bootcode ever.....one that AFAIK no other Linux distro can offer.....is a bootcode that allows you to choose which sound device you have enabled at boot up.

As you can see this too is subjective because most people do not have 2 sound devices to choose from eh?

http://wiki.tinycorelinux.net/wiki:alsa_part2#choose_sound_devices_at_boot

and it goes without saying but will say it,

thanks for this bootcode as well.
« Last Edit: October 20, 2012, 07:39:08 PM by aus9 »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: Thanks for the best Boot Code ever
« Reply #5 on: October 20, 2012, 07:45:11 PM »
You can do this on other distros, too.
What if your 2 devices use the same driver?

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Thanks for the best Boot Code ever
« Reply #6 on: October 20, 2012, 07:50:20 PM »
OMG. A spinning hard drive?  That's archaic... 

But I'll give you that if you have a rare PC with two audio cards then that boot code might be a contender.. 
:)

aus9

  • Guest
Re: Thanks for the best Boot Code ever
« Reply #7 on: October 20, 2012, 08:48:55 PM »
Quote
What if your 2 devices use the same driver?

quite possible, true....but then you would probably be using a model=string to differentiate between them, I hope

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Thanks for the best Boot Code ever
« Reply #8 on: October 20, 2012, 09:03:45 PM »
Quote
I have to say, thanks for this boot code

waitusb=5:LABEL=TINYCORE
 

I use 30 seconds on my USB sticks -and- on my hard drives.  That way I can use an almost identical menu.lst (for grub4dos) on whatever I boot from.

The wait time is cancelled as soon as the device is recognized, so it doesn't cost me any time.  But if something is seriously fouled up, and the device never comes on line, 30 seconds gives me plenty of time to notice something is going on and take control of the situation.

FWIW, I rarely see it count down even one second before recognizing a USB stick and cancelling the wait time, though it wasn't always so.

And yeah, that's the coolest boot code ever because I can specify a subdirectory on the device:

Code: [Select]
waitusb=5:LABEL=cruzr0/boot/core4.6.2/tce
or
Code: [Select]
waitusb=5:LABEL=cruzr0/boot/core4.7rc3/tce

for two entirely separate distributions on the same usb stick.  -That- is cool!
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Thanks for the best Boot Code ever
« Reply #9 on: October 20, 2012, 09:06:40 PM »
Quote
OMG. A spinning hard drive?  That's archaic...

If you spin those old things too fast, all your bits will fly off the edges.  That's why there's more data on the outer tracks than the inner ones.  :)
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Thanks for the best Boot Code ever
« Reply #10 on: October 20, 2012, 09:21:16 PM »


but I would say, that a candidate for most unique bootcode ever.....one that AFAIK no other Linux distro can offer.....is a bootcode that allows you to choose which sound device you have enabled at boot up.

As you can see this too is subjective because most people do not have 2 sound devices to choose from eh?

http://wiki.tinycorelinux.net/wiki:alsa_part2#choose_sound_devices_at_boot



I think such a bootcode might be sound system specific, when core has no sound system in base and offers 2 different sound systems treated equally as extensions...
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: Thanks for the best Boot Code ever
« Reply #11 on: October 20, 2012, 09:25:49 PM »
LEE  that is cool too  ;D

Never occurred to me that you could combine the two,  I use a similar boot code to specify two separate versions of core via separate tce directories, am going to try your method thanks 

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Thanks for the best Boot Code ever
« Reply #12 on: October 20, 2012, 09:29:48 PM »
Lee, I think you are confusing waitusb= with tce=.

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: Thanks for the best Boot Code ever
« Reply #13 on: October 21, 2012, 12:42:08 AM »
Quote
Lee, I think you are confusing waitusb= with tce=.

You're right.  Looks like one of those "senior moments".  I can use that excuse now that I'm old enough that the AARP wants me.  :)
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11041
Re: Thanks for the best Boot Code ever
« Reply #14 on: October 21, 2012, 11:35:32 AM »
This highlights a lack in our docs, I believe :)

Core is not even close to being as complicated as many other distros, but it does have many nice tricks like that. If even experienced users like coreplayer2 find new old things, that to me says docs aren't up to snuff.

If only there was enough time ;) I've had this idea of writing a book on Core, fully current for one release, with chapters describing the internals, some on projects to use Core for, some focusing on boot time etc. I was thinking both the pdf and ascii sources would be freely available online, dead tree version available at some cost.

Sadly, at least 'til christmas uni is taking all of my time, weekends too.
The only barriers that can stop you are the ones you create yourself.