Koozali.org: home of the SME Server

Really confused on disk partitioning...

Offline jdanvers

  • ***
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
Really confused on disk partitioning...
« on: January 15, 2005, 12:10:48 AM »
Guys...

Building a new imaging server @work using current ver of sme sever (6.0.1).  We're going to use it to house ghost images.  Got it built and ran Greg's update script against it, sans the spamfilter, phpmyadmin, other neat toys - not really needed on this machine.  Anyway...  I'm looking at hanging a second disk as we are also planning on using this machine as our mp3 server (netjuke).  I'm getting quite confused by the following information that I'm seeing though when I'm go to install the 2nd drive.

Check this out:

[root@imaging etc]# cat fstab
#------------------------------------------------------------
# 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
#------------------------------------------------------------
LABEL=/                 /                       ext3    usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/hda2               swap                    swap    defaults        0 0

[root@imaging etc]# df -T
Filesystem    Type   1k-blocks      Used Available Use% Mounted on
/dev/hda3     ext3   115014344  51275300  57896608  47% /
/dev/hdc1     ext3      101089     14043     81827  15% /boot
none         tmpfs      127032         0    127032   0% /dev/shm

Why is /boot mounted at /dev/hdc1 ??  The box was built with just the one drive in it.  That drive is hda - master on the primary ide controller.  The 2nd drive is master on the 2nd controller - that should be hdc.

I was able to fdisk /dev/hdc and delete existing partitions, re-create a new partition and the write it out.  It was only when I went to create a filesystem on it (mkfs -t ext2 /dev/hdc1) that I realized that something strange was/is going on.  ( it wouldn't let me...  said that there was already a file system here... )

I'm slightly confused...  anyone?

Thanks...

-=- jd -=-
-=- jd -=-

RonM

Really confused on disk partitioning...
« Reply #1 on: January 16, 2005, 05:32:47 PM »
I had a similar issue when I installed SME on a system with 2 HDDs connected at install time - in my case it seemed that swap was out on the second disk also. It also said there was already a filesystem on the second disk when I tried to create one there.

I was too lazy to try and fix it with fdisk :) so I just reinstalled SME with the second disk disconnected, then reattached the second disk per Michiel Blotwijk's howto:
http://no.longer.valid/phpwiki/index.php/extra%20hard%20disk

Offline jdanvers

  • ***
  • 53
  • +0/-0
    • http://www.bikeguy.myip.org
Really confused on disk partitioning...
« Reply #2 on: January 16, 2005, 08:34:49 PM »
Ron....

Thats exactly what I'm planning on doing {sigh}.  Fortunately I don't have a lot of time or customizations into this current machine, plus it doesn't take to long for the base install of sme anyway.

Thanks for the feedback...

-=- jd -=-
-=- jd -=-