You are not logged in.

#1 2011-02-12 18:43:20

suicideducky
Member
From: New Zealand
Registered: 2007-09-13
Posts: 57
Website

Sharing boot partition with multiple installations [SOLVED]

Hey all, so I am currently sharing my boot partition with a few different instances of distros.
my boot is /dev/sdc1 and it contains the following
arch32/
arch64/
lfs32/

and my grub has entries that allow me to boot, however my fstab is mounting /dev/sdc1 as /boot which means with every kernel upgrade my new kernel gets put into /boot and I have to remember to move it out otherwise all hell breaks loose next time I boot.

I was thinking I could have a script somewhere that did something to the effect of
umount /boot
mount /dev/sdc1 /rboot
ln -s /rboot/arch64 /boot

But that seems to create a link called /boot/arch64 which is not what I desire, also where would one place this script so that it ran? I was thinking of .bashrc but it needs root permissions so I was wondering if there is a nice place to stash it.


Thanks again guys,
~Chris

Last edited by suicideducky (2011-02-12 19:09:34)

Offline

#2 2011-02-12 19:00:15

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Sharing boot partition with multiple installations [SOLVED]

mount --bind

in fstab do bind as a mount option and none as fs type

see man mount and man fstab for details


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2011-02-12 19:07:27

wudu
Member
Registered: 2010-03-08
Posts: 83

Re: Sharing boot partition with multiple installations [SOLVED]

Was wrong

Last edited by wudu (2011-02-12 19:09:11)

Offline

#4 2011-02-12 19:11:38

suicideducky
Member
From: New Zealand
Registered: 2007-09-13
Posts: 57
Website

Re: Sharing boot partition with multiple installations [SOLVED]

Worked like a charm, added this to my fstab
/dev/sdc1 /rboot ext2 default 0 1
/rboot/arch64 /boot none defaults,bind 0 0

I like it being in fstab as it seems much tidier than my solution would have.

Thanks for the suggestion wudu, sadly I have been a little lazy in learning how the arch boot process works (in terms of the rc. files other than .conf) *runs of to wiki to find out now*

Offline

Board footer

Powered by FluxBB