** Reply to message from Pete "(Hawk)" <[EMAIL PROTECTED]> on 12 Feb 2001
18:09:35 +1300

> Hi
> 
> I have just reinstalled Redhat 7.0 and done the upgrades and I'm
> told I need a 2.4 kernel to get support for my UDMA 66 drives,..

Yes, although it may already have been backported to the 2.2.18 and higher
series.
 
> So I tried up dateing the kernel to 2.4 and it won't boot as it give
> an error :  LABEL=/ invallid ext2 can't mount or something close

You must ensure that you have compiled the support for your UDMA chipset into
the kernel and activated the chipset in your BIOS.
 
> So I pop of to look at my fstab to see whats up and find the following:
> 
> LABEL=/                 /                       ext2    defaults
> 1 1
> LABEL=/boot             /boot                   ext2    defaults
> 1 2
<snip>

I just went through this last night with my onboard UDMA. First you must ensure
that the UDMA
 chipset is activated in your BIOS., and that you have compiled support for
your particular UDMA chipset into the kernel. After that, you usually have two
UDMA IDE headers that are operational and they become IDE2 and IDE3 each with
primary and secondary channels. In my case /dev/hde and /dev/hdg since I was
only using the primary channel on each header. If you are using a 2.4.0 kernel
or later (although the most recent 2.4.1-ac10 by Alan Cox or the earlier
2.4.2-pre3 from Linus have a fix for potential file corruption when using PIO
modes on UDMA channels).  Also note that turning on your UDMA will use one
interrupt just like it does with the standard IDE channels which may be a
consideration in a box with few free IRQs. Then you just sit back and watch the
kernel do its magic as it automatically picks up the UDMA disks. 

> Whats with the LABEL thing does this not use /dev/hdc6 /home  etc any
> more?

I will let somebody else field this one. Maybe Trond can let us know the
reasoning behind the changes. I would assume it is an attempt to isolate drive
naming from device selection.
 
> And why is this a problem for the 2.4 kernel to mount

Likely your drive labelling has been changed when you switched it to the UDMA.
Best thing to do is to watch the messages as your system boots up and the kernel
identifies all the peripherals. there should be lines like this:

---------------
# dmesg | less

CMD648: IDE controller on PCI bus 00 dev 38
PCI: Found IRQ 10 for device 00:07.0
PCI: The same IRQ used for device 00:0b.0
CMD648: chipset revision 1
CMD648: not 100% native mode: will probe irqs later
    ide2: BM-DMA at 0xa800-0xa807, BIOS settings: hde:pio, hdf:pio
    ide3: BM-DMA at 0xa808-0xa80f, BIOS settings: hdg:pio, hdh:pio
hda: FUJITSU MPC3043AT, ATA DISK drive
hde: FUJITSU MPF3204AT, ATA DISK drive
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
ide2 at 0xd000-0xd007,0xb802 on irq 10
hda: 8448300 sectors (4326 MB), CHS=525/255/63, UDMA(33)
hde: 40031712 sectors (20496 MB) w/512KiB Cache, CHS=39714/16/63, UDMA(66)
Partition check:
 hda: hda1 < hda5 >
 hde: hde1 < hde5 hde6 hde7 >
---------------------------

Also here is my /etc/fstab:

# cat /etc/fstab

LABEL=/                 /                       ext2    defaults        1 1
/dev/sdc6               /home                   ext2    defaults        1 2
/dev/hde5               /mnt/backup             ext2    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/cdrom1             /mnt/cdrom1             iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
/dev/hde7               /mnt/full               ext2    defaults        1 2
/dev/sdb4               /mnt/zip                vfat    defaults        0 0
/dev/sdc7               /opt                    ext2    defaults        1 2
LABEL=/usr              /usr                    ext2    defaults        1 2
/dev/sdc8               /usr/local              ext2    defaults        1 2
LABEL=/var              /var                    ext2    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda5               swap                    swap    defaults        0 0

The three partitions with LABELs were the ones formatted by the upgrade to RH7.
The other partitions were from a previous install and were not touched during
the upgrade which I would assume is why they didn't get labels.
  
A busy fstab, I know, but then I have a mix of IDE and scsi stuff. If you moved
your boot drive from IDE33
  channel one to UDMA channel one then your boot drive would move from /dev/hda
to /dev/hde. Boot into linux single user mode (this brings up another point of
contention with RH 7: how do you get to the command line with that blasted logo
splattered all over the screen at the boot prompt???) by issuing "linux single"
at the boot prompt. Then watch the kernel messages as it loads and note where
the kernel assigns your drives. Next step would be to load the /etc/fstab in
your favorite text editor and change all the /dev/hda statements to /dev/hde. I
don't think there is anything stopping you from going back to the old way of
naming your partitions if you don't like the LABEL stuff. Question for Trond:
Have the fdisk and e2fsck tools been updated to deal with drive LABELs? 

Anyway, hope you can find something useful in all this.

-- 
Jack Bowling
Prince George, BC
mailto: [EMAIL PROTECTED]



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to