Koozali.org: home of the SME Server

Second HDD in server

Paul van Dun

Second HDD in server
« on: November 25, 2001, 02:47:44 AM »
Hello the question is back again !!!

Yesterday I tried to put an extra HDD in my server to upgrade the size of an ibay, and ofcourse this forum already had a topic about it, but it didn't work.
These are the steps I've made:

1  I logged in as root on the command prompt.
2  I typed fdisk /dev/hdb  (Because hdb is my second disk)
3  I typed "p" to see if there were any partitions on the new HDD (No partitions)
4  I typed "n" for a new partition
5  I typed "p" for a new primary partition, after this I pressed 1 so the new partition shuols be hdb1
6  I took over the defaults regarding the partition size and I used "w" to write the new partition.
7  After this I typed mkfs /dev/hdb1 to format the partition, so far so good
8  After this I typed fdisk -l /dev/hdb to see if it's still there, and it was.
9  In Midnight Commander I edited the fstab with the following line:

/dev/hdb1  /home/e-smith/files/ibays/data/files  ext2 default 1 2

So the new partiton should mount onto my data ibay ( I wanted to upgrade the disksize of the data ibay).

Until this point everything went just fine, after rebooting the server It seems to work but on my Windoze, when I browsed to the data ibay I got he message "access denied" !!
So I went back to my server and browsed to the data ibay and I issued the command ls -l, the files directory was set to group root and owner root.
When I remove the mounting point from this ibay it's writeable again, so the fdisk and/or mkfs changed the owner/group into root. So a normal user can't write to it.

So the big question is, how to change this I know there is a command chgrp and chown, but I don't know how to use them or did I soemthing wrong, I've spent several hours on this one but I couldn't figure it out.

P.S. it also contained a directory lost+found( not a f.... idea how it got there)

So please help me !


Looking forward to your reply,


Paul van Dun
The Netherlands

Rob Hillis

Re: Second HDD in server
« Reply #1 on: November 25, 2001, 10:41:36 AM »
Paul van Dun wrote:

> Yesterday I tried to put an extra HDD in my server to upgrade
> the size of an ibay, and ofcourse this forum already had a
> topic about it, but it didn't work.

Let's get the easy part out of the way... :-)

> P.S. it also contained a directory lost+found( not a f....
> idea how it got there)

ext2 systems automatically create a lost+found directory as a place to drop lost files during a file system check.

> These are the steps I've made:
> 9  In Midnight Commander I edited the fstab with the
> following line:
>
> /dev/hdb1  /home/e-smith/files/ibays/data/files  ext2 default
> 1 2

This is the sticky part... :-)  You'll need to work out the owner/group/permissions combination on the unmounted directory, and come up with a set of options (instead of default) to use in /etc/fstab.  See man mount for more information.  (remember to install man if you're running SMEv5, and have not previously done so)

Paul van Dun

Re: Second HDD in server
« Reply #2 on: November 25, 2001, 01:43:07 PM »
Thanks so far but can anyone gimme a hint, about the options in /etc/fstab


Best regards


Paul van Dun