LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-20-2004, 12:25 AM   #1
rkemp
Member
 
Registered: Nov 2003
Distribution: redhat 8.0
Posts: 35

Rep: Reputation: 15
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?
 
Old 02-20-2004, 02:32 AM   #2
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
Can't write to my home dir Seiken Linux - Newbie 5 02-16-2005 08:42 AM
howto make a dir shared that is not in my home dir Schmurff Linux - Newbie 2 06-19-2004 07:54 PM
Apache Home Dir Nige General 1 02-24-2004 04:10 PM
home dir vsftpd ilengna Linux - Networking 7 10-14-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration