Had to do so when adding for a short while a 2nd drive so I can copy over directories. The drive was on another USB port.
Then disconnected and rebooted.
The 2nd drive does not have a valid boot but assuming thaat has nothing to do with it.
Vince
Didn't find your answer? Ask the community — no account required.
C
Chris Elvidge
Hi all.
Has anyone managed to get their Pi to boot directly from USB attached SSD or HDD with (importantly) two (or more) devices attached?
I still use an SD card for the /boot partition to differentiate between USB attached devices.
Chris Elvidge, England
N
NoReply
I don't have an answer for you, but this sounds interesting, can you please explain why you want this feature, what's the advantage?
TIA, NoReply
Don't be afraid of the deep... __BBS__
--= bbs.bottomlessabyss.net|https|telnet=2023|ssh=2222
N
Newdo
Am 18.01.2019 um 14:54 schrieb NoReply:
Probably the aim for a defined boot sequence in case of multiple (bootable?) SSDs/HDDs ?
- Udo
C
Chris Elvidge
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.
Chris Elvidge, England
M
Martin Gregorie
Thats a smaller backup partition that I'd expect. What are you backing up: just /home, and how many backup copies?
You do realise, of course, that a permanently online backup scheme like that is fairly unsafe because lots of scenarios can kill it along with the rest of the system. A better plot would be to backup over an ethernet connection to removable storage on a separate system, keeping the backup offline when not actually being accessed, and preferably having at least tow generations of backup devices.
I've just bought a pair of 1TB WD Essentials USB drives. Yes, I know, I should have bought them separately so they come from separate production batches. So far they're looking good - quite a bit faster than the 320GB
2.5" WD Blue drives they replace and that will be too small fairly soon. I make offline weekly backups of four systems (3 x 64 bit Fedora, 1 x RPi model B) using rsync to put all four backups on the same disk. Both backup disks are in a fire safe when not being used, so there is always one backup copy in the fire safe.
Paranoid? You bet, when backups are involved.
Martin | martin at
Gregorie | gregorie dot org
C
Chris Elvidge
I do, but didn't think it was relevant to the question "NoReply" asked.
Chris Elvidge, England
B
Big Bad Bob
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"
C
Chris Elvidge
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.
Chris Elvidge, England
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.