Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I partitioned my machine using what redhat default to (LVM). Now, i have to use this machine as a file storage server using an external drive, where each user have access to only thier own space.
That would be simple if I partition home directory in the external drive in the beginning. Now, I am not sure what I need to do?
do I just need to create a symbolic link of each user to the external drive?
You should be able to mount the external drive as /home under LVM I would think. What file system is on the drive? Copy the contents of /home to the external drive, then mount it to /home. If it works, put an entry in your fstab
As it's your new installation and you might be going to add users, so new users will be having /home/our_user directories with respective permissions.
what are your /etc/fstab entries? can you show? as well as `fdisk -l`
1) create a file system on your external hdd.
2) if you already have users data under /home then:
mount your external hard disk, say on /misc
mount /dev/sdc1 /misc (Where /dev/sdc1 is your external disk)
copy users data along with their file permissions
cp -rpv /home/* /misc/
unmount old /home and mount /dev/sdc1 to /home
Edit your /etc/fstab
a) Comment out old /home and add an entry something like.
/dev/sdc1 /home ext3 defaults 1 2
Read man pages for more details about fstab.