Problem resizing partition using parted
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat Installation > Problem resizing partition using parted




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Problem resizing partition using parted  
Gazza


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-27-04 10:36 PM

After doing much reading of textbooks and online resources I began the proce
ss of resizing my /var partition as it is used by many processes including e
-mail and databases in particular.

 

Before I began I printed out from parted and df.

The main bits of interest were:

 

(parted-output)

Disk label type: msdos

Minor    Start         End          Type      Filesystem  Flags

6          5098.786   6118.505   logical    ext3        

7          6118.537   6502.873   logical    linux-swap  

 

and 

(df -h output)

Filesystem            Size       Used     Avail    Use%   Mounted on

none                     121M      0          120M   0%       /dev/shm

/dev/hda6             1004M     284M    669M   30%     /var

 

Following an example from the gnu.org site for using parted I deleted the li
nux-swap file thus:

 

rm  7

 

I then resized the /var partition:

 

Resize 6  5098  8999

 

I then recreated the linux-swap:

 

mkpartfs 7  logical ext2 8999  9500

 

Everything went fine, or so I thought.

Machine re-booted, parted prints the new sizes for the partitions but, df -h
  still shows old partition sizes.

Any idea how on earth I can get the new partition sizes correctly recognised
?

 

Thanks.







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 06:27 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register