Download your favorite Linux distribution at LQ ISO.
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 09-17-2008, 01:40 AM   #16
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678Reputation: 678

Swap used to be /dev/sda6. So you changed the order of the partitions, and so the names have changed.

You can enter the grub shell and use tab completion to locate which partition has the /boot partition or directory. You just need to enter 3 lines. One for the kernel. One for the initrd file and then the command "boot".
Start with "kernel (hd0," and press tab. You will get a list of your partitions. You want either (hd0,5)/ or (hd0,6)/. Using tab completion you don't need to know the exact version of the kernel by heart.

After booting up (hopefully), you will need to edit your /boot/grub/menu.lst and /etc/fstab file. In the menu.lst file correct the references to the effected partitions. Grub uses a notation like (hd0,4) which is equivalent to /dev/sda5. Don't forget to correct the resume= entry in the kernel boot options. This is the "kernel" line in /etc/grub/menu.lst. It should refer to your swap partition which is /dev/sda8. Don't use the grub device notation for it, because it is a kernel boot option and not a grub value.

After saving your edits, run "sudo /sbin/grub-install /dev/sda".


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
Unable to Resize NTFS partition with 4 different partition editors Alexandrian Linux - Newbie 11 05-19-2006 06:09 PM
Disk Partition Resize Trouble and Partition Questions GNewbie Linux - Newbie 2 11-15-2005 04:15 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
Partition Out Of Space? How to resize from another partition? colelinux Linux - Newbie 6 03-16-2004 08:48 AM
resize an ext3 partition with coexisting ntfs partition andy_g Linux - Newbie 1 02-03-2004 05:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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