LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-02-2006, 05:22 PM   #1
linuxlimbo
Member
 
Registered: Dec 2004
Posts: 43

Rep: Reputation: 15
Problem resizing swap partition


I recently installed a larger Hard drive in my system and used Ghost to move my SuSe Linux 10 from the small to the larger drive. Ghost used the extra space to make the swap partition larger. I have tried using the partitioner in Yast as well as booting the install CD and choosing expert options. Either way it won't let me resize the swap partition to recoup the lost space. Here is what the partition table looks like.

/dev/sdb 16.9GB IBM-DXHS18Y Start -0 End- 2212
/dev/sdb1 8.9GB Linux Swap Start- 0 End- 1170
/dev/sdb2 7.9GB Linux Native Start- 1171 End 2212

Is there anyway to fix this situation short of a new install?
 
Old 01-02-2006, 05:38 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could use the YaST partitioner to remove the old swap partition and create a new one.
 
Old 01-02-2006, 05:45 PM   #3
valencequark
Member
 
Registered: Aug 2004
Location: greater dc metro area
Distribution: various, mostly fedora
Posts: 79

Rep: Reputation: 16
I am not at all familiar with Suze, but you should be able to manipulate your patrition tables using the old standby in any distribution: fdisk
 
Old 01-02-2006, 05:47 PM   #4
linuxlimbo
Member
 
Registered: Dec 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Every time I try to do anything it says I have to unmount the swap partition, I used swapoff, but I still get the message.
 
Old 01-02-2006, 05:58 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could boot up in rescue mode, or use a live distro. The the filesystems are not mounted and you can use fdisk. If you boot up with knoppix, there is also a graphical partitioning tool that you can use. Since you used ghost to move to a second drive, make sure that the entries in /etc/fstab are changed to reflect the changes.
 
Old 01-02-2006, 06:02 PM   #6
linuxlimbo
Member
 
Registered: Dec 2004
Posts: 43

Original Poster
Rep: Reputation: 15
Does it make a difference that my swap partition comes before my main partition in terms of start and end points? If I delete the swap partition is it going to mess up the other one?
 
Old 01-02-2006, 08:16 PM   #7
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
No, deleting a partition doesn't change other partitions, it leaves empty/unallocated space. What you really want to do is use "/umount" on the swap to unmount it, then use the SuSE partioner.

However, alternatively a live CD of some distros will work, or you can use fdisk.
 
  


Reply


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 swap partition shujja Linux - Newbie 3 09-30-2005 02:20 AM
deleting/resizing swap partition / increasing hd space saranga2000 Linux - Hardware 1 12-09-2004 10:03 AM
Resizing Swap Partition Staz Linux - General 4 08-30-2002 12:33 PM
Resizing swap partition... PapaLewA Linux - Newbie 4 11-17-2001 01:59 PM
I'm an idiot...please help me with resizing my swap partition totalcommand Linux - Newbie 8 10-18-2001 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 06:53 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
Open Source Consulting | Domain Registration