| Forum |
|
|||||||
| 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. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
/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 |
|
|
| Advertisements. Register and be a member of the community to get rid of them. | |
|
Advertisement
|
|
|
|
#2 (permalink) |
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,513
|
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 |
|
|
|
|
#3 (permalink) |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
^^^ oops!!! that worsned things!!!
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good." http://phoenix-ani.blogspot.com |
|
|
|
|
#4 (permalink) |
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,513
|
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 |
|
|
|
|
#5 (permalink) | |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
Quote:
__________________
"The true measure of a man is how he treats someone who can do him absolutely no good." http://phoenix-ani.blogspot.com |
|
|
|
|
|
#6 (permalink) |
|
UbuntuUser
Join Date: Sep 2006
Location: India
Posts: 741
|
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
__________________
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. |
|
|
|
|
#7 (permalink) |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
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 |
|
|
|
|
#8 (permalink) |
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,513
|
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 |
|
|
|
|
#9 (permalink) |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
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 |
|
|
|
|
#10 (permalink) |
|
left this forum longback
Join Date: Sep 2005
Location: -
Posts: 7,513
|
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 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. |
|
|
|
|
#11 (permalink) |
|
Wire muncher!
Join Date: Nov 2003
Posts: 6,164
|
thank you prakash!
yes prakash! problem solved.. tested today! thanks pal
__________________
"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 |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
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 |