LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Format drive for /home dir (https://www.linuxquestions.org/questions/linux-hardware-18/format-drive-for-home-dir-148303/)

rkemp 02-20-2004 12:25 AM

Format drive for /home dir
 
Redhat 8.0

I currently have a drive in my computer that I have dedicated just for swap space and to store the information for the /home directory. All the other information for Linux is on the main drive hda1.

I want to replace the drive that has the /home directory on it. When I initially setup that drive Linux formatted a specific amount of drive space for the /home directory (this was done during installation). How can I get Linux to format the new drive with a specific amount of space for the /home drive and a specified amount for the swap space?

Aussie 02-20-2004 02:32 AM

Use 'cfdisk' or 'fdisk' if cfdisk is not installed to create the partitions, then create the filesystems, see "man mkswap" and "man swapon" for your swap, for your /home directory it depends on what filesystem you use, I use reiserfs so the command I use is 'mkreiserfs' to on the newly created partition. Do "man mkfs" for all the instructions.


All times are GMT -5. The time now is 02:26 AM.