[ale] samba conf
Wandered Inn
esoteric at denali.atlnet.com
Mon Nov 22 19:24:09 EST 1999
Luis Luna wrote:
>
> Dear God,
> I just want to have one folder...........
First off, you are not better off with NT. I speak from experience, so
let's see what we can do. I've got some pointers below, that don't even
begin to touch on Samba yet, but let's see if we can get these things
straight first.
You're touching on a lot of stuff here. Let me see if I can break some
of it down.
You made reference to /dev/hdc1. Your /etc/fstab file you presented,
indicates that your cdrom is /dev/hdb, so it makes sense that your new
drive probably is /dev/hdc. Also you have to references to a mount
point named / in that example. You can't do that. You can only have
one '/' mount point in your /etc/fstab file. Each drive should have a
unique mount point. But we are getting ahead of ourselves here.
First, to create a file system you do the following:
fdisk /dev/hdc
Sounds like you got this far. So you have 1 or more drives named:
/dev/hdc1, /dev/hdc2..../dev/hdcN
Now you must format it:
mkfs -t ext2 /dev/hdc1
Now you must create a mount point for it:
mkdir /mountpoint
'/mountpoint' is going to be an empty directory in your root
directory. You can call it whatever you want.
Now mount it:
mount -t ext2 /dev/hdc1 /mountpoint
Now to list the contents of that drive:
ls -l /mountpoint
Make a directory on the new drive:
mkdir /mountpoint/newdirectory
To make it easier to mount, put the following in /etc/fstab:
/dev/hdc1 /mountpoint ext2 defaults 1 2
Now you can mount by doing:
mount /mountpoint
Also, it will be mounted automatically when you boot. If you don't want
it to mount when you boot change /etc/fstab to:
/dev/hdc1 /mountpoint ext2 noauto 1 2
--
Until later: Geoffrey esoteric at denali.atlnet.com
It should be illegal to yell "Y2K" in a crowded economy.
-- Larry Wall, creator of the programming language Perl
More information about the Ale
mailing list