Robert Connolly | 2 Jun 05:11 2005
Picon

usb booting

Hello. I have some problems booting from usb, maybe someone here knows what's 
wrong. I have a Verbatim Store 'n' Go Pro 256MB usb flash drive, and an Intel 
D865PERL mainboard.

With the flash plugged in, when I go in bios the flash is detected as 
removable media, and usb booting is enabled. If I write a 2.6 kernel directly 
to /dev/sdb I get a message on boot saying "You can't boot without a boot 
loader anymore". So far so good.

When I install Grub to it and try to boot, I get "Grub Hard Disk Error", and 
that's where I'm stuck. Google says this might be because the bios is giving 
misinformation to Grub, I'm not sure...

robert
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Jim Gifford | 2 Jun 06:45 2005

Re: usb booting

Robert Connolly wrote:

>Hello. I have some problems booting from usb, maybe someone here knows what's 
>wrong. I have a Verbatim Store 'n' Go Pro 256MB usb flash drive, and an Intel 
>D865PERL mainboard.
>
>With the flash plugged in, when I go in bios the flash is detected as 
>removable media, and usb booting is enabled. If I write a 2.6 kernel directly 
>to /dev/sdb I get a message on boot saying "You can't boot without a boot 
>loader anymore". So far so good.
>
>When I install Grub to it and try to boot, I get "Grub Hard Disk Error", and 
>that's where I'm stuck. Google says this might be because the bios is giving 
>misinformation to Grub, I'm not sure...
>
>robert
>  
>
Robert Here is the gentoo guide, it may help.

-- 
------
jim <at> linuxfromscratch.org
lfs <at> jg555.com

LFS User # 2577
Registered Linux User # 299986

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
(Continue reading)

Archaic | 2 Jun 17:45 2005
Picon

Re: usb booting

On Wed, Jun 01, 2005 at 09:45:28PM -0700, Jim Gifford wrote:
> >
> Robert Here is the gentoo guide, it may help.

I think you forgot the link. ;)

-- 
Archaic

Want control, education, and security from your operating system?
Hardened Linux From Scratch
http://www.linuxfromscratch.org/hlfs

--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Matthew Burgess | 2 Jun 22:07 2005
Picon

Error in /usr/include/scsi/sg.h

Hi guys.

Quick programming question for you.

$ cat test.c
#include <scsi/sg.h>

int main()
{
         return 0;
}

$ gcc -o scsi test.c
In file included from test.c:1:
/usr/include/scsi/sg.h:39: error: parse error before "size_t"

Is this a glibc bug?  Surely if the header uses 'size_t' it should be 
including <stddef.h> itself, no?

Cheers,

Matt.
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Ken Moffat | 2 Jun 22:36 2005
Picon

Re: Error in /usr/include/scsi/sg.h

On Thu, 2 Jun 2005, Matthew Burgess wrote:

> Hi guys.
>
> Quick programming question for you.
>
> $ cat test.c
> #include <scsi/sg.h>
>
> int main()
> {
>          return 0;
> }
>
> $ gcc -o scsi test.c
> In file included from test.c:1:
> /usr/include/scsi/sg.h:39: error: parse error before "size_t"
>
> Is this a glibc bug?  Surely if the header uses 'size_t' it should be
> including <stddef.h> itself, no?
>
> Cheers,
>
> Matt.
>

 I wouldn't dream of suggesting a glibc bug, I regard myself as fairly
thick-skinned, but I know my limits ;)  But, I was brought up to include
stdlib.h in any normal C program, after which you can happily add
scsi/sg.h.
(Continue reading)

Matthew Burgess | 2 Jun 22:45 2005
Picon

Re: Error in /usr/include/scsi/sg.h

Ken Moffat wrote:

>  I wouldn't dream of suggesting a glibc bug, I regard myself as fairly
> thick-skinned, but I know my limits ;)  But, I was brought up to include
> stdlib.h in any normal C program, after which you can happily add
> scsi/sg.h.

Yeah, I must admit, this was a little on the evil side.  I don't think 
one could make use of the facilities scsi/sg.h provides without 
including some other standard headers.  However, I was taught that my 
headers should be self-sufficient - i.e. they should #include anything 
they need.  Like you though, I know my limits, and reporting a glibc bug 
is beyond them now (having already been burned by doing so previously).

Cheers,

Matt.
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Robert Connolly | 3 Jun 03:16 2005
Picon

Re: usb booting

On June 2, 2005 12:45 am, Jim Gifford wrote:
..
> Robert Here is the gentoo guide, it may help.

Gentoo's only usb boot thing is for their livecd image. They use syslinux with 
a vfat flash partition. I tried it and syslinux doesn't seem to overwrite the 
master boot record.

robert
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Devilkin | 3 Jun 05:16 2005
Picon

Re: usb booting

Are you sure you setup grub properly?

Have a look here for a howto:  http://www.simonf.com/usb/
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Robert Connolly | 3 Jun 06:08 2005
Picon

Re: usb booting

On June 2, 2005 11:16 pm, Devilkin wrote:
> Are you sure you setup grub properly?
>
> Have a look here for a howto:  http://www.simonf.com/usb/

This howto has nothing to do with boot loaders. Its mainly about making an 
initrd.

After running 'dd if=/dev/zero of=/dev/sdb count=1' and 'dd 
if=/boot/kernel-2.6.11.11 of=/dev/sdb' a few times, now I'm not getting 
anything from grub at all. I tried to reinstall grub with 'grub-install 
--root-directory=/mnt/usb /dev/sdb' and from the grub interactive shell, but 
when I try to boot it there's nothing, and it goes on to booting the hard 
drive. The bios will boot usb because when I write the kernel to the first 
sector the kernel displays a message when I try to boot it.

robert
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Robert Connolly | 3 Jun 06:37 2005
Picon

Re: usb booting

I got it. While in grub's shell that started during boot (before the kernel 
loaded) I noticed that grub detected the usb as (fd1), and not a hard disc. 
So I removed partitions on the usb flash, with the 'o' command in fdisk, 
formated the whole /dev/sdb disk as ext2, rebooted to the grub shell and 
setup (fd1).

It looks like the bios, grub, and linux have some conflicts. But this is good 
enough for me. It would only be a problem if I wanted more than one 
partition, but I don't.

Thanks for the help.

robert
--

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page


Gmane