Koozali.org: home of the SME Server

[RESOLVED] fstab messed up...

Offline jester

  • *
  • 496
  • +1/-0
[RESOLVED] fstab messed up...
« on: January 23, 2007, 02:28:41 PM »
Hi,

I've messed up my system by trying to custom-template the fstab file... my own fault, i should have read the warnings... no time to do things can be a b*tch  ;)

I've got two IDE drives in this system mirrored by SME (software raid). I've now got this system running with the following in my grub.conf for mounting root and swap:

Code: [Select]
#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/mapper/main-root   /                       ext3    usrquota,grpquota  1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/mapper/main-swap   swap                    swap    defaults        0 0
/dev/hdc                /media/cdrom           auto    pamconsole,exec,noauto,managed 0 0




Can someone tell me if i'm allowed to use these /dev/mapper/main-.... devices in grub. I've got no idea what grub.conf looked like before i destroyed it.

Any help is greatly appreciated,
jester.

boss_hog

[RESOLVED] fstab messed up...
« Reply #1 on: January 23, 2007, 03:00:31 PM »
Hey jester,
My system is 2 hdd IDE raid, but without a cd drive. If it will help for comparing, here is my fstab:

Code: [Select]



#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root       /                       ext3    usrquota,grpquota        1 1
/dev/md1             /boot                   ext3    defaults        1 2
none                  /dev/pts                devpts  gid=5,mode=620  0 0
none                 /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap    swap                    swap    defaults        0 0



And here is my grub.conf:

Code: [Select]



# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/main/root
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-42.0.3.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.EL ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-42.0.3.EL.img
title CentOS (2.6.9-42.0.3.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.3.ELsmp ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-42.0.3.ELsmp.img
title CentOS (2.6.9-42.0.2.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.2.ELsmp ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-42.0.2.ELsmp.img
title CentOS (2.6.9-42.0.2.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-42.0.2.EL ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-42.0.2.EL.img
title SME Server (2.6.9-34.ELsmp)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.ELsmp ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-34.ELsmp.img
title SME Server-up (2.6.9-34.EL)
        root (hd0,0)
        kernel /vmlinuz-2.6.9-34.EL ro root=/dev/main/root ide0=ata66 ide1=ata66
        initrd /initrd-2.6.9-34.EL.img



***Take note that I added the ide0=ata66 and ide1=ata66 to my grub.conf manually.***
Good luck.
Joe

Offline jester

  • *
  • 496
  • +1/-0
[RESOLVED] fstab messed up...
« Reply #2 on: January 26, 2007, 09:24:08 AM »
Thanks Boss_hog !!

My solution worked but i'd rather use the proper (standard sme) settings for fstab.... the ones you posted.


Kind regards,
jester.