I had wanted to add a second SCSI drive for a while. I followed some instructions found in a recent posting in this forum and ended up successful. I thought I would share the specific steps I took so that others would have a clear picture of exactly how to do it.
THIS IS FOR SCSI devices, but could be adapted for IDE drives.
By running /sbin/fdisk the following is output;
fdisk /dev/hda (for the first IDE disk)
or: fdisk /dev/sdc (for the third SCSI disk)
So for a second SCSI drive I will use /dev/sdb and for
a second IDE drive I would use /dev/hdb
So, I then used
/sbin/fdisk /dev/sdb and ensured there were no partitions defined, deleting all existing partitions until the drive was empty. In fdisk, I used "p" (print partition), "d" (delete partition) and "w" (write partition and quit) until there were no more partitions defined. I did not create any partitions on the drive.
I then used;
/sbin/mkfs /dev/sdb and it ended successfully.
I then:
created an iBay called MP3 and enabled it for the web using the server-manager.
I then;
edited /etc/fstab with vi (use whatever I guess) and looked for the following line;
LABEL=/boot /boot ext2 defaults 1 2
I inserted the following line just after the above line;
/dev/sdb /home/e-smith/files/ibays/mp3/html ext2 defaults 1 2
and used "w" and then "q" to exit.
I then rebooted the server after proper shutdown and enabled the mp3 iBay as an MP3 jukebox.
I then set appropriate permissions for this iBay using chmod, chown, and chgrp. I copied over a few music files over my network to the samba share, tested the mp3 jukebox and it works.
I used df to see the "disk free" on my drives and it outputs;
[root@iserver /etc]# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/sda6 17369424 1836228 14650868 12% /
/dev/sda1 10887 5859 4466 57% /boot
/dev/sdb 8817288 140724 8228660 2% /home/e-smith/files/ibays/mp3/html
It works just fine. Thanks for the previous posting related to this topic.
The only thing I would like to see change is the mount point. Within my html directory I now have the drives lost+found directory. Anyone have any ideas on how to change this???
Chaloner Hale
Chaloner Hale