heh I know what you mean... mount points can get confusing but here's a (hopefully simple) explanation:
- you have disks with partitions (e.g.: /dev/sda1 or in lvm /dev/volumegroupname/logicalvolumename)
- you assign that partition to a mount point
- a mount point can essentially be any directory on your filesystem
- mount points are opaque, this means that if you have a directory called /mnt/mymount/mydir and you mount a partition on /mnt/mymount you will not see the subdir "mydir" anymore! It will reappear when you unmount that mount point again...
if you wish to play around with that it's simple: add a disk (100MB is enough) in your VirtualBox to your server.
check on the server if the disk is found (use fdisk -l, you'll get 1 disk without a partition table and fdisk will tell you that
)
for the sake of this test let's say it's /dev/sdb
fdisk /dev/sdb
n (new partition)
p (primary)
1 (partition number)
<enter> (start block)
<enter> (end block)
t (partition type)
83 (linux ext)
w (write changes to disk)
and you'll get your prompt back.
run the command "partprobe" and you should see /dev/sdb1
then create a filesystem on /dev/sdb1:
mkfs.ext3 /dev/sdb1
and let's create a directory in which you will mount your shiny new disk:
mkdir /mnt/mymount
mount the disk:
mount /dev/sdb1 /mnt/mymount
done (df -h will show that)
if you want the disk to be mounted at boot time you'll need to edit /etc/fstab and add the following line:
Code: Select all
/dev/sdb1 /mnt/mymount ext3 defaults 1 2
unmount /mnt/mymount and type "mount -a", if that succeeds and "mount" shows the new mount point you've done everything right