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

Re: Installation test report: 1997-04-04



On Tue, 8 Apr 1997, Bruce Perens wrote:

> From: Sven Rudolph <sr1@os.inf.tu-dresden.de>
> > Why is the CD-ROM accessed as sda?
> scan_partitions is looking for partitions and doesn't know it's a CD.
> In my opinion the driver should fail silently if there is no CD in the
> drive. However, it doesn't, so we should do something like start
> "cat /proc/kmsg >/dev/tty5 &" in /etc/rc so that the user always has
> console messages in that window rather than the main window.

 But even so... the message displayed would look as an error.. that's
confisuing for newbies...

 I have an idea (maybe a bit ugly =)). Why don't we parse the kernel boot
messages to find devices? =)

Look:

hda: WDC AC21000H, 1033MB w/128kB Cache, LBA, CHS=2100/16/63
hdb: QUANTUM LPS540A, 516MB w/96kB Cache, CHS=1120/16/59
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14

and "dmesg | grep hd.: .*CHS=.*/../.." would find IDE drives... the same
could be done woth other devices too. I know, it's ugly and kernel version
dependant, but the kernel is currently missing clean ways to get info
about installed devices. And polling each /dev/*, isn't clean either,
IMHO... 

-- 
Nicolás Lichtmaier.-
nick@feedback.com.ar


Reply to: