WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: howto avoid scanning/probing of hard disks on boot  (Read 2586 times)

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
howto avoid scanning/probing of hard disks on boot
« on: June 23, 2009, 10:32:04 AM »
hello,

I have tc2 on a USB flash key.
I'd like to use only this key and avoid scanning/probing any other storage device at boot time.
I tried to use 'nofstab' boot option but didn't succeed.
I'm using the UUID of the USBkey to limit the search.
Any hint please.

thank you

(and many other thanx for this promising distro ;) )
« Last Edit: June 23, 2009, 10:53:17 AM by frimical »

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: howto avoid scanning/probing of hard disks on boot
« Reply #1 on: June 23, 2009, 02:00:12 PM »
I suppose editing the udev rules could work.

Note: the nofstab option just prevents fstab from being created

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: howto avoid scanning/probing of hard disks on boot
« Reply #2 on: June 23, 2009, 02:30:18 PM »
I suppose editing the udev rules could work.
oops... can you help me with more hints please?

Note: the nofstab option just prevents fstab from being created
by the way, eventhough 'nofstab' is used, still the fstab file is created!!!
 

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: howto avoid scanning/probing of hard disks on boot
« Reply #3 on: June 23, 2009, 03:53:21 PM »
In TC, udev is in /etc/udev and the rules are in there inside the rules.d directory.

Quote
by the way, eventhough 'nofstab' is used, still the fstab file is created!!!
TC's udev rules might also make one - looks like a bug.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: howto avoid scanning/probing of hard disks on boot
« Reply #4 on: June 24, 2009, 01:08:58 PM »
A bug indeed. Thanks for reporting. I have nofstab supported in the next cut, which will be etiher 2.1rc3 or final
10+ Years Contributing to Linux Open Source Projects.

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: howto avoid scanning/probing of hard disks on boot
« Reply #5 on: June 24, 2009, 04:34:56 PM »
thank you for taking care of it.

I'm still lost about who's responsible of the probing/scanning of the storage devices at boot. Is the fstab's creation imply this, or the kernel will do it anyway, or the udev rules, or..? ( I didn't know much about udev rules writing/reading,  I've made a little research to understand more before coming back to you, I've come to notice that in the '/etc/.../98-tc.rules'  a rebuildfstab is done for add/remove actions on block devices - but full stop for me after this info!).

By the way, my question is related to another topic: 'howto make my unique flash key my working computer (using other computers as dummy hosts)?'  that's why I don't need to touch -at all- any other storage device on the hosts.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: howto avoid scanning/probing of hard disks on boot
« Reply #6 on: June 24, 2009, 04:52:44 PM »
Yes 98-tc-rules.

As for pendrives, you can use the new usbinstall script found in 2.1rc2, which will setup the pendrive using UUID so that you don't run into the issue of on one machine it is sda and on another machine it would be sdb. See FAQ http://www.tinycorelinux.com/faq.html#pendrives
10+ Years Contributing to Linux Open Source Projects.

Offline frimical

  • Jr. Member
  • **
  • Posts: 75
Re: howto avoid scanning/probing of hard disks on boot
« Reply #7 on: June 24, 2009, 04:59:43 PM »
thank you Roberts for your quick reply.

Actually, I only use UUID or LABEL when possible. This very useful indeed. Avoids unecessary searches.

So by using UUID coupled to 'nofstab' this will avoid -touching- any other hardisk on the machine?