Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Chaloner Hale on November 21, 2001, 02:27:02 AM
-
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
-
Well it appears that you can mount the bloody thing anywhere you want. As I have no idea what I am doing, I am amazed that I got it going. Equally amazed that I could undo what I did and move it somewhere else, remount it, etc... I just unmounted it (umount /dev/sdb), edited /etc/fstab to reflect a new mount point which I made to be /home/e-smith/files/primary and guess what.... it works....
Chaloner Hale
-
hi there i fallowed the steps you put and it worked, but to answer your question, i'll tell you what i did.
first logon as root
then from the command line enter, mc [enter]
then go the the directory
/home/e-smith/files/ibays/mp3/html
and the select the folder lost+found
press F8 (i think) to deleted it
and now your done, as long as you restart properly using the correct commands
eg. halt, reboot. or do it from the console it will not be there.
but any time you don't unmount your hd and restart it will be there again, so just delete it.
hope this helps.