Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Cyrus Bharda on August 21, 2002, 07:15:40 AM
-
I would like to share a hard drive to be accessable over my LAN at home, so instead of having my D drive shared in my machine and slowing my computer down everytime it is accessed, why not whack it into my SME box and have it shared as \esmith\C on a windows network. So how do I accomplish that?
Thanks
Cyrus Bharda
-
Short Version:
Stick the drive in, mount it to a directory, add an entry to fstab and setup the share in samba.
Long Version
Go search around the web and get yourself a few Howto's. Start with ones on Mount, fstab, and Samba.
The actual mount command will depend on the filesystem you use on the drive and its position on the IDE/SCSI chain. It will be something along the lines of:
mount -t fat32 /dev/hdc1 /mnt/otherdrive
Where 'fat32' is the filesystem '/dev/hdc1' is the drive (hdc1 is the Second Partition on the Master Drive on the second IDE channel) and '/mnt/otherdrive' is the directory you want to mount the drive to.
Go look at /etc/fstab for info on how to remount the drive on reboots.
For Samba you are best off reading the docs. There is a lot of info in there, though there are plenty of examples around of what you want to do.
Mount Info:
http://www.tldp.org/HOWTO/mini/Partition/formating.html#MOUNTING
Samba Info:
http://www.tldp.org/HOWTO/SMB-HOWTO.html
http://samba.org/
Adding a Second Drive:
http://www.tldp.org/LDP/LG/issue38/cooper.html
Search around for some more docs. There are lots out there. Hope this helps get you started.
-
Thnak you!!!!!
-
so basically these are the names of the partitions right? :
/dev/hda0 = 1st partition on master on primary ide
/dev/hda1 = 2nd partition on master on primary ide
/dev/hdb0 = 1st partition on slave on primary ide
/dev/hdb1 = 2nd partition on slave on primary ide
/dev/hdc0 = 1st partition on master on secondary ide
/dev/hdc1 = 2nd partition on master on secondary ide
/dev/hdd0 = 1st partition on slave on secondary ide
/dev/hdd1 = 2nd partition on slave on secondary ide
right?