LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-31-2005, 03:53 PM   #1
rv8bldr
LQ Newbie
 
Registered: Aug 2005
Posts: 1

Rep: Reputation: 0
expanding IDE partition using parted


I had a 3.2GB IDE HDD in my RH8 firewall. I used a hardware drive duplicator to create a new 20GB drive for the firewall. My root partition WAS 2.7GB, I used parted to expand it to 15GB on the new drive.

Now, when I use df to view the freespace, it still tells me I have a 2.7GB root partition. BUT, when I look at the drive with fdisk, it shows the proper partition size. Why do the two show differing sizes? Is df telling me my actual limitation? Or is it incorrect and fdisk is telling me the right information?

---------------------------------------------

Please don't laugh at the partition scheme - I built it several years ago before I knew better

[root@fw01 /]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 2.7G 2.4G 247M 91% /
/dev/hda1 95M 9.0M 81M 10% /boot
none 109M 0 108M 0% /dev/shm

[root@fw01 /]# fdisk /dev/hda

The number of cylinders for this disk is set to 2534.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

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

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 34 168682+ 82 Linux swap
/dev/hda3 35 1912 15085035 83 Linux
/dev/hda4 1913 2534 4996215 83 Linux
 
Old 09-01-2005, 09:27 AM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
It sounds like you changed the partition size, but didn’t resize the filesystem.

Assuming you are using ext2 or ext3, try running:

resize2fs /dev/hda3

That should cause the ext2/ext3 filesystem to fill the partition. For more details, see:

man resize2fs
 
  


Reply



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
expanding root partition... DaVenom Linux - General 4 09-11-2005 01:19 AM
Expanding an NTFS partition nonoitall Linux - Newbie 3 05-20-2005 03:58 PM
Expanding root partition? biniar Linux - Newbie 1 04-07-2004 01:59 PM
Expanding a partition echid Linux - General 1 08-12-2002 10:21 AM
need help expanding a partition linuxmaster Linux - General 2 12-01-2001 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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