LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-14-2005, 03:01 PM   #1
towel401
Member
 
Registered: Apr 2005
Location: Ireland
Distribution: Debian
Posts: 39

Rep: Reputation: 15
How to resize a ext3 partition?


whats the best way to go about resizing one? my / partition is nearly full do i really need to get rid of the journal first or is there another way?
 
Old 10-14-2005, 03:09 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Quote:
do i really need to get rid of the journal first ...
No need to do that. Can you post the results of fdisk -l and show what you have in mind?
 
Old 10-14-2005, 03:39 PM   #3
towel401
Member
 
Registered: Apr 2005
Location: Ireland
Distribution: Debian
Posts: 39

Original Poster
Rep: Reputation: 15
/dev/hda1 is too small.

Code:
Disk /dev/hda: 60.0 GB, 60040544256 bytes
16 heads, 63 sectors/track, 116336 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1221      615352+  83  Linux
/dev/hda2            1222        2558      673848   82  Linux swap / Solaris
/dev/hda3            2559      116336    57344112    f  W95 Ext'd (LBA)
/dev/hda5            2559       63511    30720280+  83  Linux
/dev/hda6           63512      116336    26623768+  83  Linux

Disk /dev/hdb: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       12161    97683201    c  W95 FAT32 (LBA)

i'm confused now, i clearly remember formatting hdb1 ext3 and it has a 4.4gb file & a lost+found directory on it which is liek impossible for a fat32 partition, its also listed as ext3 in /etc/fstab
 
Old 10-14-2005, 05:30 PM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Unfortunately, /dev/hda2 is not big enough that using it would be worth your trouble.
The next one over is /dev/hda3 ( Extended ) and you can't remove that without messing with 5 and 6.
If it was my system, I'd fix the partitions on /dev/hdb and use a livecd with partimage . Save the partimage image to someplace on /dev/hdb and also save your jpg and mp3 stuff in a folder on /dev/hdb .
From a livecd still...
I would remove all partitions on /dev/hda and create /dev/hda1 to the larger size which you desire.
Next, restore the partimage image to the new /dev/hda1.
Next, run the command: e2fsck -f /dev/hda1
Next, run the command: resize2fs -f /dev/hda1
Next, create the swap partition and run the command: mkswap /dev/hda2
Next, create the Extended partition
EDIT: If partitions 5 and 6 are used for something like /home and /usr then you will want to backup those partitions and restore them with partimage.

Finally, create partitions 5 and 6
Format them, for example... mkfs.ext3 /dev/hda5 && mkfs.ext3 /dev/hda6

Last edited by homey; 10-14-2005 at 05:51 PM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
resize ext2/ext3 partition georgec Linux - Software 4 09-22-2009 05:40 PM
Can't resize ext3 Partition crack Linux - General 2 09-04-2005 07:39 AM
Ext3 Partition Resize nerotique Slackware 15 11-12-2004 04:44 PM
Problems trying to resize an Ext3 partition LucaSpiller Linux - Newbie 6 08-18-2004 08:53 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:28 PM.

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