bugGNU GRUB - Bugs: bug #31425, Post GRUB2 update /boot prefix no...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31425: Post GRUB2 update /boot prefix no longer needed

Submitter:  Mark W <nireus2>
Submitted:  Sat 23 Oct 2010 12:38:17 PM UTC
   
 
Category:  Booting Severity:  Major
Priority:  5 - Normal Item Group:  Non-software Error
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  Mark W
Open/Closed:  Closed Release:  1.98
Release:  Reproducibility:  None
Planned Release:  None

Jump to the original submission

Tue 26 Oct 2010 04:39:48 PM UTC, comment #10: 

Just had GRUB2 update on my debian testing (same machine) now got GRUB2 version: 1.98+20100804-7 and I can confirm it works. No /boot prefix. Even double check with manual grub-update. Cheers. Closed.

Mark W <nireus2>
Sun 24 Oct 2010 05:01:40 PM UTC, comment #9: 

The problem is tat KMS doesn't properly handoff from efifb (core part of it is schedulded to be renamed to linearfb and efifb converted to a code using linearfb). I'll make this configurable when time permits

Vladimir Serbinenko <phcoder>
Group administrator
Sun 24 Oct 2010 04:02:33 PM UTC, comment #8: 

OK, so did a grub-update with distro version and that did as expected leaving the /boot in place. Then did:
cd /opt/grub ; make install ; grub-install -v
grub-install (GRUB) 1.99~beta0

Next did:
grub-install /dev/sda; grub-install /dev/sdb; grub-install /dev/sdc
Installation finished. No error reported.
Installation finished. No error reported.
Installation finished. No error reported.
update-grub -v
grub-mkconfig (GRUB) 1.99~beta0
update-grub
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-5-amd64
Found initrd image: /boot/initrd.img-2.6.32-5-amd64
Found Microsoft Windows XP Professional on /dev/sdb1
done
I had a quick look at the /boot/grub/grub.cfg file and the /boot prefixes are gone, so was hopeful and rebooted...

All rebooted ok but the screen corrupts and gdm3 fails to load, might have something to do with these lines??
load_video
set gfxpayload=keep

So have
cd /opt/grub
make uninstalled
grub-install /dev/sda; grub-install /dev/sdb; grub-install /dev/sdc
update-grub
and manually edited the updated grub.cfg file to remove the /boot prefixes

Upshot is I can confirm that 1.99~beta0 does indeed not put the /boot prefix into the grub.cfg after a grub-update

Why the graphics fails I don't know. Hope this helpful. Have attached the two grub.cfg files and photo of messed up video.


(file #21791, file #21792,

Mark W <nireus2>
Sun 24 Oct 2010 02:39:26 PM UTC, comment #7: 

You need probably to install with
grub-install /dev/sda
For safety you can do:
grub-install /dev/sda; grub-install /dev/sdb; grub-install /dev/sdc

Vladimir Serbinenko <phcoder>
Group administrator
Sun 24 Oct 2010 01:23:44 PM UTC, comment #6: 

sdc is where the grub boot files are. Have attached a full output from fdisk -l for you to see. You will note the /dev/dm-0 /dev/dm-1 and /dev/dm-2 which are LVM things. Could this be a cause?

4 drives in BIOS Order:
Disk /dev/sda: 300.1 GB (form XP drive now data, was bootable)
Disk /dev/sdb: 500.1 GB (windows XP drive bootable)
Disk /dev/sdc: 1000.2 GB is the Proper Linux drive
Disk /dev/sdd: 1500.3 GB (ntfs data drive)

So I am back to working system with maintainers GRUB version 1.98+20100804-6 and manually removing the /boot.

However during the various testing I think 1.98+20100804-6 and version 1.99 (self build) were getting mixed up during the grub-install /dev/sdc command and this is why: In my panic I did and apt-get install --reinstall grub forgetting I wanted grub2 so got grub 0.97-63. I then manually edited ONE line in /boot/grub/grub.cfg taking out ONE /boot prefix and then did update-grub and I noticed that ALL /boot prefixes were removed. Course things were not good cos I was booting with grub 0.97-63 with some grub2 stuff. Hope my bumbling and rambling helped.

Attached copies of grub.cfg (installed is the one made by grub and myedit is my removal of the prefix /boot)

(file #21787, file #21788, file #21789)

Mark W <nireus2>
Sun 24 Oct 2010 09:01:03 AM UTC, comment #5: 

error: symbol not found: 'grub_err_printed_errors'. means that you intalled grub to a device other than your boot device without using --boot-directory. Are you sure that you boot from sdc?

Vladimir Serbinenko <phcoder>
Group administrator
Sat 23 Oct 2010 11:17:58 PM UTC, comment #4: 

Had to use debian install, rescue CD ;-( and that brought all back to life. Same problem obviously. WIll be manually editing the grub.cfg to remove the /boot pre-fixes. I can help and give more information but as you see I have no idea why my build failed to boot.

Mark W <nireus2>
Sat 23 Oct 2010 09:19:47 PM UTC, comment #3: 

I wish I had not ;-( I got latest version from upstream bzr, made sure had the required build components, did the autogen, configure, make and then as root make install, all seemed to go well. To check whether this new version went over the debian package one that was installed I did: grub-install -v and that showed v1.99 (some other letter too I think), so then I did:
grub-install /dev/sdc and that said installed no reported errors. Then I rebooted and it drops to grub rescue with this error:

GRUB loading.
Welcome to GRUB!
error: symbol not found: 'grub_err_printed_errors'.
Entering rescue mode...
grub rescue>

Just going off to read the manual to see what to do and whether it's a liveCD job to get system to boot.

Anyway, I tried to help ;-)

Mark W <nireus2>
Sat 23 Oct 2010 06:42:36 PM UTC, comment #2: 

BTW when I mean to test, I mean upstream bzr.

Vladimir Serbinenko <phcoder>
Group administrator
Sat 23 Oct 2010 06:41:47 PM UTC, comment #1: 

Please retest

Vladimir Serbinenko <phcoder>
Group administrator
Sat 23 Oct 2010 12:38:17 PM UTC, original submission:  

GRUB2: 1.98+20100804-6
Debian: sid/squeeze (testing)
uname -a: Linux Flo64 2.6.32-5-amd64 #1 SMP Wed Oct 20 00:05:22 UTC 2010 x86_64 GNU/Linux
kernel: 2.6.32-26 (2.6.32+28 meta package)

4 physical SATA drives. fdisk -l | grep Disk:
Disk /dev/sdb: 500.1 GB, 500107862016 bytes
Disk identifier: 0xf4b1995e
Disk /dev/sda: 300.1 GB, 300069052416 bytes
Disk identifier: 0x13871386
Disk /dev/sdd: 1500.3 GB, 1500301910016 bytes
Disk identifier: 0xcb9e8977
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
Disk identifier: 0x000d495f
Disk /dev/dm-0: 6996 MB, 6996099072 bytes
Disk identifier: 0x00000000
Disk /dev/dm-1: 12.2 GB, 12192841728 bytes
Disk identifier: 0x00000000
Disk /dev/dm-2: 980.8 GB, 980754104320 bytes
Disk identifier: 0x00000000

The GRUB menu appears with my 3 menu entry's but when it tries to boot to either of the Linux images (alternate is 2nd, so only one kernel), if reports file not found (for the kernel and for initrd). So I dropped to the command line and did an 'ls'  and a 'ls /' and the ls yeilded the kernel and ls / the drives.

On a gut shot feeling I brought back the menu and went to edit it, this is the grub one:
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set c3d6a582-5500-43b1-aeba-bdd7fc669419
echo 'Loading Linux 2.6.32-5-amd64 ...'
linux /boot/vmlinuz-2.6.32-5-amd64 root=/dev/mapper/Flo64-root ro  quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-amd64

So I removed the /boot from linux and initrd

linux /vmlinuz-2.6.32-5-amd64 root=/dev/mapper/Flo64-root ro  quiet
initrd /initrd.img-2.6.32-5-amd64


and did a picard (for those who have not read the manual, I booted), that worked fine.

So then I figured after the GRUB update it was my fault as GRUB ticks all my drives to install to apart from the actual linux drive and I had forgotten to select /dev/sdc (the installer always leaves this unchecked and it shows the partitions of sdc for selection). NB DEVELOPERS always refuse to install to /dev/sdc1 please cos I am absent minded and often tick sdc1 rather than the unticked sdc

So then I just ran grub-install /dev/sdc and rebooted but the same problem is still there, I have to edit the entry removing /boot on the two lines then picard it.

I can manual edit the grub file permantly but am loathe to do just in case it is a bug and will mess things up at next refit.

Have attached grub.cfg and here is a directory list of /boot
ls -l /boot
total 13969
-rw-r--r-- 1 root root   106019 Oct 20 03:30 config-2.6.32-5-amd64
drwxr-xr-x 3 root root     4096 Oct 23 12:32 grub
-rw-r--r-- 1 root root 10038870 Oct 22 11:14 initrd.img-2.6.32-5-amd64
drwxr-xr-x 2 root root    12288 Jun 30  2009 lost+found
drwxr-xr-x 2 root root     1024 Aug 29 22:14 Recycled
-rw-r--r-- 1 root root  1661060 Oct 20 03:30 System.map-2.6.32-5-amd64
-rw-r--r-- 1 root root  2416736 Oct 20 03:28 vmlinuz-2.6.32-5-amd64

should lost+found and Recycled be in there??



Mark W <nireus2>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #21791:  grub.cfg-v1.98+20100804-6 added by nireus2 (3KiB - application/octet-stream)
file #21792:  grub.cfg-v099beta added by nireus2 (3KiB - application/octet-stream)
file #21787:  fdisk-1.txt added by nireus2 (3KiB - text/plain)
file #21788:  grub.cfg-installed added by nireus2 (3KiB - application/octet-stream)
file #21789:  grub.cfg-myedit added by nireus2 (3KiB - application/octet-stream)
file #21765:  grub.cfg added by nireus2 (3KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by nireus2 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-26 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-10-24 nireus2 Attached File- Added grub.cfg-v1.98+20100804-6, #21791
        Attached File- Added grub.cfg-v099beta, #21792
        Attached File- Added GRUBvideo-v1.99beta0fail.JPG, #21793
    2010-10-24 nireus2 Attached File- Added fdisk-1.txt, #21787
        Attached File- Added grub.cfg-installed, #21788
        Attached File- Added grub.cfg-myedit, #21789
    2010-10-23 nireus2 Attached File- Added grub.cfg, #21765

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code