bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-grub] Re: "grub" command works, but GRUB boot loader hangs


From: Jason Thomas
Subject: Re: [Bug-grub] Re: "grub" command works, but GRUB boot loader hangs
Date: Mon, 6 Aug 2001 08:32:10 +1000
User-agent: Mutt/1.3.20i

From the grub shell you should do something like:

root (hd1)
setup (hd1,2)

This assumes that your bios is setup to boot from the scsi drive first.
and that grub really does recognise the scsi drive as hd1.
In the grub shell you can use the geometry command which may help you
figure out which drive grub thinks is which.

e.g.
grub> geometry (hd0)
drive 0x80: C/H/S = 5606/255/63, The number of sectors = 90069840, /dev/ide/hos
t2/bus0/target0/lun0/disc
   Partition num: 0,  Filesystem type is fat, partition type 0xb
   Partition num: 1,  Filesystem type is reiserfs, partition type 0x83
   Partition num: 2,  Filesystem type unknown, partition type 0x82

grub> 


On Sun, Aug 05, 2001 at 02:31:24PM -0700, Ben Liblit wrote:
> Wilhelm Wienemann wrote:
> > Maybe you can give us an output of linux 'fdisk -l'
> 
> Gladly.  Attached below.
> 
> > and furthermore a listing of your '/boot/grub/menu.lst'.
> 
> I have no such file.
> 
> > How did you map the harddisks in GRUBs menu.lst?
> 
> I have no such file; I am relying upon GRUB to map my disks however it
> sees fit.  When run under Linux, the mapping is:
> 
>       /dev/sda  <=>  (hd1)
>       /dev/sdb  <=>  (hd2)
>       /dev/hdc  <=>  (hd0)
> 
> When run as a boot loader, GRUB believes that I have (fd0), (fd1),
> (hd0), and (hd1).  It hangs when I try to access any (hd?, ?)
> partition.  So it's not at all clear what GRUB's mapping is at that
> point, or even whether its mapping makes any sense at all.
> 
> >>    primary partition:
> >>            Linux device: /dev/hdc
>                                  ^^^
> 
> Sorry, I had a typo there.  My secondary master IDE drive is /dev/hdc. 
> It has one partition, /dev/hdc1, containing a ReiserFS filesystem.
> 
> > Is the whole disk one partition?  If so, where is the swap partition?
> 
> It has one partition, /dev/hdc1, containing a ReiserFS filesystem. 
> There is no swap partition on that drive.  I boot off of /dev/sda, which
> contains my root filesystem in /dev/sda3 and a swap partition in
> /dev/sda2.
> 
> Disk /dev/sda: 255 heads, 63 sectors, 1112 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sda1   *         1       730   5863693+   b  Win95 FAT32
> /dev/sda2           731       746    128520   82  Linux swap
> /dev/sda3           747      1112   2939895   83  Linux
> 
> Disk /dev/sdb: 255 heads, 63 sectors, 553 cylinders
> Units = cylinders of 16065 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/sdb1             1       553   4441941    b  Win95 FAT32
> 
> Disk /dev/hdc: 16 heads, 63 sectors, 4092 cylinders
> Units = cylinders of 1008 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hdc1             1      4092   2062336+  83  Linux


-- 
Jason Thomas                           Phone:  +61 2 6257 7111
System Administrator  -  UID 0         Fax:    +61 2 6257 7311
tSA Consulting Group Pty. Ltd.         Mobile: 0418 29 66 81
1 Hall Street Lyneham ACT 2602         http://www.topic.com.au/

Attachment: pgpYaVTAypnlO.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]