Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resizing partitons on FC

Status
Not open for further replies.

talktoadi

Programmer
May 18, 2006
4
0
0
US
Hi All,

I'm running Fedora on poweredge 2650. When FC2 was installed the partion was done wrongly. This what I get when I df

<code>
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 2.0G 492M 1.4G 27% /
/dev/sda1 99M 7.7M 86M 9% /boot
none 506M 0 506M 0% /dev/shm
/dev/sda5 97G 8.6G 83G 10% /home
/dev/sda9 1.2G 33M 1.1G 3% /tmp
/dev/sda6 39G 7.5G 30G 21% /usr
/dev/sda7 20G 11G 7.9G 58% /var
</code>

I want to reduce /dev/sda5 to 13G and put the rest (84G) on /dev/sda7.

How do I go about doing this without losing data? Any pointers highly appreciated.

TIA,
Adi.
 
I know that with reiserfs on LVM I can expand on-line but I can only shrink off-line. Don't know about ext3. However, before you can do that, you'll need to change the partition boundaries with sfdisk. The partitions are not adjacent to each other so expanding and shrinking sda5 & sda7 would also require you to mess with sda6. I've tried this once on a test machine and stuffed it. Why not symlink folders over to sda5?


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 

Thanks Zeland for your solution.. Yes I can symlink the folders.. This seems to be the easy path. I'm not really comfortable with messing around with partitions... I wish there were some resources which explained how to do this.

My other option is to rebuild this server.

TA,
Adi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top