LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-28-2006, 11:09 PM   #1
xri
Member
 
Registered: Aug 2002
Distribution: Slackware 14.2, Archlinux
Posts: 283
Blog Entries: 11

Rep: Reputation: 41
Resizing swap


This is the output of fdisk -l

Quote:
Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3269 26258211 7 HPFS/NTFS
/dev/hda2 3270 3932 5325547+ 83 Linux
/dev/hda3 3933 7017 24780262+ 83 Linux
/dev/hda4 7018 7295 2233035 82 Linux swap / Solaris
Since I was silly enough to assign 2.2G to swap, I wonder if I can delete this swap and use that space to create a reasonable swap (let's say 512M) and use the rest for a vfat partition to be used both by WXP and Mepis.

I would appreciate some tips to do this safely. My intention is to keep my system and not to delete anything.
 
Old 10-28-2006, 11:52 PM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 59
You can delete that partition but, since you want two new partitions, you will need to make an extended partition first.
I can do that easy enough from the command line using fdisk. You may find it less intimidating to use a GUI tool called qparted. It actually comes on a livecd now.
After that is done, you should edit the fstab entry for the new location of swap.
 
Old 10-29-2006, 05:11 PM   #3
xri
Member
 
Registered: Aug 2002
Distribution: Slackware 14.2, Archlinux
Posts: 283
Blog Entries: 11

Original Poster
Rep: Reputation: 41
Thanks for your reply, homey.
I'll do that.
 
  


Reply

Tags
partitioning, swap


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Resizing the swap partition R N Ghosh Fedora 5 04-07-2006 03:39 AM
Resizing swap partition shujja Linux - Newbie 3 09-30-2005 03:20 AM
Resizing a swap file rhmd5 Linux - General 5 01-11-2003 01:40 PM
Resizing Swap Partition Staz Linux - General 4 08-30-2002 01:33 PM
Resizing swap partition... PapaLewA Linux - Newbie 4 11-17-2001 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:45 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration