TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: CHRIS ELVIDGE
from: BIG BAD BOB
date: 2019-02-06 11:39:00
subject: Re: Pi boot from SSD or H

On 01/18/19 15:15, Chris Elvidge wrote:
> 120GB SSD for System and Music (boot on SD card); I do a lot of
> temporary files.
> 5TB HDD for media (TV/Radio downloads, TV/Radio recording) files, with a
> 50GB partition for backup.

out of curiosity, what OS is on your /boot SD card?

(please don't say windows, please don't say windows...)

Assuming Linux, you could simply use the 2nd hard drive as a mount point
and access it like part of the normal file system, whenever it's
present.  You don't need to boot FROM it in order to use it.  Just set
things up so whenever you hotplug it, the thing mounts to the correct
place, and all of your applications know where that is.


If you want to go against "what THEY say are the defaults" you might
have to shut off auto-mounting, and then write a daemon to look for the
drive being attached.  when it's attached, using the gpt ID to match
against your list, then issue a 'mount' command.  pretty simple, 5
second polling would probably do it.

But if it's being auto-mounted you'd have to shut that off, yeah.  I
shut off auto-mount anyway.  I can type the 'sudo mount' command myself...

and if you put an entry into /etc/fstab you can just specify the mount
point, like 'mount /media/my-mount-point' or whatever.  A few caveats,
but basically make sure the device name matches whenever you plug
something into a USB port.  Typically it will.  Or, you can just 'mount
/dev/whatever /media/my-mount-point' with your daemon script.  Simple.

Then whenever you plug the removable media in, it will mount.  You could
also force a dismount with a separate script.  Your first script would
have to recognize that it mounted the device, and not try to re-mount it
after you unmount it.  A little tricky, not too hard.  Just wait until
it's unplugged before trying to re-mount.

Anyway, it'd be a fun little test project, wouldn't it?


--
(aka 'Bombastic Bob' in case you wondered)

'Feeling with my fingers, and thinking with my brain' - me

'your story is so touching, but it sounds just like a lie'
"Straighten up and fly right"

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.