WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Can I blacklist a drive so it won't show up in fstab on boot? piCore 17  (Read 43 times)

Offline MrPorcine

  • Jr. Member
  • **
  • Posts: 65
I have a large USB drive attached when piCore 17 boots. It eventually shows up as /dev/sda1. This is a fresh install of piCore64-17.0 on a Pi4. What happens during boot if I have the USB drive attached is as follows:
--I get the command prompt quickly
--several seconds later I see what looks like a the output of ls on /sys/devices/platform/scb. It's a lot of lines, I can't see where it starts as it's scrolled off the screen.
--Only after this finishes do I see sda1 added to fstab.

This is part of a picture frame. Normally I start X and feh as the last line in bootlocal.sh. The timing during boot appears to be: 1)command prompt, 2)whatever in the boot process that produces the file tree dump on the terminal, and finally 3) the last line in bootlocal.sh is run. It's about 6 seconds between 1) and 3).

If I don't have the drive attached during boot, all is well. If I then attach it, all works as it's supposed to. No extra stuff on the terminal.

Any ideas on what is going on?

Just to be clear, X and feh work perfectly once the USB drive is recognized by the kernel.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15916
You could use the waitusb boot code to delay things until the drive is recognized.

Offline MrPorcine

  • Jr. Member
  • **
  • Posts: 65
You could use the waitusb boot code to delay things until the drive is recognized.
YES, this works. waitusb=2 at the end of the command line works great. Thanks!