LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 11-04-2002, 08:31 PM   #1
dummy
LQ Newbie
 
Registered: Nov 2002
Posts: 1

Rep: Reputation: 0
Partition sizing


I have a partition that is out of space. I have extra hard drive space, how can I adjust my partion without third party software?
If possible give me step by step instructions.
 
Old 11-04-2002, 08:35 PM   #2
Bert
Senior Member
 
Registered: Jul 2001
Location: 406292E 290755N
Distribution: GNU/Linux Slackware 8.1, Redhat 8.0, LFS 4.0
Posts: 1,004

Rep: Reputation: 46
Welcome to linuxquestions.org!

Can you tell us what your drives are, what you have installed and where you're thinking of putting Linux.

At this stage, you're contemplating the red pill, and it's best to have a book to read along the way. O'Reilly books on Linux/Unix are recommended if you can afford them.

Bert
 
Old 11-04-2002, 08:56 PM   #3
adam_boz
Member
 
Registered: Jul 2002
Location: Santa Cruz, CA
Distribution: lfs
Posts: 538

Rep: Reputation: 30
you don't really need to resize.... you can mount some of your current system from that extra partition.

what partition is it? I'll call it /dev/hdax here. We are going to mount the /home directory on it here, but that can really be replaced by whatever you want.

mke2fs /dev/hdax # makes an ext2 filesystem on the drive
mount /dev/hdax /mnt # mounts hdax to /mnt
cd /home

##instead of "mv" here, you may want to run it all through with "cp"... just to make sure it all transfers smoothly (I don't wanna screw you up)

mv -R * /mnt ## moves everything from /home to /mnt... your other partition

now you are going to have to edit your /etc/fstab file. put a line like this:

/dev/hdax /home ext2 defaults 1 2


now, when you reboot, /dev/hdax will be mounted on /home, your original partition will have space, and your system will be happy

good luck

-Adam

EDIT:

if you do want to resize the partition, there are two programs from gnu for it..."fips" and "parted" check 'em out

Last edited by adam_boz; 11-04-2002 at 08:58 PM.
 
Old 11-04-2002, 08:57 PM   #4
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 30
This is a loaded queston. There are two ways you can go here.

The first is actually resizing the partition itself. This can be done using parted providing there is free space after the end of the partiion. I personally would not recommend this approach though.

What I would recommend that you do is create a new partition out of the free space and move a chunk of your full partition over. For instance If your /var partition is getting full make a new partition and mount the /var/log folder on it . What you move to the new partition would depend on what fits the space created.

Also depending on your distro you might have other options. I understand Mandrake users are fond of diskDrake for instance. To reinforce what Bert said, if you can provide what Distro you are using and your current partition scheme maybe we could provide better answers.

Edit. Changed wording for clarity.

Last edited by Mephisto; 11-04-2002 at 09:44 PM.
 
Old 11-04-2002, 09:04 PM   #5
Mephisto
Member
 
Registered: Oct 2002
Location: Washington D.C, USA
Distribution: Slack 12, Etch, Gutsy
Posts: 453

Rep: Reputation: 30
Jeez I type slow. adam_boz explained in detail what I was briefly suggesting. All in the time it took me to type the message.
 
  


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
Screen Re-sizing xorg.conf. Hekdiesel Linux - Newbie 4 06-04-2006 02:40 PM
Why Is KDE not sizing menus right? Krimson714 Slackware 3 10-17-2005 08:57 PM
sizing a form in vb.net mrobertson Programming 3 07-13-2005 08:04 AM
Re-sizing a full EXT3 Part with Partition Magic problems VexSky General 3 09-10-2003 08:23 PM
Mandrake 9.1 Installation Problems : Partition Sizing moothecow2k Linux - Newbie 3 08-04-2003 06:57 PM


All times are GMT -5. The time now is 01:30 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