Re: [gentoo-user] SATA grub question

2003-11-05 Thread MAL
Mark Knecht wrote:
Hi,
   I'm doing a new build tonight on an A7N8X type MB. The main SATA hard
drive has been showing up on /dev/hde. I've set up the drive like this:
/dev/hde1 - /boot
/dev/hde2 - swap
/dev/hde3 - /root
When I get to the grub installation portion of the build, would it be
correct to use
grub root (hd4,0)
grub setup (hd4)
if I want grub placed in the MBR of the SATA Drive?
No, grub numbers the drives depending on how many there are, not their 
absolute location.

So if you had a drive on hda, and another on hde, hda would be (hd0) and hde 
would be (hd1).  If you only had the SATA drive, it would be (hd0).

If in doubt use tab completion.

MAL

--
[EMAIL PROTECTED] mailing list


Re: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht
On Wed, 2003-11-05 at 07:28, MAL wrote:
 Mark Knecht wrote:
  Hi,
 I'm doing a new build tonight on an A7N8X type MB. The main SATA hard
  drive has been showing up on /dev/hde. I've set up the drive like this:
  
  /dev/hde1 - /boot
  /dev/hde2 - swap
  /dev/hde3 - /root
  
  When I get to the grub installation portion of the build, would it be
  correct to use
  
  grub root (hd4,0)
  grub setup (hd4)
  
  if I want grub placed in the MBR of the SATA Drive?
 
 No, grub numbers the drives depending on how many there are, not their 
 absolute location.
 
 So if you had a drive on hda, and another on hde, hda would be (hd0) and hde 
 would be (hd1).  If you only had the SATA drive, it would be (hd0).
 
 If in doubt use tab completion.
 
 MAL
 

Helpful information. Thanks.

hda is a CDROM
hde is the SATA drive

Does grub's numbering include the CD, so the SATA drive would be (hd1)?
Or is it still (hd0)? 

I'm remote from the machine right now so I cannot try this until later
today.) I couldn't get it to boot last night after I finished the stage
3 install due to this problem. It kept saying 'file not found' and it
was late so I figured I'd read more about grub today. It can find
bzImage files using some of those commands that show up when I do a
tabbed completion, correct?

Thanks,
Mark


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
Should be hd1... I have seen funnier things however.. 

Like was stated before, you can always type root (hd'TAB' and it will give you your 
choices..probably hd0,hd1...

 Does grub's numbering include the CD, so the SATA drive would 
 be (hd1)?
 Or is it still (hd0)? 
 
 I'm remote from the machine right now so I cannot try this until later
 today.) I couldn't get it to boot last night after I finished 
 the stage
 3 install due to this problem. It kept saying 'file not found' and it
 was late so I figured I'd read more about grub today. It can find
 bzImage files using some of those commands that show up when I do a
 tabbed completion, correct?

--
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] SATA grub question

2003-11-05 Thread MAL
Mark Knecht wrote:
Helpful information. Thanks.

hda is a CDROM
hde is the SATA drive
Does grub's numbering include the CD, so the SATA drive would be (hd1)?
Or is it still (hd0)? 
http://www.gentoo.org/doc/en/gentoo-x86-install.xml

Chapter 23, the section titled Configuring GRUB.

I'm remote from the machine right now so I cannot try this until later
today.) I couldn't get it to boot last night after I finished the stage
3 install due to this problem. It kept saying 'file not found' and it
was late so I figured I'd read more about grub today. It can find
bzImage files using some of those commands that show up when I do a
tabbed completion, correct?
Yep, as long as you aren't using some weird filesystem on /boot :)

MAL

--
[EMAIL PROTECTED] mailing list


RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
  Helpful information. Thanks.
  
  hda is a CDROM
  hde is the SATA drive
  
  Does grub's numbering include the CD, so the SATA drive 
 would be (hd1)?
  Or is it still (hd0)? 
 
 http://www.gentoo.org/doc/en/gentoo-x86-install.xml
 
 Chapter 23, the section titled Configuring GRUB.
 

I am curious, does that document tell you whether to count cd's or not?? I can't find 
it..


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
   Helpful information. Thanks.
   
   hda is a CDROM
   hde is the SATA drive
   
   Does grub's numbering include the CD, so the SATA drive 
  would be (hd1)?
   Or is it still (hd0)? 
  
  http://www.gentoo.org/doc/en/gentoo-x86-install.xml
  
  Chapter 23, the section titled Configuring GRUB.
  
 
 I am curious, does that document tell you whether to count 
 cd's or not?? I can't find it..

Ok I found it, thats quite odd it says it doesn't count apapis.. Mine does at home... 
I am gonna have to look into it more.. Maybe mine is a super atapi?? :)

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht
  Does grub's numbering include the CD, so the SATA drive would be (hd1)?
  Or is it still (hd0)?

 http://www.gentoo.org/doc/en/gentoo-x86-install.xml

 Chapter 23, the section titled Configuring GRUB.

  I'm remote from the machine right now so I cannot try this until later
  today.) I couldn't get it to boot last night after I finished the stage
  3 install due to this problem. It kept saying 'file not found' and it
  was late so I figured I'd read more about grub today. It can find
  bzImage files using some of those commands that show up when I do a
  tabbed completion, correct?

 Yep, as long as you aren't using some weird filesystem on /boot :)

 MAL

MAL,
   Hi. Thanks for the help.

   As Jeffery said, this write up on the Gentoo site seems to differ from
what you're saying, unless I'm misunderstanding you. It would seem according
to the Gentoo install doc that the CD is not counted.

   I think my confusion, or possibly worry, right now is that I did 2 hours
of installation, which ends with installing grub but somehow wiping out the
Gentoo installation. Can that happen? I did create the boot floppies, so
maybe they will help me work out what's going on.

   My recollection was that last night, at the grub step where I thought I
should type 'root (hd4,0)', grub complained so I tried 'root (hd0,0)' and it
worked.

   Is there any way that grub could have thought it was installing to my
CDRW drive? I doubt it, but just trying to clarify. There was still the
Gentoo CD in the drive at that point, so grub would see a filesystem I
suppose.

   Anyway, I'm sure I'll get this worked out this evening when I get back to
it.

Thanks,
Mark



--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
 
 MAL,
Hi. Thanks for the help.
 
As Jeffery said, this write up on the Gentoo site seems to 
 differ from
 what you're saying, unless I'm misunderstanding you. It would 
 seem according
 to the Gentoo install doc that the CD is not counted.
 
I think my confusion, or possibly worry, right now is that 
 I did 2 hours
 of installation, which ends with installing grub but somehow 
 wiping out the
 Gentoo installation. Can that happen? I did create the boot 
 floppies, so
 maybe they will help me work out what's going on.
 
My recollection was that last night, at the grub step 
 where I thought I
 should type 'root (hd4,0)', grub complained so I tried 'root 
 (hd0,0)' and it
 worked.


Then it isn't counting your CD. It will not hurt your gentoo install either and your 
just trying to write to the mbr.. like I said, I thought I remember it counting cd's, 
but I could be wrong..  

When running the setup, it had to find your /boot drive.. SO you should be ready to 
go, just make sure your grub.conf is looking for hd0,0.


--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht
 Then it isn't counting your CD. It will not hurt your gentoo
 install either and your just trying to write to the mbr.. like I
 said, I thought I remember it counting cd's, but I could be wrong..

 When running the setup, it had to find your /boot drive.. SO you
 should be ready to go, just make sure your grub.conf is looking for hd0,0.

I'm pretty sure I did have the root command set to (hd0,0) to get this far.
One difference between the Redhat docs I'm looking at and the Gentoo install
page is that Gentoo recommends

kernel (hd0,0)/boot/bzImage root=/dev/hda3

while Redhat would do:

kernel /bzImage root=/dev/hda3

They don't show that the file is in /boot and they don't reference the hard
drive and partition. I think part of this is because RH uses an initrd file?
Maybe I am also under Gentoo now? I used genkernel the for first time last
night, and I see that the Gentoo install instructions talk about this
getting created. (See Code Listing 16.3)

I'll go do some poking around later. this thing must be bootable, as you
say, since I get to grub.

Thanks,
Mark



--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
 I'm pretty sure I did have the root command set to (hd0,0) to 
 get this far.
 One difference between the Redhat docs I'm looking at and the 
 Gentoo install
 page is that Gentoo recommends
 
 kernel (hd0,0)/boot/bzImage root=/dev/hda3
 
 while Redhat would do:
 
 kernel /bzImage root=/dev/hda3
 
 They don't show that the file is in /boot and they don't 
 reference the hard
 drive and partition. I think part of this is because RH uses 
 an initrd file?
 Maybe I am also under Gentoo now? I used genkernel the for 
 first time last
 night, and I see that the Gentoo install instructions talk about this
 getting created. (See Code Listing 16.3)
 
 I'll go do some poking around later. this thing must be 
 bootable, as you
 say, since I get to grub.

Here is the difference.. If your using /boot as its own partition, you should use 
/kernel-blah. if your using /boot on your root partition, then its /boot/kernel-blah. 
What gentoo did, smartly, was just write out the above because they put on the boot 
drive a link. The boot - .  This enables the above to work either way you want your 
drive..

Redhats default install separates boot, so /boot will not work in grub.

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht

 Here is the difference.. If your using /boot as its own
 partition, you should use /kernel-blah. if your using /boot on
 your root partition, then its /boot/kernel-blah. What gentoo did,
 smartly, was just write out the above because they put on the
 boot drive a link. The boot - .  This enables the above to work
 either way you want your drive..

 Redhats default install separates boot, so /boot will not work in grub.

Interesting. Thanks for the info!

I'll get back to you this evening, either with success or more questions.
I'm learning about how to use grub's find here in the office, so I hope
things will go smoothly later.

Cheers,
Mark



--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
 
  Here is the difference.. If your using /boot as its own
  partition, you should use /kernel-blah. if your using /boot on
  your root partition, then its /boot/kernel-blah. What gentoo did,
  smartly, was just write out the above because they put on the
  boot drive a link. The boot - .  This enables the above to work
  either way you want your drive..
 
  Redhats default install separates boot, so /boot will not 
 work in grub.
 
 Interesting. Thanks for the info!
 
 I'll get back to you this evening, either with success or 
 more questions.
 I'm learning about how to use grub's find here in the office, 
 so I hope
 things will go smoothly later.

I forgot to say that grubs default is to look for /boot in hd0,0.. And redhat default 
install also puts /boot in that area.. 

Forgot to answer that question.

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht
On Wed, 2003-11-05 at 10:42, Jeffrey Smelser wrote: 
  
   Here is the difference.. If your using /boot as its own
   partition, you should use /kernel-blah. if your using /boot on
   your root partition, then its /boot/kernel-blah. What gentoo did,
   smartly, was just write out the above because they put on the
   boot drive a link. The boot - .  This enables the above to work
   either way you want your drive..
  
   Redhats default install separates boot, so /boot will not 
  work in grub.
  
  Interesting. Thanks for the info!
  
  I'll get back to you this evening, either with success or 
  more questions.
  I'm learning about how to use grub's find here in the office, 
  so I hope
  things will go smoothly later.
 
 I forgot to say that grubs default is to look for /boot in hd0,0.. And redhat 
 default install also puts /boot in that area.. 
 
 Forgot to answer that question.

Hi,
   OK, I came home for lunch so I could take a try at getting further.
I'm making progress, but it's still not booting. Results are the same
whether working from the hard drive version of grub, or a floppy made
when I did the install.

   I reboot, come up into grub and then edit the configuration. The best
I have so far is:

root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3

and then I type 'boot'.

The machine gets further, down to the point of looking at the UDMA100
controller. It says

ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA

and hangs. Alt-CTL-Del doesn't work and I have to push the reset button.
I assume these are just statements about how it would use the
controllers if drives were there. The only drive that should exist at
this point should be hda, the CDRW.

I also tried 

root (hd0,0)
kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
initrd (hd0,0)/initrd-2.4.20-gentoo-r8

It made no difference. I also tried 

kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3 nodma

and still fail, all the same way.

Last evening, before I started the Gentoo install, I quickly tried to
throw  a copy of DOS on just to see what would happen. DOS would not
boot and hung looking for CDROMS. If I booted a version of DOS that did
not look for CDROMS, then DOS was fine.

I'd wonder if this is an NForce2 chipset issue, but I know others have
made the motherboard work, although I'm not sure if they've done it with
SATA.

Thanks again for all your comments.

Cheers,
Mark



--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
Grub is working right, you got something else going.. It looks to me like its past 
grub and booting linux. Linux is trying to find your ide controller cards and 
locking.. Or something to that affect. 

Wait.. you have  kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
 initrd (hd0,0)/initrd-2.4.20-gentoo-r8

why don't you have /boot in front of initrd like you do the kernel??

there is no nee
 
 Hi,
OK, I came home for lunch so I could take a try at getting further.
 I'm making progress, but it's still not booting. Results are the same
 whether working from the hard drive version of grub, or a floppy made
 when I did the install.
 
I reboot, come up into grub and then edit the 
 configuration. The best
 I have so far is:
 
 root (hd0,0)
 kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
 
 and then I type 'boot'.
 
 The machine gets further, down to the point of looking at the UDMA100
 controller. It says
 
 ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
 ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
 
 and hangs. Alt-CTL-Del doesn't work and I have to push the 
 reset button.
 I assume these are just statements about how it would use the
 controllers if drives were there. The only drive that should exist at
 this point should be hda, the CDRW.
 
 I also tried 
 
 root (hd0,0)
 kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
 initrd (hd0,0)/initrd-2.4.20-gentoo-r8
 
 It made no difference. I also tried 
 
 kernel (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3 nodma
 
 and still fail, all the same way.
 
 Last evening, before I started the Gentoo install, I quickly tried to
 throw  a copy of DOS on just to see what would happen. DOS would not
 boot and hung looking for CDROMS. If I booted a version of 
 DOS that did
 not look for CDROMS, then DOS was fine.
 
 I'd wonder if this is an NForce2 chipset issue, but I know others have
 made the motherboard work, although I'm not sure if they've 
 done it with
 SATA.
 
 Thanks again for all your comments.
 
 Cheers,
 Mark
 
 
 
 --
 [EMAIL PROTECTED] mailing list
 
 

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht
 Grub is working right, you got something else going.. It looks to
 me like its past grub and booting linux. Linux is trying to find
 your ide controller cards and locking.. Or something to that affect.

That's my thought too, but slightly different. hda-hdd are the chipset EIDE
controllers. It found them, and said it was going to use DMA. I don't know
if this is good or bad, but that's how I read this. However, I don't know
the next step:

1) Look at the drives attached to the EIDE controllers, or

2) Look for the next controller, which is the SATA controller

I'm sort of guessing that it's the second option, and that possibly the
initrd has a driver for the SATA controller. However, in my mind this
afternoon, that seems like a leap to assume that genkernel figured out this
machine had an SATA controller and then built the driver into the kernel, or
included it into the initrd file so that the machine would boot.

Comments?


 Wait.. you have  kernel
 (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
  initrd (hd0,0)/initrd-2.4.20-gentoo-r8

 why don't you have /boot in front of initrd like you do the kernel??

 there is no nee

Did you mean to finish this thought? There's no need? Or no need in some
cases but it must be there in others?

Using grub's find is how I even found that genkernel had built an initrd and
what its name was. It seemed to complete automatically inside of grub, but
maybe that's not enough during the actual boot process?

However, if /boot MUST be in front, then I think I didn't try that yet.

Thanks! I think I'm closer with your help. don't give up on me. I think lots
of people here are interested in SATA performance numbers. I hope to get
some...

Cheers,
Mark



--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Jeffrey Smelser
  Grub is working right, you got something else going.. It looks to
  me like its past grub and booting linux. Linux is trying to find
  your ide controller cards and locking.. Or something to that affect.
 
 That's my thought too, but slightly different. hda-hdd are 
 the chipset EIDE
 controllers. It found them, and said it was going to use DMA. 
 I don't know
 if this is good or bad, but that's how I read this. However, 
 I don't know
 the next step:
 
 1) Look at the drives attached to the EIDE controllers, or
 
 2) Look for the next controller, which is the SATA controller
 
 I'm sort of guessing that it's the second option, and that 
 possibly the
 initrd has a driver for the SATA controller. However, in my mind this
 afternoon, that seems like a leap to assume that genkernel 
 figured out this
 machine had an SATA controller and then built the driver into 
 the kernel, or
 included it into the initrd file so that the machine would boot.

  I thought of that, but normally it would kernel panic out saying it can't find 
your root drive.. (I think you said your sata driver is your primary hd... I am trying 
to remember, but I think it tried to find all the HD's in the system before checking 
the partitions.. I got scsi at home and I can't remember if it looked at my ide, then 
scsi, then checked the partitions...

I would compile it internally, 

  Wait.. you have  kernel
  (hd0,0)/boot/kernel-2.4.20-gentoo-r8 root=/dev/hde3
   initrd (hd0,0)/initrd-2.4.20-gentoo-r8
 
  why don't you have /boot in front of initrd like you do the kernel??
 
  there is no nee
 
 Did you mean to finish this thought? There's no need? Or no 
 need in some
 cases but it must be there in others?
 
 Using grub's find is how I even found that genkernel had 
 built an initrd and
 what its name was. It seemed to complete automatically inside 
 of grub, but
 maybe that's not enough during the actual boot process?
 
 However, if /boot MUST be in front, then I think I didn't try 
 that yet.
 
 Thanks! I think I'm closer with your help. don't give up on 
 me. I think lots
 of people here are interested in SATA performance numbers. I 
 hope to get
 some...

if your /boot partition is seperate, then the above will work fine.. If grub found it, 
it should work.. and I was gonna say something, no idea what though.. ;)

--
[EMAIL PROTECTED] mailing list



RE: [gentoo-user] SATA grub question

2003-11-05 Thread Mark Knecht

  I'm sort of guessing that it's the second option, and that 
  possibly the
  initrd has a driver for the SATA controller. However, in my mind this
  afternoon, that seems like a leap to assume that genkernel 
  figured out this
  machine had an SATA controller and then built the driver into 
  the kernel, or
  included it into the initrd file so that the machine would boot.
 
   I thought of that, but normally it would kernel panic out saying it can't find 
 your root drive.. (I think you said your sata driver is your primary hd... I am 
 trying to remember, but I think it tried to find all the HD's in the system before 
 checking the partitions.. I got scsi at home and I can't remember if it looked at my 
 ide, then scsi, then checked the partitions...
 
 I would compile it internally, 
 

Yep, that's my next step. I'll possibly need to ask some questions about
how to do that at this point. I don't want to do a complete
reinstallation just to do that, and I doubt I have to. Can I not just
mount the installation CD and then somehow mount and build the kernel
from what's already on my drive?

I've managed to reboot from the installation CD.The boot sequence that I
see when booting from the CD:

NFORCE2: IDE controller at PCI slot 00:09.0
NFORCE2: chipset revision 162
NFORCE2: not 100% native mode: will probe irqs later
  ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
  ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
SiL3112 Serial-ATA: IDE controller at PCI slot 01:0b.0
SiL3112 Serial-ATA: chipset revision 2
SiL3112 Serial-ATA: not 100% native mode: will probe irqs later
  ide2: MMIO-DMA , BIOS settings: hde:pio, hdf:pio
  ide3: MMIO-DMA , BIOS settings: hdg:pio, hdh:pio

At this point the machine happily goes on, finds all the drives on all
the controllers and boots, but in my case the Serial-ATA stuff never
shows up and the machine's hung.

I should (hopefully) know later this evening if genkernel is the
culprit. As a starting point, if I can find the config file for the
kernel on my Athlon-XP CD then I'll probably get a working box.

Now, what do I need to know about building a kernel by hand in the
middle of the reboot and remount stuff I'm going through?

Cheers,
Mark


--
[EMAIL PROTECTED] mailing list