Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 02-03-2003, 09:47 PM   #1
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Resize an Active Partition

I think I know the answer to thins, but I'm hoping for an alternative...
Doing a full Slack install seems to have come close to filling my root partition:
# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda2 280001 248702 16841 94% /
/dev/hda1 93309 6799 81693 8% /boot
/dev/hda3 474474 8240 441735 2% /home
/dev/hda5 26594760 1583072 23638936 7% /usr
/dev/hdb2 10490116 110092 10380024 2% /usr/local
/dev/hdb3 32450304 52896 32397408 1% /var

I have plenty of free space to move around; the problem is resizing active partitions without hosing my sistem.
The parted manual says it's possible to resize a partition using the following:
(parted) resize partition_number new start new end

Can anyone give me a hint on how to determine these values properly, if it's possible to do? Here are the results of mount and fdisk -l if they'll help any:

# mount
/dev/hda2 on / type ext3 (rw)
/dev/hda1 on /boot type ext3 (rw)
/dev/hda3 on /home type ext3 (rw)
/dev/hda5 on /usr type ext3 (rw)
/dev/hdb2 on /usr/local type reiserfs (rw)
/dev/hdb3 on /var type reiserfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /proc type proc (rw)
s# fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 3649 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 12 96358+ 83 Linux
/dev/hda2 13 48 289170 83 Linux
/dev/hda3 49 109 489982+ 83 Linux
/dev/hda4 110 3649 28435050 5 Extended
/dev/hda5 110 3527 27455053+ 83 Linux
/dev/hda6 3528 3649 979933+ 82 Linux swap

Disk /dev/hdb: 255 heads, 63 sectors, 5473 cylinders
Units = cylinders of 16065 * 512 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 127 1020096 82 Linux swap
/dev/hdb2 128 1433 10490445 83 Linux
/dev/hdb3 1434 5473 32451300 83 Linux

...and if all hope is lost and I need to ::gulp:: start from scratch, any suggestions on how better to partition for a web/ftp/samba server?
Old 02-04-2003, 02:22 AM   #2
Registered: Jan 2003
Posts: 167

Rep: Reputation: 30
(parted) resize partition_number new start new end

I believe they are talking about the start and stop cylinder of your re-sized partition. I always have trouble with that stuff too.

Just do the math and you can figure out what you'll need them to be. (use 'bc')

I would suggest trying out 'fips'... it's another partition re-sizer. You should probably print out all the above info before you start, cause I can't remember the units it has you work with.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Cannot Resize, Move my active window in KDE 3.2? DigitalKid2004 Linux - Newbie 0 09-20-2004 12:19 PM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 08:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:07 PM.

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