LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2008, 09:06 PM   #1
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245
Blog Entries: 2

Rep: Reputation: 41
Installing issues with grub


I have downloaded and installed grub 2 from this site. After the install was done, I found grub-install and grub-setup, but no grub. Did I do something wrong? Install the wrong file or something?

I've been trying to install grub to my USB device, in which I followed the instructions with grub-install, to which no grub was installed onto the USB's boot record. Instead the device still has a broken lilo on it which hangs after the first three characters of lilo are printed to screen.

<Just thinking about it, maybe someone here could help me to decide if I want to keep looking into this>

I am a noob to linux, and after having a few problems with boot programs, I've decided to see if it was possible to find or create a boot disk for a USB device in which any distro or OS for that matter could be loaded from it.

It wouldn't work like the regular boot managers I've seen so far (perhaps I haven't looked in the right places yet).

This is one odd problem I've had. I use Zenwalk 5.2 on a regular basis, but sometimes while installing different distro's onto another hard drive, they either don't install the boot loader correctly, or install the second OS as the first distro to boot into, which I'd rather have Zenwalk first.

The last time I had this problem, I used the Vector Linux 5.8 gold edition liveCD and booted up in that and ran Zenwalk. Well, Vector reads the HD's as hd# where as Zenwalk reads them as sd# so the config files wouldn't work correctly in Zenwalk.

So, thinking of this only in a noobie way, I'm wondering and have been searching to see if it's possible to create a bootable disk which would allow me (i.e. the user) to input how a disk is to be read and what image file will be loaded (if possible). Such as if I was trying to load Zenwalk from the boot disk, I could just type in something like vmlinuz (sd0,1), and if I were to run a different kernel (I think that's the correct name for it, or image file, I'm still a bit new) then I could type in something like (sd0,1) /boot/memtest86.bin.

I think grub can do this, but I'm not sure, which is why I want a working grub on my USB so I can test it and learn how to use it...

Anyway, thanks for any help anyone can give me...
 
Old 11-11-2008, 09:47 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
I don't know if grub 2 supports USB yet. Try the old (legacy) grub. Perhaps have a look at supergrubdisk for inspiration.
 
Old 11-11-2008, 10:01 PM   #3
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245

Original Poster
Blog Entries: 2

Rep: Reputation: 41
I've actually got Supergrubdisk for USB .9590 and .9766, but I need grub to install them, I guess from what all I've read in the readme's...I'll try legacy and see if that gets me going...

Thanks

Last edited by Mol_Bolom; 11-11-2008 at 11:15 PM.
 
Old 11-12-2008, 12:00 AM   #4
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245

Original Poster
Blog Entries: 2

Rep: Reputation: 41
Alrighty then. I downloaded and installed grub .97. Everything seemed to work fine. grub's there, grub-install is there, too...However, wont install to my USB. I think I've read that there is a problem with USB's and grub...

Anyway, any suggestions?

This is what I got when I tried it, using the text files that come with the Super Grub Disk files.

Code:
grub> root (hd3,0)
 Filesystem type is ext2fs, partition type 0x83

grub> setup (hd3)
 Checking if "/boot/grub/stage1" exists... no
 Checking if "/grub/stage1" exists... no

Error 2: Bad file or directory type
I'll try to copy the files from /boot/grub to the usb /boot/grub and see if that does it...
 
Old 11-12-2008, 01:20 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
Can't see why it won't work - I just did a (successful) test on an old 256Meg key. Loaded the kernel, died trying to mount the root - as it should (in my case) as there wasn't one ...
 
Old 11-12-2008, 01:34 AM   #6
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245

Original Poster
Blog Entries: 2

Rep: Reputation: 41
I think my computer is haunted...Not the first time someones said something along the line of "I don't know why", LOL...

I tried about 2 more things I've seen in different forums around the web, but yet, same results...I'll try to see if it might be just a problem with .97...Well, if it is a problem with .97, then that means that I should go after one of the versions between .97 and 1.96...Both don't work...

Which version of grub did you use?
 
Old 11-12-2008, 01:41 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,365

Rep: Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190Reputation: 4190
0.97 - just created a /boot, and copied the whole lot (you need the grub sub directory) with "cp -a ..." Then issued commands similar to yours above.
 
Old 11-12-2008, 01:48 AM   #8
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245

Original Poster
Blog Entries: 2

Rep: Reputation: 41
Yep, that's what I done, too...

First, I copied the Super Grub Disk files over to /boot, then tried to install grub...Fail...
Second, I copied the /boot/grub from the HD to the USB, then tried to install grub...Fail...

Just keep getting that error, and only the first three characters of lilo when I try to boot with it...Driving me bonkers...
 
Old 11-12-2008, 02:19 AM   #9
Mol_Bolom
Member
 
Registered: Nov 2008
Location: S.W. Kansas
Distribution: Slackware64 14.0 / 14.2
Posts: 245

Original Poster
Blog Entries: 2

Rep: Reputation: 41
Well, reach into a pot and grab a wet noodle and slap me happy...It's there now...Didn't do anything different...One of the errors I must have gotten was a lie...Ha ha ha...Or it might have had something to do with copying Damn small linux over to the drive...I don't know...Either way...Odd as hell...Now if only I can get it to work...That'll be on task for tomarrow...One step closer, ha ha...

Thank's...

<Edit> Used cat to create a menu file to load DSL following these instructions http://www.damnsmalllinux.org/wiki/i...SB_Flash_Drive. grub, gone...The first three characters of lilo are back...

Last edited by Mol_Bolom; 11-12-2008 at 11:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
installing GRUB 2, grub-install problem r00tb33r Linux - Software 1 02-26-2007 09:42 PM
Installing SUSE 10.1 on a Tyan Tomcat board - GRUB READ ERROR ISSUES cyclocrossguy Linux - Hardware 3 08-14-2006 01:13 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
Why grub prompt after installing Grub inder Debian woody 3.0r2? velan Debian 1 04-20-2004 04:55 AM
Grub issues raid517 Linux - Software 2 02-19-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration