VectorLinux
September 02, 2014, 05:43:21 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: How to edit Grub?  (Read 4164 times)
sa3atsky
Member
*
Posts: 13


« on: June 17, 2007, 03:03:19 am »

Hi, just installed Vector Linux and installed grub..
After that grub gives me error 17 on loading, I know this problem as Ive already experienced this before..

My pc is running through a sata contoller therefore the harddisks are referred to as (sda, sdb, sdc) instead of hd0 which is set as default for GRUB.. All I need to do is change "hd0" to "sda",.. How do I edit GRUB now? First of all, I cant find the grub.conf file anywhere, like it didnt install.. all I found was vgrubconf or something resembling that that I couldnt edit through the Vector Linux livecd which is the only working livecd i have right now.

Somebody please help me edit Grub.conf and get this over with coz I'm stuck at error 17, thanks..
Logged
stoichyu
Packager
Vectorite
****
Posts: 369



« Reply #1 on: June 17, 2007, 05:00:33 am »

grub.conf is usually just a symlink to menu.lst (which is the actual config file), it should be in /boot/grub, hope it helps. Cheesy
Logged

There's no place like ~.
VL 5.8 PentiumD 2.8Ghz Registered Linux User #432836
sa3atsky
Member
*
Posts: 13


« Reply #2 on: June 17, 2007, 12:53:06 pm »

And how do I go about editing this file???
Logged
retired1af
Packager
Vectorian
****
Posts: 1259



« Reply #3 on: June 17, 2007, 01:44:43 pm »

As root, you can type mcedit menu.lst and modify the file.
Logged

ASUS K73 Intel i3 Dual Core 2.3GHz
sa3atsky
Member
*
Posts: 13


« Reply #4 on: June 17, 2007, 02:19:52 pm »

Everytime I try to edit the file with nano it tells me it saves but the saved changes dont appear when I check the file again
It is still error 17 like I didnt do anything.. And there are a few files like menu.lst.save and menu.lst.save.1.. What the hell is going on?
In the beginning it says its generated by the vgrubconf file. How do I edit that? Grub sucks, please help!
Logged
sa3atsky
Member
*
Posts: 13


« Reply #5 on: June 17, 2007, 03:46:23 pm »

Heres my grub file: please have a look

Code:
# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'vgrubconf'.  Sun Jun 17 05:55:15 2007
#
# Start GRUB global section
timeout 60
default 0
splashimage=(sdb1)/boot/bitmap/boot.xpm
#color light-gray/blue black/light-gray
# End GRUB global section
# Linux bootable partition config begins
  title Linux on (/dev/sdb1)
  root (sdb1)
  kernel /boot/vmlinuz root=/dev/sdb1 ro vga=normal
# Linux bootable partition config ends
# Linux bootable partition config begins
  title Linux on (/dev/sdb2)
  root (sdb2)
  kernel /boot/vmlinuz root=/dev/sdb2 ro vga=normal
# Linux bootable partition config ends
# Other bootable partition config begins
  title Windows on (/dev/sdc1)
  map (hd0) (hd2)
  map (hd2) (hd0)
  rootnoverify (hd2,0)
  makeactive
  chainloader +1
# Other bootable partition config ends
title --- For help press 'c', type: 'help'
root (hd0)
title --- For usage examples, type: 'cat /boot/grub/grub.txt'
root (hd0)
Logged
sa3atsky
Member
*
Posts: 13


« Reply #6 on: June 17, 2007, 09:56:34 pm »

okay ive decided to uninstall grub and install lilo
I dont really need an "advanced" bootloader since Im gonna be only using Vector Linux and no other OS..
how do I uninstall grub??
Logged
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #7 on: June 17, 2007, 11:27:20 pm »

I'm not positive, but I think you can just overwrite GRUB in the Master Boot Record with LILO.
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
rbistolfi
Packager
Vectorian
****
Posts: 2282


« Reply #8 on: June 18, 2007, 08:41:13 am »

yep, there is no uninstall command, you need to overwrite the mbr, i.e., install lilo over.
Logged

"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!
sa3atsky
Member
*
Posts: 13


« Reply #9 on: June 18, 2007, 08:52:22 am »

My grub isnt in the Master boot record.. Its only in sdb1, the partition inwhich vectorlinux is installed

Do I just delete the folder in /boot/ ?
Logged
vvucic
Packager
Vectorite
****
Posts: 104


WWW
« Reply #10 on: June 19, 2007, 02:53:05 pm »

Hello,

no, do not deleet folder /boot.

I recommend you to read file that you can find on
www.gnulinuxcentar.org/bootloader.pdf
and after that decide what you want to do with  your bootloader.

regards,


veki
Logged
Triarius Fidelis
Vecteloper
Vectorian
****
Posts: 2399


Domine, exaudi vocem meam


WWW
« Reply #11 on: June 20, 2007, 10:14:19 am »

My grub isnt in the Master boot record.. Its only in sdb1, the partition inwhich vectorlinux is installed

Do I just delete the folder in /boot/ ?

If you install into the MBR, sdb1 will be ignored. If you install into sdb1, GRUB will be overwritten.

All out epic win for LILO either way.
Logged

"Leatherface, you BITCH! Ho Chi Minh, hah hah hah!"

Formerly known as "Epic Fail Guy" and "Döden" in recent months
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!