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