converting to grub from lilo [DrDos on hdc1 not booting]
Mick Mearns
off_by_1 at yahoo.com
Tue May 25 07:41:17 UTC 2004
--- "Joe(theWordy)Philbrook" <jtwdyp at ttlc.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> It would appear that on May 24, Luciano Miguel Ferreira Rocha did
> say:
>
> > On Sun, May 23, 2004 at 11:29:51PM -0400, Joe(theWordy)Philbrook
> wrote:
> > > But then perhaps it has something to do with /dev/hdb being my
> dvd-rom.
> > > Yet I wouldn't think it detects and discards the cd drives from
> it's
> > > numbering scheme. Therefore I suspect that it must be something
> like:
> > >
> > > hda=1st master hd0=1st master
> > > hdb=1st master's slave hd1=2nd master
> > > hdc=2nd master hd3=1st slave ?
> > > hdd=2nd master's slave hd4=2nd slave ?
> >
> > No, hd* are harddisks as reported by BIOS.
> >
> > So, you can have:
> > hd0: scsi hdd
> > hd1: 2nd slave hdd (with no hdd in other drives)
> >
> > > If I'm right, it will get more confusing if/when computers have
> more
> > > than 2 primary ide ports as I think grub's notation will number
> ALL the
> > > master drives before any of the slaves...
> >
> > Grub numbers all harddisk drives, in the order the BIOS reports
> them.
> >
> > It doesn't care about master/slave, primary/secondary, etc.
>
> Thanks for the info Luciano,
>
> So then, Since I don't really understand what sequence bios uses to
> report the drives, could you tell me if
>
> 1)bios lists the masters first, then the slaves?
>
> 2)bios lists the harddrives then the cd drives?
>
> 3)grub's "hd*" numbering scheme simply skips cd drives? In which
> case,
> what does grub call the durned things?
>
> 4)I'm completely clueless and should just sell my soul back to M$
> because I'm incapable of understanding anything... <whimper> ;)
>
> 5)"you tell me???"
>
> Thanks
>>
Hello;
just edit the file /boot/grub/device.map
and tell grub what is what, (only hard drives go in here)
[mick at Athlon mick]$ su -
Password:
[root at Athlon root]# cat /boot/grub/device.map
# this device map was generated by anaconda
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
[root at Athlon root]# cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this
file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/hdb3
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd1,0)/grub/splash.xpm.gz
password --md5 $1$wpT0Md5s$.zSpzPPVvHLvxHF21XtmO0
title Fedora Core (2.4.22-1.2115.nptl)
root (hd1,0)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/ hdd=ide-scsi
rhgb
initrd /initrd-2.4.22-1.2115.nptl.img
title W98se
rootnoverify (hd0,0)
chainloader +1
[root at Athlon root]# cat /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
LABEL=/home /home ext3 defaults 1 2
LABEL=/mnt/DOWNLOADS /mnt/DOWNLOADS ext3 defaults 1 2
LABEL=/mnt/scsi-int /mnt/scsi-int ext3 defaults 1 2
/dev/hda1 /mnt/vfat-w98 vfat defaults 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
LABEL=/usr /usr ext3 defaults 1 2
LABEL=/var /var ext3 defaults 1 2
/dev/hdb2 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660
oauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660
oauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
[root at Athlon root]# fdisk -l
Disk /dev/sda: 2170 MB, 2170000384 bytes
255 heads, 63 sectors/track, 263 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 263 2112516 83 Linux
Disk /dev/hda: 15.3 GB, 15367790592 bytes
255 heads, 63 sectors/track, 1868 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 1868 15004678+ c Win95 FAT32 (LBA)
Disk /dev/hdb: 40.9 GB, 40982151168 bytes
255 heads, 63 sectors/track, 4982 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 63 506016 83 Linux
/dev/hdb2 64 186 987997+ 82 Linux swap
/dev/hdb3 187 1403 9775552+ 83 Linux
/dev/hdb4 1404 4982 28748317+ 5 Extended
/dev/hdb5 1404 1526 987966 83 Linux
/dev/hdb6 1527 1649 987966 83 Linux
/dev/hdb7 1650 2866 9775521 83 Linux
/dev/hdb8 2867 4982 16996738+ 83 Linux
[root at Athlon root]# dmesg |grep hd
Kernel command line: ro root=LABEL=/ hdd=ide-scsi rhgb
ide_setup: hdd=ide-scsi
ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:DMA, hdd:DMA
hda: Maxtor 91531U3, ATA DISK drive
hdb: Maxtor 4D040H2, ATA DISK drive
hdc: Pioneer DVD-ROM ATAPIModel DVD-105S 012, ATAPI CD/DVD-ROM drive
hdd: PLEXTOR CD-R PX-W8432T, ATAPI CD/DVD-ROM drive
hda: attached ide-disk driver.
hda: host protected area => 1
hda: 30015216 sectors (15368 MB) w/512KiB Cache, CHS=1868/255/63,
UDMA(66)
hdb: attached ide-disk driver.
hdb: host protected area => 1
hdb: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=4982/255/63,
UDMA(66)
hda: hda1
hdb: hdb1 hdb2 hdb3 hdb4 < hdb5 hdb6 hdb7 hdb8 >
SCSI device sda: 4238282 512-byte hdwr sectors (2170 MB)
hdc: attached ide-cdrom driver.
hdc: ATAPI 40X DVD-ROM drive, 512kB Cache, UDMA(33)
hdd: attached ide-scsi driver.
[root at Athlon root]#
Mick M.
=====
The glass is exactly twice as large as it needs to be.
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
More information about the fedora-list
mailing list