You are not logged in.
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
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
Was wrong
Last edited by wudu (2011-02-12 19:09:11)
Offline
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