Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 04-12-2002, 10:15 AM   #1
LQ Newbie
Registered: Apr 2002
Location: Colorado
Distribution: Redhat 7.2 & Mandrake 8.2
Posts: 3

Rep: Reputation: 0
Question hard drive

I am a NT/XP Network System Administrator, and I have finally learned to hate Microstiff. I have really enjoyed working with Linux alot.

My question is, I have installed Redhat on my server at home, and I just purchased another 20gb hard-drive, RH sees the hard-drive, but I would like to be able to partition it, and also use a part of it to extend the /home directory from the other hard-drive. What should I use to create the partitions, and how do I go about extending my /home directory? Also, will it have to be auto mounted, or since RH already sees it, will it be ok, after being partitioned.

Old 04-12-2002, 10:30 AM   #2
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
just use cfdisk or fdisk to create the partition itself and then use mke2fs to format the bugger. you'll probably want to use ext3 journalling, which you'd do with

mke2fs -j /dev/hdb1

assuming that the new partition IS hdb1 of course. make whatever partitions you want, and format them. then you'll need to copy each mountpoint over the each new partition. for home you'd do something like:

mount /dev/hdb1 /mnt/home
find -xdev /home | cpio pvd /mnt

this will (heh.. should... check those options make sense to you first!) copy your old home to the new parition. after that you'd want to make a new entry for the partition in /etc/fstab like

/dev/hdb1 /home ext3 defaults 1 1

and that should then mount it automatically on boot. it will NOT remove the old native /home directory tho, it will simply hide it while the otehr syustem is mounted. when you are happy with the new system, you should unmount the partition and delete the old /home/ contents.

should be enough info.... if you can understand my typing

go *nix.
Old 04-12-2002, 11:43 AM   #3
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,681

Rep: Reputation: 218Reputation: 218Reputation: 218

You can also create a partition for your main user /home/xxx on hdb1 and leave the rest somewhere on hda. In this case there will be a new line in /etc/fstab needed. All partitions you'll place in it, will be mounted at boot (if possible, of course).


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
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM
Reiser file system / Hard Disk/ Hard Drive Problems Oxyacetylene Linux - Software 4 10-10-2005 03:24 PM
2 hard drive in system mirror 1st hard drive sburns76247 Linux - General 2 12-21-2004 02:47 AM
Grub to access new hard drive and old multi os hard drive ? gedi1 Linux - Hardware 0 06-03-2004 01:01 PM
STUCK--Trying to copy old Hard Drive to new Hard Drive. Please Help tsw Linux - Newbie 8 05-26-2004 03:47 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:43 AM.

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