Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.