How to Move Your Home Directly to a New Drive, Samba Tips and More
Welcome back to Tech Support. Thanks to everyone who submitted questions for this issue. If you have new questions or want to suggest a program for our App Tips section, drop me a line at tech@linux-mag.com.
Welcome back to Tech Support. Thanks to everyone who submitted questions for this issue. If you have new questions or want to suggest a program for our App Tips section, drop me a line at tech@linux-mag.com.
I have a server that is running out of space on the /home partition. I purchased a new drive and want to know how to move my directory to the new disk without destroying my current working system.
This process can seem tricky at first, but after going through the steps, you’ll be able to manipulate your system to adjust to your growing needs.
1. Install the drive and make sure the kernel recognizes it. As root, run dmesg | more. This will list all of the kernel messages about various devices and filesystem attributes that have been seen at boot.
2. Partition the the new disk using mk2efs. For example, suppose you have added a new SCSI drive and you want to move the /home directory to its first partition. Format the partition with:
mk2efs -c /dev/sdb1
3. Create temporary mount points for the newly formatted partitions. For this example, you might create a home directory in your /mnt directory: mkdir /mnt/home.
4. Mount the new partitions to their temporary mounting point in the /mnt directory. For example,
mount -t /dev/sdb1 /mnt/home
5. Now you…
Please log in to view this content.
Not Yet a Member?
Register with LinuxMagazine.com and get free access to the entire archive, including: