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

On 06/02/2019 19:39, Big Bad Bob wrote:
> 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.
>

I just use LABELs to make sure thing are mounted (automatically) where I
want them (except on mmcblk0p1). Then bind mount to various other
directories. Also sshfs mount to "other" computers.

>
> 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?
>
>



--

Chris Elvidge, England

--- 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™.