From: Henry N. <Henry.Ne@Arcor.de> - 2005-04-06 16:28:59
|
George P Boutwell wrote: > On Apr 5, 2005 4:15 PM, Henry Nestler <Hen...@ar...> wrote: > >>This I do before "fsck" and "mount -a" does the job with fstab. >>/etc/fstab is a link to /etc/fstab.colinux or /etc/fstab.reallinux >>The trick is the remount Read Write, link the correct fstab and remount >>Read Only before fsck does any jobs. >> >># Switch between coLinux and real linux >>if uname -r | grep -e "-co-" >/dev/null >>then >> echo " ### SWITCH to colinux" >> mount -n -o remount,rw / >> ln -sf /etc/fstab.colinux /etc/fstab >> mount -n -o remount,ro / >>else >> echo " ### SWITCH to reallinux" >> mount -n -o remount,rw / >> ln -sf /etc/fstab.reallinux /etc/fstab >> mount -n -o remount,ro / >>fi > > > Right, but the point of adding device aliasing was to avoid having to > do the above for /etc/fstab. Other scripts may need to check if > coLinux and do things differently under coLinux than real/native, but > fstab should be able to remain the same if you use device aliasing. > No, can't not the same. Under coLinux is /dev/cofs0 and in native linux is /dev/hda2, in my case. In coLinux I mount and check not all drives, a native do many more. This should be a good sample for all other files in a dual boot. -- Henry Nestler |