LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 07-02-2004, 07:07 PM   #1
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Rep: Reputation: 15
Shrinking Partitions


So on a stupid move on my part I did a Fedora Install and I forgot to add some swap. In this case having the swap is absolutly critical. So I need to shrink the / partition to make room for my 4Gigs of swap. Here's what I've done so far.

Removed the journaling from ext3 so it becomes ext2 (tune2fs -O ^has_journal /dev/hda2)
Resized FS. (resize2fs /dev/hda2 140G)

Now I understand I'm supposed to shrink the partition with fdisk, but I truthfully don't have much experience with fdisk. So how would I go about this? Google didn't turn up much help, except saying "shrink the partition with fdisk" over and over

Also please don't suggest other options like parted. They won't be of any help. I'd rather learn how to do this with fdisk.
 
Old 07-02-2004, 07:51 PM   #2
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
It is possible to create a swap file in Linux.
Check 6.2.1. Creating Swap Space:
http://www.hk8.org/old_web/linux/run/ch06_02.htm
 
Old 07-03-2004, 03:19 AM   #3
Khabi
Member
 
Registered: Aug 2003
Location: Arizona
Distribution: Gentoo
Posts: 142

Original Poster
Rep: Reputation: 15
Yes, I understand that, but being a 20 machine cluster we need to have them all setup at least close to being the same. I would prefer it having its own partition
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD Shrinking stocks29 Linux - Software 2 07-12-2005 10:02 AM
Shrinking partitions siepmann Linux - General 1 10-27-2004 07:39 PM
The amazing shrinking partition loudhoward Linux - Hardware 7 02-25-2004 03:50 PM
Shrinking a partrition sanjuro54 Linux - Software 5 09-30-2003 03:03 PM
partition or shrinking? M@tt Linux - Newbie 2 11-12-2001 09:35 AM

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

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