LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-17-2008, 02:40 AM   #16
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671

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".
 
  


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


All times are GMT -5. The time now is 11:35 PM.

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