SUSE / openSUSE This Forum is for the discussion of Suse Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-02-2006, 05:22 PM
|
#1
|
Member
Registered: Dec 2004
Posts: 43
Rep:
|
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?
|
|
|
01-02-2006, 05:38 PM
|
#2
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
You could use the YaST partitioner to remove the old swap partition and create a new one.
|
|
|
01-02-2006, 05:45 PM
|
#3
|
Member
Registered: Aug 2004
Location: greater dc metro area
Distribution: various, mostly fedora
Posts: 79
Rep:
|
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
|
|
|
01-02-2006, 05:47 PM
|
#4
|
Member
Registered: Dec 2004
Posts: 43
Original Poster
Rep:
|
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.
|
|
|
01-02-2006, 05:58 PM
|
#5
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
01-02-2006, 06:02 PM
|
#6
|
Member
Registered: Dec 2004
Posts: 43
Original Poster
Rep:
|
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?
|
|
|
01-02-2006, 08:16 PM
|
#7
|
Senior Member
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|