Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
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 have redhat 7.2 running and my users are about to fill the whole hard drive thats in there so i added another hard drive now how do i get linux to allocate the space on the new drive to the users home directory ?
Usually folks create a /home2 on the new drive, and move some (or all) users from /home to /mnt/newdrive/home2. If you do this, remember to specify the new basedir when adding new users. This can cause problems with scripts that reference '/home/user/somefile'.
Alternatively, you can move /home to the new drive, leaving the existing drive just for the system. If you do that, create a symbolic link to the new home so no software changes are needed:
ln -s /mnt/newdrive/home /home
Make sure to automount the new drive in /etc/fstab.
First fdisk the drive. Delete existing partitions, and add a primary partition for the entire drive (default cylinder extents), and make the partition type 83 (Linux).
then you can format it as ext3 with:
mke2fs -j -m 0 /dev/hdb1
That is assuming that the drive is /dev/hdb; the '1' at the end signifies the first partition.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.