[SOLVED] How to edit /etc/grub.d/00_header

[SOLVED] How to edit /etc/grub.d/00_header

Postby Neale » Fri Sep 07, 2012 10:48 pm

New to Linux (although heavy unix user in the 1980's) installing Zorin Lite on an old PC (1.2GHz / 256MB) to dual boot with Windows XP.

The install has mostly worked although I'm getting a system problem error at startup and haven't yet discovered how to install my wireless network drivers. But taking one problem at a time ...

At startup my monitor shows 'Input Not Supported'. If I leave it it starts Zorin, if I [2xDOWN] [ ENTER] the memory test starts. If I [4xDOWN] [ENTER] XP boots. So the boot menu is functioning but my display cannot show whatever it is grub2 is trying to show me.

I've researched and holding [SHIFT] or [ESC] during boot doesn't work. The most promising suggested solution is to edit 00_header and change the line gfxmode=Auto to gfxmode=1024x768 and edit the kernel boot line in 10_Linux to add/append vga-768.

But ... I can make these edits in leafpad but can't write them out. Presumably because I either need to change the permissions of the file, or run leafpad as root, or both.

How do I do I change those permissions or run leafpad as root? I'm not comfortable with editing the files with vi, but happy to try an alternate interactive editor (like leafpad) if that makes things easier.

Cheers,
--
Neale
Insanity is hereditary, you get it from your children
User avatar
Neale
 
Posts: 22
Joined: Fri Sep 07, 2012 10:18 pm

Re: How to edit /etc/grub.d/00_header

Postby Wolfman » Sat Sep 08, 2012 10:48 am

Hi,

go here and read the part about broken packages:

viewtopic.php?f=6&t=2247

Let us know if this helps!!.

Regards Wolfman :D
Regards Wolfman :D

Kindness is something that the blind can see and the deaf can hear :)

Preparation and planning prevent poor performance! :)

Free Ubuntu User Manual: https://ubuntu-manual.org/
User avatar
Wolfman
 
Posts: 6259
Joined: Sat Jul 02, 2011 1:03 pm

Re: How to edit /etc/grub.d/00_header

Postby madvinegar » Sat Sep 08, 2012 7:31 pm

Since you are using the lite edition I believe that your window manager is "pcmanfm".

So open terminal and write
Code: Select all
gksudo pcmanfm


The window browser will open, you will get a message saying something like "you cannot run pcmanfm as root" but just press ok and ignore it.
You will have root access to pcmanfm to change anything you like.
Zorin-OS 6 Ultimate 32bit - Kernel 3.2.0-29
Genuine Intel CPU T2250 1.73GHz ‖ RAM 3086 MiB ‖ Hewlett-Packard G5040ea
Intel Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller 1280x800
Realtek RTL-8139/8139C/8139C
Broadcom BCM4311 802.11b/g
User avatar
madvinegar
 
Posts: 2420
Joined: Wed Oct 19, 2011 12:18 pm

Re: How to edit /etc/grub.d/00_header

Postby Neale » Mon Sep 10, 2012 11:45 pm

Thanks for the tips. Here is where I'm at just now:

The startup error has gone. I think it was a disk error of some kind as when I booted XP it did a disk integrity check (chckdsk) and found errors that it fixed.

I've now been able to edit the file 00_header using "sudo leafpad". I changed the gfxmode to 1024x768 and then sudo update-grub. That showed the boot menu fine. After that I edited the file again to revert gfxmode to Auto, followed by sudo update-grub. It stayed working. I wonder therefore if there is a glitch in the v6 Lite installation that perhaps didn't correctly create grub.cfg.

So my next problem is the wireless card drivers - but I'll create a new discussion for that.
Cheers,
--
Neale
Insanity is hereditary, you get it from your children
User avatar
Neale
 
Posts: 22
Joined: Fri Sep 07, 2012 10:18 pm

Re: How to edit /etc/grub.d/00_header

Postby Neale » Mon Sep 10, 2012 11:50 pm

How can I mark my question as answered?
Cheers,
--
Neale
Insanity is hereditary, you get it from your children
User avatar
Neale
 
Posts: 22
Joined: Fri Sep 07, 2012 10:18 pm

Re: (SOLVED) How to edit /etc/grub.d/00_header

Postby Wolfman » Tue Sep 11, 2012 10:47 am

Hi,

go to first post in thread and edit the "Subject" line.

Marked as "Solved".

Regards Wolfman :D
Regards Wolfman :D

Kindness is something that the blind can see and the deaf can hear :)

Preparation and planning prevent poor performance! :)

Free Ubuntu User Manual: https://ubuntu-manual.org/
User avatar
Wolfman
 
Posts: 6259
Joined: Sat Jul 02, 2011 1:03 pm

Return to Installation

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests