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? |
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. |