From: no.top.post on 4 May 2010 05:04 No not chroot. I've got a hdd[A] which is set up to run: root = /hda2 & /usr = hda9 and another hdd[B] set to run root = hda6. Since they are both set-up to run as hdaX, I have to unplug to swap and boot the other. I'd like to just have a script which renames the few files which will allow me to run hdd[A] as root = /hdb2 & /usr = hdb9: like mv <set of files> <set of filesA2B>. And of course I'll have a 'matching' script to restore the 'original' files. So which are the files ? /etc/fstab, /etc/mtab and what else ? == TIA. PS. hdd[B] is kernel 2.4 and boots from fd0 & hdd[A] is kernel 2.6 and boot from its grub, so AFAICS I'd have to leave hdd[A] and 'move' hdd[B] since I don't want to have to mess with grub, but it's easy to manually enter the 'root-arg' for the fd0 booter -- which I already do at present. PSS. I guess it is possible to run the hdd[B] [kernel 2.4] from the hdd[A]'s grub ? And then what about booting the hdd[B] via the 2.6 kernel's zlinuz & initrd ?
From: Anton Ertl on 4 May 2010 06:56 no.top.post(a)gmail.com writes: >No not chroot. > >I've got a hdd[A] which is set up to run: root = /hda2 & /usr = hda9 >and another hdd[B] set to run root = hda6. > >Since they are both set-up to run as hdaX, I have to unplug to swap and boot the >other. >I'd like to just have a script which renames the few files which will > allow me to run hdd[A] as root = /hdb2 & /usr = hdb9: >like mv <set of files> <set of filesA2B>. > >And of course I'll have a 'matching' script to restore the 'original' files. Why would you need to rename and restore files. You have two /etc/fstab files, one on each root. You just set up the /etc/fstab on each root to be correct for the system. The other thing you need to do is to configure the boot loader to have options for two different roots. >PS. hdd[B] is kernel 2.4 and boots from fd0 & > hdd[A] is kernel 2.6 and boot from its grub, > so AFAICS I'd have to leave hdd[A] and 'move' hdd[B] since > I don't want to have to mess with grub, but it's easy to > manually enter the 'root-arg' for the fd0 booter -- which I > already do at present. Ok, that's even easier, although it's pretty easy to set up grub to boot two different kernels with different roots, too. >PSS. I guess it is possible to run the hdd[B] [kernel 2.4] from >the hdd[A]'s grub ? Usually yes. - anton -- M. Anton Ertl Some things have to be seen to be believed anton(a)mips.complang.tuwien.ac.at Most things have to be believed to be seen http://www.complang.tuwien.ac.at/anton/home.html
|
Pages: 1 Prev: ftp server with macros Next: Movado Classic Automatic Unisex Watch 0605224 |