Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-02-2003, 01:39 PM   #1
LQ Newbie
Registered: May 2003
Posts: 1

Rep: Reputation: 0
Wink Swap file & Boot Partition Resize

Just unchaining myself from the Windows world and have created a dual boot environment w Win2kpro and RedHat 9.0. Unfortunately I didn't make the swap file 2x the existing physical ram and the boot partition is way too big. I need to find a way to correct these oversights without destroying this installation. Is this possible using some Linux freeware that I am not aware of?
I already know about Partition Magic 8.0 and it's claim of being Linux capable now but the price is prohibitive to say the least.
If someone out there has done this procedure or knows of any Linux freeware or shareware please let me know.
My installation seems to be rock solid and other than this partition size blunder all went well. Whew!!

Old 05-02-2003, 02:07 PM   #2
Registered: Feb 2002
Location: Fairfax, VA
Distribution: RedHat 8, Mandrake9.1, Slack9
Posts: 456

Rep: Reputation: 31
you can use "parted" to resize the partitions. it comes with redhat and mandrake. if it is not installed install it. but that is a command line program. so read all the manual before you start or you will loose everything. but dont be afraid.
Old 07-17-2008, 06:59 PM   #3
LQ Newbie
Registered: Sep 2005
Distribution: Kubuntu 8.04 Remix
Posts: 6

Rep: Reputation: 0
I just did a resize of my swap partition and it is causing me a major headache. My system was hanging up at waiting for resume disk... and I tracked it down to fstab and initramfs have incorrect UUID numbers for the swap partition. But I am stuck because update-intramfs is disabled on the kubuntu live CD.

Does anyone know how to over-ride the lock on update-intramfs for the kubuntu live so I can use the -b option and rebuild my boot image to get my system up and running?
Old 07-17-2008, 07:14 PM   #4
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,719

Rep: Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550Reputation: 3550
Don't go restarting old threads like this - start a new one.
Not really an initrd issue methinks.
When you get the boot menu, highlight the selection and hit the "e" key (for edit - see the notes at the bottom of the menu). On the kernel line change the resume (if present) to "noresume" - else add it.
Then <Enter> then "b" to boot.

You might still have problems with fstab, but that you should be able to fix from a liveCD.

Last edited by syg00; 07-17-2008 at 07:16 PM.
Old 07-17-2008, 07:50 PM   #5
LQ Newbie
Registered: Sep 2005
Distribution: Kubuntu 8.04 Remix
Posts: 6

Rep: Reputation: 0
alright, that got me into my normal boot so I could fix initramfs and enable resume

I need to document this well because I couldn't find a clear fix and had to muddle through it for the last 2 hours.

So I resized /dev/sdb2 which was ext3 so I would have enough swap to do suspend to disk and in the proccess the UUID changed for my swap partition. At first this just caused a long pause during the boot up which I tried to fix by reinstalling kubuntu-desktop from adept (this causes initramfs to update) while this got rid of the pause I believe it lead to my start up breaking after I trying to suspend to disk.

Here is what I used to fix the UUID problem:

to find the new UUID of my resized swap I used: (where sdb1 is the swap partition)
sudo blkid /dev/sdb1

then I updated the UUID in the following files for sdb1:

I updated intramfs using:
sudo update-initramfs -u

after I rebooted my problem was fixed.

now I did some messing around that got myself into a bind which I was able to work out. Here are some things I found out can break your system pretty bad:

DO NOT: run update-initramfs after chrooting from a liveCD
It fusses a ton about not being able to create /dev/null because the /dev/ folder isn't the real devices folder after the chroot. I tried to rename the /dev folder and symbolic link from the real one, but I got a different error saying that it couldn't creat /dev/null because of too many symbolic links. I was able to repair the damage I had done and restore the backed up initramfs image in the /boot/ folder. Then after using surfer2k3's idea to disable resume in the menu.lst file I was able to get around the sticking point at my boot where it said: "waiting for resume disk..."
Once it booted normally I was able to run update-initramfs as shown above and remove the noresume line from menu.lst. This fixed the startup hang time and my broken hibernate.

Last edited by vertago1; 07-17-2008 at 07:51 PM.


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
Is it possible to resize the swap partition after installation is completed? Akhran Linux - Newbie 5 08-07-2005 02:58 PM
Partition Hd fr DSL and Win XP p2 What size for part, & swap file beekers Linux - Newbie 4 06-09-2005 10:14 PM
Xp won't boot after partition resize Curtux Linux - General 7 04-04-2005 06:43 AM
How do I resize my linux swap partition? sdat1333 Fedora 5 12-06-2004 01:04 PM
Should I resize swap partition? snatale1 Linux - Newbie 9 12-27-2003 12:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration