Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 12-07-2007, 07:53 PM   #1 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default help in updating grub after moving /boot to a different partition

this is my present setup now:

/boot on hd(0,7) - boot partition
/ on hd(0,9) - root partition
and other std. linux and windows partitions.

when i installed ubuntu 7.04 my setup was like this
/boot on hd(0,8 ) - boot partition
/ on hd(0.9) - root partition
and other std. linux and windows partitions.

recently i split a fat32 partition into two using gparted from widin ubuntu and rearranged/formatted some partitions. now my setup is as shown above. everything is working fine and i face no problems as such. i updated grub and edited the entries so that it points to the correct boot partition.

problem is when ubuntu automatically runs the grub-update command (for e.g after making any changes or installing/updating the kernel/modules). when the grub update is automatically run it installs grub but it edits the menu.lst file to include the boot partition wid the old value (hd0,8 ) whereas now the boot partition is on hd(0,7). everytime this happens i hafta make sure that i manually edit the grub menu list and change hd(0,8 ) to hd(0,7) otherwise it fails to boot (of corz i can edit the command line from widin grub and correct it but i dun want this hassle). please do help me out. i did search on the net... but cudn't find anything which was productive for me.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-07-2007, 08:01 PM   #2 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default Re: help in updating grub after moving /boot to a different partition

I know this phenomenon where partn numbers are changed,experienced before.the soltn will be for one thing use fdisk /dev/hda and go to expert mode to fix partn order.(press x;press f)
and if that doesnt go well,go to /boot/grub/menu.lst and see the entries kopt and groot correct.also the option # updatedefaultentry=false to be set.
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 12-07-2007, 08:51 PM   #3 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: help in updating grub after moving /boot to a different partition

^^^ oops!!! that worsned things!!! had to do some restoration work. any other suggestions? does grub store the boot partition number somewhere? i'm unable to find that....
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 12-07-2007, 09:31 PM   #4 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default Re: help in updating grub after moving /boot to a different partition

Only think am aware of is setting menu.lst correct options.grub manual sure got more info.
http://www.gnu.org/software/grub/
I have gone through this partn number changing when with Windows XP installed and changed partn.that time grub was reinstalled and it correctly detects.one thing you can do is try setting grub manually(be sure about /boot and / ).try
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 12-07-2007, 09:38 PM   #5 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: help in updating grub after moving /boot to a different partition

Quote:
Originally Posted by praka123
one thing you can do is try setting grub manually(be sure about /boot and / ).try
yeah thats what i do after every update which i wanna avoid. i'm not able to find out where does grub store the boot partition number.
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 12-07-2007, 09:39 PM   #6 (permalink)
UbuntuUser
 
cynosure's Avatar
 
Join Date: Sep 2006
Location: India
Posts: 741
Default Re: help in updating grub after moving /boot to a different partition

I downloaded Super Grub Installer a few months back. It has some advanced options in it.
I havnt used it much (And when I do, I always screw up the boot order), but try it.
__________________
Core 2 Quad Q6600 G0, XFX 650i ultra, XFX 8600GT 512MB, Seagate 320GB, Altec Lansing ATP3, 2x1GB 800MHz, 19" Viewsonic VA1912WB, LiteOn DVD burner, Logitech K/B, mouse, Amigo 500W PSU, Local Cabby.
cynosure is offline  
Old 12-07-2007, 09:39 PM   #7 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: help in updating grub after moving /boot to a different partition

edit: how stupid of me! i've been looking everywhere but /usr/sbin/update-grub script!!!

will try to go thru it and edit it once and for all!!! will get back if i face any problems!
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com
infra_red_dude is offline  
Old 12-07-2007, 10:04 PM   #8 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Default Re: help in updating grub after moving /boot to a different partition

aah...editing scripts?I dont know how it helps
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org
praka123 is offline  
Old 12-07-2007, 11:05 PM   #9 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: help in updating grub after moving /boot to a different partition

oops!! no not editing the script. trying to figure from where and how the update-script obtains the boot partition number

edit: the find_device function in the script is responsible for determining the boot partition number.... hmm.. gotta dig out more now!

edit2: i guess i'll hafta go thru it several times to understand it. i'm no programmer.. mebbe someone can help me
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com

Last edited by infra_red_dude; 12-07-2007 at 11:05 PM. Reason: Automerged Doublepost
infra_red_dude is offline  
Old 14-07-2007, 05:21 AM   #10 (permalink)
left this forum longback
 
praka123's Avatar
 
Join Date: Sep 2005
Location: -
Posts: 7,513
Exclamation Re: help in updating grub after moving /boot to a different partition

Do u have a seperate /boot partn?if true,there may be chance that u got grub installed to ur /boot dir on / root partn instead of /boot partition.also ur /etc/fstab shud be checked.post here.
again scrutinize ur /boot/grub/menu.lst groot= entry
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,8 )
^mine.i got a seperate /boot partn @/dev/sda9 so in grub (hd0,8 )
u know that
onlything u can check is that ur hdd is detected correctly by looking at /boot/grub/device.map for correct entries of ur hdds.
for eg; mine got:
Code:
(hd0)   /dev/sda
there.for multiple hdd i think u know how to enter then.
another problem somewhere i read was grub got problem in reading partn entered as uuid's and LABEL's instead of direct name.although blkid command can show the o/p.
edit:all ur manual edits in menu.lst must not be btwn:

### BEGIN AUTOMAGIC KERNELS LIST
and
### END DEBIAN AUTOMAGIC KERNELS LIST

else they are over written !!!
__________________
left this forum long back.Admin Can Delete this Account and posts Permanantly.Thank You
Get GNU/Linux - http://getgnulinux.org

Last edited by praka123; 14-07-2007 at 06:21 AM.
praka123 is offline  
Old 15-07-2007, 01:27 PM   #11 (permalink)
Wire muncher!
 
infra_red_dude's Avatar
 
Join Date: Nov 2003
Posts: 6,164
Default Re: help in updating grub after moving /boot to a different partition

thank you prakash! i guess the problem is solved!! i'll test it as soon as i can!

yes prakash! problem solved.. tested today! thanks pal but now the update-grub boot script refuses to detect the windows vista installation and removes the entry from the the menu list... so i haf a backup menu list... which i hafta replace again everytime...
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good."

http://phoenix-ani.blogspot.com

Last edited by infra_red_dude; 15-07-2007 at 01:27 PM. Reason: Automerged Doublepost
infra_red_dude is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add VISTA's boot entry to GRUB eagle_y2j Open Source 45 24-02-2007 10:33 AM
grub master boot record error Ramakrishnan Software Q&A 2 28-03-2006 12:02 PM
Remove GRUB Boot Loader wtf Open Source 8 10-08-2005 05:02 PM
Install GRUB on other partition dabster Open Source 5 06-08-2005 01:00 PM
grub boot loader query niranjan_mcarenyold Open Source 6 13-06-2005 12:30 AM


All times are GMT +5.5. The time now is 08:37 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2