LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-04-2008, 03:17 PM   #1
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Rep: Reputation: 30
GRUB on floppy, how to add modules?


I have successfully loaded Linux onto a EIDE 40GB HD with Firewire PCI. I had to try several times. It needed the "sbp2" module. It worked on install after using that module. The BIOS does not see the Firewire PCI, but Linux sees it if I have that module. I read about initrd and you can load modules with it. When I did the install it did not ask me about initrd. It only asked for install bootloader location, to mbr, floppy, or none. I put it on floppy. The BIOS can see floppy. Now it will not boot, GRUB does not see Firewire PCI. Ubuntu Studio 7.10.

1) How do I add the module "sbp2" to the floppy?
2) The Firewire PCI is seen as SCSI sda. How do I put that into the menu.lst?

Last edited by newtovanilla; 05-04-2008 at 03:18 PM.
 
Old 05-04-2008, 06:21 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If ubuntu is the only distro you have you should have instructed grub to put the bootloader in the mbr. This way it will instruct ubuntu to boot everytime the set is started. If you have more distros then please give us your 'fdisk -ls' and '/boot/grub/menu.lst'.

I am sorry after reading I see it must be a detachable external hd, please provide a 'fdisk -ls'

Last edited by Larry Webb; 05-04-2008 at 06:24 PM.
 
Old 05-04-2008, 07:57 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,093

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
You will need everything required to boot on the floppy - this includes the kernel and the sbp2 support (in an initrd). Just installing grub to the floppy is insufficient if the BIOS doesn't present the external as a bootable device - grub relies on the BIOS, a running Linux doesn't (usually).
Should be plenty of guides on the net.
 
Old 05-05-2008, 05:01 PM   #4
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Thank you for the comment. I looked on the web and found:

http://www.gnu.org/software/grub/manual/grub.html

I read the parts about booting and I tried to see if that would help it to work. It did not work.

Quote:
You will need everything required to boot on the floppy - this includes the kernel and the sbp2 support
The answer that you gave about putting it all on floppy including the kernel will not work. The kernel itself is 1.5MB file, the "vmliuz-2.6.20-default" file. That will not fit on the floppy with GRUB and initrd. Is there another way? What search terms would I use in Google to find the help on how to get this to boot? I am new to Linux and to the words to use for this type of boot.
 
Old 05-05-2008, 05:37 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I have not read the article but if you need 1.6 meg or better then put on a cd or one of your bootable hds. As syg00 said 'Grub relies on the bios'.

There are numerous articles out there explaining on making a bootable cd

Last edited by Larry Webb; 05-05-2008 at 05:38 PM.
 
Old 05-05-2008, 05:37 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,093

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Is this your only hard-disk ???.
A small amount of space on an internal disk would solve this easily.
 
Old 05-05-2008, 05:47 PM   #7
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Question

Where can a find an article or a web that will tell me how I can put this onto a CD instead of onto a floppy? I am able to boot from CD and the BIOS will support booting from CD. Could you tell me what search terms to use in Google?

This is a Firewire caddy. The HD is EIDE, and I have SATA and PATA on the computer itself. There is a Firewire PCI card in it. I can boot from CD, if you can tell me what to look for or a web link.
 
Old 05-05-2008, 05:53 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,800

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Your question is vague.
My interpretation is that you just want to be able to access the drive and not use it as a boot device. If this is true then you do not need to modify your grub menu.lst nor the initrd.

Why do you want to boot from floppy?
 
Old 05-05-2008, 06:56 PM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Is ubuntu the only linux distro you have on this computer?
 
Old 05-05-2008, 07:12 PM   #10
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Quote:
"If ubuntu is the only distro you have you should have instructed grub to put the bootloader in the mbr."
This did not work. GRUB does not see the Firewire PCI. Linux sees it though with the module. I was going to make a bootable floppy with GRUB, the kernel, and the module. That takes too much space. The kernel is 1.5MB. I am trying to make a cd.

The command line is not working now. When I reboot, if I have not figured out how to get it to work before then I can put the "fdisk -l" output.

Quote:
Your question is vague.
I am trying to figure out how to boot the Firewire PCI EIDE HD when the BIOS does not boot from it by making a cd. I do not know how to make this cd, and do not know what files to put on the cd and do not know what way to write the cd. I have made iso image cd before. Is it the same way? I have the kernel image "vmlinuz-2.6.30-default" and I have the boot/grub/menu.lst file.
 
Old 05-05-2008, 08:23 PM   #11
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Here is the menu.lst:

Quote:
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,0)/boot/gfxmenu
default 0

title linux
kernel (hd0,0)/boot/vmlinuz-2.6.20-default root=/dev/sdb1 resume=/dev/sdb5 splash=silent vga=788
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz-2.6.20-default root=/dev/sda1 failsafe
initrd (hd0,0)/boot/initrd.img
Here is the /etc/fstab:

Quote:
/dev/sda1 / ext3 relatime 1 1
/dev/sda6 /home ext3 relatime 1 2
/dev/cdrom /media/cdrom auto umask=0022,users,ro,noauto,exec,iocharset=utf8 0 0
/dev/fd0 /media/floppy auto umask=0022,users,noauto,exec,iocharset=utf8,flush 0 0
none /proc proc defaults 0 0
/dev/sda5 swap swap defaults 0 0
Here is the "fdisk -l"
Quote:
Disk /dev/sda: 33.8 GB, 33820284928 bytes
255 heads, 63 sectors/track, 4111 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x001769c3

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1019 8185086 83 Linux
/dev/sda2 1020 4111 24836490 5 Extended
/dev/sda5 1020 1528 4088511 82 Linux swap / Solaris
/dev/sda6 1529 4111 20747916 83 Linux
 
Old 05-05-2008, 08:54 PM   #12
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by newtovanilla View Post
Where can a find an article or a web that will tell me how I can put this onto a CD instead of onto a floppy? I am able to boot from CD and the BIOS will support booting from CD. Could you tell me what search terms to use in Google?

This is a Firewire caddy. The HD is EIDE, and I have SATA and PATA on the computer itself. There is a Firewire PCI card in it. I can boot from CD, if you can tell me what to look for or a web link.

To answer your first question
http://www.google.com/search?hl=en&q...=Google+Search

You say you have a sata and a pata besides this hd that has ubuntu on it. When I look at your fdisk -l, I only see one hd.

Last edited by Larry Webb; 05-05-2008 at 09:01 PM.
 
Old 05-05-2008, 09:10 PM   #13
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,800

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Ok, So you want to create a bootable CD to run linux from a firewire hard drive. Check out the following link.

http://www-128.ibm.com/developerwork...-fireboot.html
 
Old 05-05-2008, 11:43 PM   #14
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Smile Thank you for the links, I think that is what I was looking for

http://www-128.ibm.com/developerwork...-fireboot.html

Thank you for your comments. I think that this article is what I was looking for. It answers some of my post. I still need to figure out what files to write to the cd and what commands to use for that if I can not just use the k3b writer. This article almost gets me to boot the Linux on the Firewire! Thank you for finding it. Could you tell me what search words you used to find it?

Quote:
If your drive is not detected automatically, some further steps may be required -- for instance, you might have to pass boot options to enable FireWire or PCMCIA, or you might have to manually load some kernel modules, or other things of that sort (see Resources for links to troubleshooting guides).
From the link about Firewire. I have done the installation step already. That was before I posted. I have Linux installed on the Firewire PCI EIDE HD. I need to find the way to do the "Troubleshooting" step that is mentioned in that link. They have some resources there and I will take a look at it. Could you tell me if you know of a step-by-step how to for that? I originally posted with asking how I can add the module to GRUB or to a boot cd so that it can see the Firewire. It does not see it with only GRUB because the BIOS does not see it. I tried to explain this but it is new to me and I am a newbie at Linux.

Quote:
"Rather, it should be installed in the root partition (or boot partition, if you use a separate one) of the external drive."
I can do this part, I think.
Quote:
"After installing GRUB in the MBR of the external drive, I was able to boot it directly when connected via USB. Simply enter the BIOS setup utility while booting with the disk connected. The external disk will appear as a regular hard drive: move it so it is before the internal drive in the boot order."
I can not do this. It does not see the Firewire. I need to load the module. I do not know how to do that. That is what I asked first.
Quote:
"#for FireWire
# modprobe ieee1394
# modprobe ohci1394
# modprobe raw1394
# modprobe sbp2"
This is what I need to do for Firewire. I think that I need to do the two-phase boot mentioned.

Quote:
"All we are doing is loading the appropriate modules to support the external drive: they should be uncommented as required."
This is what I want to do. Load sbp2. I can type all of the code in the example and try it. Could you tell me how I then put it onto cd? I have made cd iso image from Linux and I know how to do that in k3b. I do not know what files to put into cd, what directory to put them in to, and if I should make a data disk or not. The article did not go into that detail. It did talk about a floppy, but my kernel is 1.5MB.

Quote:
When I look at your fdisk -l, I only see one hd.
I am only using the Firewire PCI EIDE HD.
 
Old 05-06-2008, 01:53 AM   #15
newtovanilla
Member
 
Registered: Apr 2008
Posts: 267

Original Poster
Rep: Reputation: 30
Quote:
All we now need to do is copy the relevant files into the initrd image (you can mount the uncompressed image using the mount -o loop command). In particular, we need to ensure that we have the linuxrc file, all of the commands used therein, and any libraries that those commands rely on. The (unmounted) image can then be optionally compressed.
I tried the "mount -o loop" command with "initrd-2.6.20-default.img". It gave error:
Quote:
mount: you must specify the filesystem type.
I looked up the mount command. I tried to find out what type of filesystem it is:
Quote:
gzip compressed data, was "initrd"
How can I use the mount command to find out what is in the initrd and then to copy whatever else it needs so that I can add the modules to GRUB and get Linux to boot and get this post done?
 
  


Reply

Tags
firewire, grub


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
How To add Modules DigitalBlue Linux - Newbie 3 10-11-2005 06:19 AM
add ethernet modules piva.francesco Linux - Software 5 05-09-2005 03:18 AM
add CD-ROM? add Floppy? Devices? Kelphyr Slackware 5 10-10-2004 06:17 PM
PCMCIA modules / no floppy ... Maxamillion Linux - Hardware 2 07-28-2003 12:12 AM
how to add floppy option in grub? JIV Linux - Software 3 05-03-2003 08:51 PM


All times are GMT -5. The time now is 09:06 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration