Re: [gentoo-user] Re: Inconsistent mountpoint for /

2009-07-11 Thread Alan E. Davis
Thanks to everyone.  I feel like this was so easy, how could I have
been confused?  But I was.  Somehow, I was lost for weeks between the
ways that Ubuntu and Gentoo handle grub---and I was trying to install
unstable ubuntu with grub 2, so that may explain some of it, but not
all, surely.

I used the usbkey.  Installed grub on the drive I WANT to be /dev/sda,
and, what do you know?  It worked.

Thanks.

Alan



Re: [gentoo-user] Re: Inconsistent mountpoint for /

2009-07-11 Thread Neil Bothwick
On Sat, 11 Jul 2009 12:33:36 -0700, walt wrote:

> My USB stick, e.g. shows up in grub as (hd2).  Now, I can't possibly
> think straight enough to know in advance that the USB stick is (hd2),
> so what I do every time is to use this trick from the grub prompt:
> 
> grub> root (hd
> grub> root (hd  
> Possible disks are:  hd0 hd1 hd2   
> 
> Now for each of the three disks I continue this way:
> grub> root (hd0,  
> 
> On the third disk I finally recognize my USB stick because it has only
> one partition, but just to be sure:
> 
> grub> root (hd2,0)/ grub> partition>  
> 
> If by that time I'm still not sure which is the right disk then I'd
> better go take a nap before proceeding ;o)

Or you could use find from the grub prompt. Just put a file identifying
the USB stick in its root directory and find that.


-- 
Neil Bothwick

Computer (n): A device designed to speed and automate errors.


signature.asc
Description: PGP signature


[gentoo-user] Re: Inconsistent mountpoint for /

2009-07-11 Thread walt

On 07/11/2009 08:08 AM, Alex Schuster wrote:

Alan E. Davis writes:

On Sat, Jul 11, 2009 at 11:26 PM, Neil Bothwick  wrote:

On Sat, 11 Jul 2009 10:16:26 +1000, lngn...@gmail.com wrote:

In grub, it is located first  as hd1 (/dev/sdb) and then as
/dev/sda5.  That is where I want it to be.


Those are two different things. the first is GRUB's root directory, the
place where is will find its configuration and stage files (i.e. the
location of /boot). The root argument on the kernel line is tell the
kernel the location of your root filesystem - /.


I need to have the second drive (SATA #2) as the first boot drive
because that's the drive with the grub setup in the MBR, for Gentoo.


Is there a reason why yo keep having grub on #2? If not, I'd just run grub,
enter
   root (hd0,0)
   setup (hd0)
   quit
, copy /boot/grub/grub.conf over and all should be fine.

If you prefer to leavy it as it is: instead of using the partiton itself
(like /dev/sda5) in grub.conf and fstab, you could try the /dev/disk-by-
label/  notation. You can use dumpe2fs -h
/dev/sda5 to see the label as Filesystem volume name, and tune2fs -L to
change it. Then it would not matter on which drive the partiton actually is.


Alan, FTR this is pretty much what I was going to suggest.  As you can see
by Alex's amended post, this is a confusing subject and it's all too easy
to make a bad mistake.

The very first thing I do before changing anything is to make a bootable
USB stick or floppy with all of the files needed to install grub, so I can't
lock myself out with my stupid mistakes.

My USB stick, e.g. shows up in grub as (hd2).  Now, I can't possibly think
straight enough to know in advance that the USB stick is (hd2), so what I
do every time is to use this trick from the grub prompt:

grub> root (hd
grub> root (hd
Possible disks are:  hd0 hd1 hd2   

Now for each of the three disks I continue this way:
grub> root (hd0,

On the third disk I finally recognize my USB stick because it has only one
partition, but just to be sure:

grub> root (hd2,0)/

If by that time I'm still not sure which is the right disk then I'd better
go take a nap before proceeding ;o)

Now I mount the USB stick and make a new directory /boot/grub and into that
I copy all the install files from /lib/grub/i386-pc/

Now you need to install grub onto the USB stick to make it bootable:

grub> root (hd2,0)  
grub> setup (hd2)   
grub> quit

You can now boot the USB stick and use it to install grub on a hard disk,
and of course you can use it to boot a machine with grub improperly
installed or configured.




Re: [gentoo-user] Re: Inconsistent mountpoint for /

2009-07-11 Thread Peter Humphrey
On Saturday 11 July 2009 02:27:09 Alan E. Davis wrote:

> I live on a tropical island.  I've been going through about all the
> suggestions people have made and all the ideas I can think of.

I have an ancient laptop here that used to lock up in the middle of large 
compilations, and eventually I found it was due to a bad ACPI setup. I had 
been suspecting hardware age, but now it's running much better.

-- 
Rgds
Peter



Re: [gentoo-user] Re: Inconsistent mountpoint for /

2009-07-10 Thread Dale
Alan E. Davis wrote:
> Thank you, Walt.
>
> I live on a tropical island.  I've been going through about all the
> suggestions people have made and all the ideas I can think of.
> Changed NICs.  Recompiled kernel with better configuration.
>
> Uptime 1:39
>
> An improvement from earlier today.
>
> I've edited /etc/fstab.  But I'll leave grub alone until I'm sure what to do.
>
> Thank you again.
>
> Alan
>
>
>   

I ran into this a long time ago.  I had the wrong IDE chip set selected
in the kernel.  It worked but it was buggy.  It would cause random
crashes when the drive got a little busy.  You can use hdparm -Tt
/dev/your drive to test this.  I usually did a && and ran them several
at a time to really get it going.

This may not be your problem but it may be worth trying if you still
have trouble.

Dale

:-)  :-) 



Re: [gentoo-user] Re: Inconsistent mountpoint for /

2009-07-10 Thread Alan E. Davis
Thank you, Walt.

I live on a tropical island.  I've been going through about all the
suggestions people have made and all the ideas I can think of.
Changed NICs.  Recompiled kernel with better configuration.

Uptime 1:39

An improvement from earlier today.

I've edited /etc/fstab.  But I'll leave grub alone until I'm sure what to do.

Thank you again.

Alan





On Sat, Jul 11, 2009 at 10:52 AM, walt wrote:
> On 07/10/2009 05:16 PM, lngn...@gmail.com wrote:
>>
>> I recently reported that I am suffering random reboots.  I have now
>> discovered an inconsistency in the reporting of the mount point of the
>> root directory of my Gentoo install...
>
> No, the two are not related.  In my experience, anything that goes wrong
> at random times is related to hardware flakiness -- usually because some
> piece of the hardware is running too hot.
>
> I happen to live in a very hot, dry, dusty place.  I see random flakiness
> just about every summer, which I fix by blowing the thick layer of dust
> off of the CPU heatsink and RAM chips and the power supply with a can of
> compressed gas.  Of course, I also check that all of the fans in the case
> are still working.
>
> Do you know about memtest86?  If you have random nastiness you should run
> memtest86 at least overnight to see if your RAM is becoming senile ;o)
>
> I have suggestions about grub also, but, to be coherent about them I need
> to be much more awake than I am now.  I'll check back tomorrow.
>
>
>



[gentoo-user] Re: Inconsistent mountpoint for /

2009-07-10 Thread walt

On 07/10/2009 05:16 PM, lngn...@gmail.com wrote:

I recently reported that I am suffering random reboots.  I have now
discovered an inconsistency in the reporting of the mount point of the
root directory of my Gentoo install...


No, the two are not related.  In my experience, anything that goes wrong
at random times is related to hardware flakiness -- usually because some
piece of the hardware is running too hot.

I happen to live in a very hot, dry, dusty place.  I see random flakiness
just about every summer, which I fix by blowing the thick layer of dust
off of the CPU heatsink and RAM chips and the power supply with a can of
compressed gas.  Of course, I also check that all of the fans in the case
are still working.

Do you know about memtest86?  If you have random nastiness you should run
memtest86 at least overnight to see if your RAM is becoming senile ;o)

I have suggestions about grub also, but, to be coherent about them I need
to be much more awake than I am now.  I'll check back tomorrow.