Possible to install ALARM on two drives?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Possible to install ALARM on two drives?

Postby LavaChild » Wed Mar 28, 2012 1:50 pm

Hello!

I have a quick question which I hope you may be able to help with - Fingers crossed it is simple! :)

I would like to install ALARM on two drives and configure it such that it always boots up drive A, however if drive A is removed it will instead boot up drive B. Essentially, the logic behind this is that I'd like to have ALARM installed on a HDD for 'normal' use. I would then like to have a second ALARM installation installed on a flash drive. Should the hard drive fail, or be removed for some reason (whilst powered down), the OS will boot from the flash drive (assume this will never be removed).

The reason I like this is idea is because such small [*] flash drives exist that it's possible to leave one in and forget it's even there, the same is not possible for the HDD.

So, could I for example install ALARM twice, one on /dev/sda and one on /dev/sdb and somehow configure the system to boot from /dev/sda. If /dev/sda is not present then, instead, boot from /dev/sdb. Is this possible? Could you give me instruction on how to do this?

Thank you!

[*] http://www.sandisk.co.uk/products/usb-f ... lash-drive
LavaChild
 
Posts: 46
Joined: Wed Mar 21, 2012 12:39 pm

Re: Possible to install ALARM on two drives?

Postby hydro » Wed Mar 28, 2012 7:25 pm

Shouldn't be a problem. uboot checks attached storage devices one after the other, and the first that contains /boot/uImage in its first partition on a filesystem that is supported by uboot, will be booted. You just have to place the flash drive into an USB slot that is checked after the one(s) you use for the HDD.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Possible to install ALARM on two drives?

Postby LavaChild » Wed Mar 28, 2012 10:35 pm

Thanks for the help :) I'll be sure to give it a go!
LavaChild
 
Posts: 46
Joined: Wed Mar 21, 2012 12:39 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests