LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-19-2004, 09:55 AM   #1
manjusura
LQ Newbie
 
Registered: Feb 2004
Location: England
Posts: 13

Rep: Reputation: 0
adding partitions


Hello -

I've been running RH9 for about three months now, and had no prior experience of Linux. When installing, I accepted the basic partitioning options the setup offered me, because I knew no better - so I've got:

/dev/hda1 which is 102 MB
/dev/hda2 which is 18599 MB
/dev/hda3 which is 377 MB

(These values from Hardware Browser)

I've recently heard that it's best to create /home as a separate partition. Is this so? And if so, can I make a new partition at this point, and how do I then move /home to the new location?

Thanks for any advice,

MS
 
Old 02-19-2004, 10:10 AM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
If your hd is full (partitionwise & not datawise), shrink one of the partitions with partition resizing software. Then make a new one (hda4?). Put a filesystem on it:
mke2fs /dev/hda4
Mount it somewhere (say /newhome):
mount /dev/hda4 /newhome
Then copy everything as root:
cp -a /home/* /newhome
Then move the old one someplace else, and create an empty /home. Add a line to /etc/fstab (example):
/dev/hda4 /home ext2 defaults 0 0

Last edited by aaa; 02-19-2004 at 10:12 AM.
 
Old 02-19-2004, 10:15 AM   #3
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
maybe im wrong but i think you should run the "mount" command from a terminal. it will tell you where /home is mounted. maybe you'll see it's a separate partition already.
 
Old 02-19-2004, 10:21 AM   #4
manjusura
LQ Newbie
 
Registered: Feb 2004
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
thanks to aaa and jib2. when I follow your advice jib2, I get:

/dev/hda2 on / type ext3 (rw)
none on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/hda1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/fd0 on /mnt/floppy type vfat (rw,nosuid,nodev,user=ian)

which I'm afraid means zip to me - can you tell me, is it in a separate partition? and if not, and I do need to follow aaa's advice, could either of you recommend some partition resizing software?

thanks.
 
Old 02-19-2004, 10:36 AM   #5
jib2
Member
 
Registered: Sep 2003
Location: Paris, France
Distribution: Arch x86_64
Posts: 221

Rep: Reputation: 30
obviously it isn't. but hda2 is pretty big (more than 18GB) so you should find some room.
anyway, you NEED to follow aaa's advice since he's a guru. :-)
 
Old 02-19-2004, 10:36 AM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
There is no /home
hda1 is /boot
hda2 is /
hda3 appears to be for swap space

Shrink the hda2 using something like GNU Parted or Partition Magic. Then create a new partition using fdisk. Note the the new partition will be hda3, and swap will be pushed from hda3 to hda4. Edit your /etc/fstab accordingly.
 
Old 02-19-2004, 10:58 AM   #7
manjusura
LQ Newbie
 
Registered: Feb 2004
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
One last thing, which was where I started: is this a good thing to do?
 
Old 02-19-2004, 11:13 AM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
I don't think it's needed. Your current arrangement looks fine.
One use for a /home is for multiple distros, so you can have the same home directory in both.
 
Old 02-19-2004, 11:33 AM   #9
manjusura
LQ Newbie
 
Registered: Feb 2004
Location: England
Posts: 13

Original Poster
Rep: Reputation: 0
That was my thought - because I've been told Mandrake is more stable than RH9. That said, RH9 has always been pretty stable. Except that it's become a bit wobbly since I installed KDE 3.2 last week - which is great in most regards, but does some strange things: menus seem to freeze and I can't click on them (but pressing 'Esc' will take me back), and sysguard keeps saying 'Lost connection to localsys!'. Hey, you thought you were responding to one question, and it turns out I'm one very confused newbie! Thanks for your help so far.
 
  


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
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 01:11 PM
Help please to mount windows partitions - device-mapper: error adding target to table Indian_bee Linux - General 3 07-06-2004 07:12 PM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
adding new partitions? RIgimp75 Slackware 3 09-02-2003 06:19 PM
Adding partitions and also MSN Snake007uk Linux - General 9 05-10-2002 07:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration