Linux-Setup Digest #378, Volume #20               Mon, 8 Jan 01 21:13:05 EST

Contents:
  Re: lilo for secondary IDE (HomerWelch)
  Re: I tried 2.4.0 -> Re: Compiling Kernels on RH 7.0? 
(=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
  Re: lilo for secondary IDE (John in SD)
  Easy way to add a printer to RH7 without control-panel? (Donald Brady)
  Re: help with compiling kernel 2.4 (=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
  Re: lilo for secondary IDE (Dave Platt)
  scsi driver not loaded ([EMAIL PROTECTED])
  Re: linux password to Sun Shadow. ([EMAIL PROTECTED])
  Re: netscape startup question (Matt Grapenthien)
  Re: How to recover partition (=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
  Re: Kernel 2.4 on RH7 (=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
  Re: Debian, no cd (Dimitri Maziuk)
  Re: xinetd & inetd (John Thompson)
  Re: How can I find which options are compiled into my kernel? (Chiefy)
  Problem installing WindowMaker in Mdk 7.2... (Guy Parry)
  Re: How can I find which options are compiled into my kernel? 
(=?iso-8859-1?Q?Rasmus_B=F8g_Hansen?=)
  newbie netscape problem (duffy)

----------------------------------------------------------------------------

From: HomerWelch <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system,comp.os.linux.misc
Subject: Re: lilo for secondary IDE
Date: Mon, 08 Jan 2001 23:32:23 GMT

"Hung P. Tran" wrote:
> 
> I am trying to make a boot hard drive to boot from a
> secondary IDE. My lilo.conf is as followed:
> 
> #boot=/dev/fd0
> boot=/dev/hdc
> map=/mnt/floppy/map
> install=/mnt/floppy/boot.b
> prompt
> timeout=50
> default=linux
> 
> image=/mnt/floppy/vmlinuz
>         label=linux
>         root=/dev/hda5
> 
> Note that the same lilo.conf works for a floppy (just by replacing
> the boot line to /dev/fd0). However, when I mount my secondary
> harddrive to the same place (to minimize lilo.conf change) using:
> 
> mount /dev/hdc1 /mnt/floppy
> 
> The same lilo.conf will not work. All I get is an "L" and then
> a bunch of 01 dump onto the screen. I also try to use "linear"
> to no avail. Any advice.
> 

Did you rerun lilo after changing that parameter?  You have
to install lilo in the MBR of hdc.  Also, lilo creates the
map file and install it.

You may have to change your parameters in your bios to get
it to detect the hdc as a bootable disk.  At least on my
system, it will only look at fd0 and hda for boot
information.

good luck,


-- 

Homer J. Welch        [EMAIL PROTECTED]
Troy, Michigan

------------------------------

From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Subject: Re: I tried 2.4.0 -> Re: Compiling Kernels on RH 7.0?
Date: Tue, 9 Jan 2001 00:37:44 +0100

On Mon, 8 Jan 2001, Steve Withers wrote:

> Rasmus B�g Hansen wrote:
> 
> > On Sun, 7 Jan 2001, Steve Withers wrote:
> >
> > > Anyway.....when I booted it, it came up fine except it is clearly
> > > missing some files it expects to find in the
> > > /lib/modules/2.4.0/dependencies directory.....which doesn't exist. I
> > > have the 2.2.16-22 modules directory.......so either the kernel has the
> > > wrong name, or I have to go find whatever it is that is supposed to be
> > > in that directory....
> >
> > You did do a 'make modules_install'? Or do you use modules at all?
> >
> > Rasmus B�g Hansen
> 
> Ah......No.
> 
> I am using the kernel install/compile docs pointed to by RedHat and there is
> NO mention made of this. But given what happened, it seemed pretty ovbious to
> me that there was a step missing that I neede to know about. :-)

Well. Modules are drivers and the like that can be loaded when the kernel
is running. Therefore their absence does not mean that the kernel can't
boot. But still it can be too big to be loaded. Btw I assume, that you
chose the correct processor architecture...

> Thanks....I'll try to find some docs that explain WHEN in the sequence of
> steps you need to do this. i assume either just before or just after you
> compile the kernel itself.....

Precisely when does not matter as long as it is after the configuration
step and before reboot. Something like 'make xconfig dep clean modules
modules_install bzImage'.

Rasmus B�g Hansen


------------------------------

From: John in SD <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.development.system,comp.os.linux.misc
Subject: Re: lilo for secondary IDE
Reply-To: [EMAIL PROTECTED]
Date: Mon, 08 Jan 2001 23:38:37 GMT

On Mon, 08 Jan 2001 21:37:53 GMT, "Hung P. Tran" <[EMAIL PROTECTED]> wrote:

>I am trying to make a boot hard drive to boot from a
>secondary IDE. My lilo.conf is as followed:
>
>#boot=/dev/fd0
>boot=/dev/hdc
>map=/mnt/floppy/map
>install=/mnt/floppy/boot.b
>prompt
>timeout=50
>default=linux
>
>image=/mnt/floppy/vmlinuz
>       label=linux
>       root=/dev/hda5
>
>
>Note that the same lilo.conf works for a floppy (just by replacing
>the boot line to /dev/fd0). However, when I mount my secondary
>harddrive to the same place (to minimize lilo.conf change) using:
>
>mount /dev/hdc1 /mnt/floppy
>
>The same lilo.conf will not work. All I get is an "L" and then
>a bunch of 01 dump onto the screen. I also try to use "linear"
>to no avail. Any advice.
>
>Thank you for any help,

When you boot, the floppy will be read first (device 0x00), then device
(0x80).  I don't know how to get your bios to first read device (0x82), even
if it installs that device.  Older BIOSes will only install 0x80 and 0x81.

--John


>
>hung


LILO version 21.6 (04-Oct-2000) source at
http://www.ibiblio.org/pub/Linux/system/boot/lilo
patches at ftp://brun.dyndns.org/pub/linux/lilo

------------------------------

Subject: Easy way to add a printer to RH7 without control-panel?
From: Donald Brady <[EMAIL PROTECTED]>
Date: Mon, 08 Jan 2001 15:41:10 -0800

Hi 

I have a machine which is going to be acting as a server only. I have not
loaded X at all. This means I cannot use the control-panel to add a printer.
I cannot locate any easy means of adding a printer from the command line. Is
there any text based utility for adding a printer or am I stuck editing
/etc/printcap by hand?

Thanks for any help

Donald
[EMAIL PROTECTED]


------------------------------

From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Subject: Re: help with compiling kernel 2.4
Date: Tue, 9 Jan 2001 00:50:14 +0100

On 8 Jan 2001, Hung Ngoc Lai wrote:

> Hi everyone,
> 
> I am running RedHat Linux version 6.1 with kernel 2.2.18.  I would like to
> upgrade the kernel to version 2.4.  I download linux-2.4.0.tar.gz to /usr/src
> directory the following steps:
> 1) gunzip linux-2.4.0.tar.gz
> 2) tar -xvpf linux-2.4.0.tar
> 3) cd /usr/src/linux
> 4) make mrproper
> 5) make menuconfig (in this step, I uncheck the Cardbus support (pcmcia) because
>    I am running linux on a destop [dell 300MHz])
> 6) make dep
> 7) make clean
> 8) make bzImage
> 9) make modules
> 10)make modules_install
> 
> in step 10, I get this error:
> 
> make[1]: Entering directory `/usr/src/linux-2.4.0/arch/i386/lib'
> make[1]: Nothing to be done for `modules_install'.
> make[1]: Leaving directory `/usr/src/linux-2.4.0/arch/i386/lib'
> cd /lib/modules/2.4.0; \
> mkdir -p pcmcia; \
> find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.0; fi
> /sbin/depmod: invalid option -- F
> Usage: depmod [-e -s -v ] -a [FORCED_KERNEL_VER]
>        depmod [-e -s -v ] MODULE_1.o MODULE_2.o ...
> Create module-dependency information for modprobe.
> 
>   -a, --all                  visit all modules
>   -d, --debug                run in debug mode
>   -e                         output unresolved symbols
>   -i                         ignore symbol versions
>   -m, --system-map <file>    use the symbols in <file>
>   -s, --system-log           use the system log for error reporting
>       --help                 display this help and exit
>   -v, --verbose              run in verbose mode
>   -V, --version              output version information and exit
> make: *** [_modinst_post] Error 1

Hmmm... Perhaps you need an updated modutils. You can get it at
ftp.kernel.org/pub/linux/utils/kernel -somewhere around. I do not remeber
the exact address. Btw. they should be backwards compatible.

Rasmus B�g Hansen


------------------------------

From: [EMAIL PROTECTED] (Dave Platt)
Crossposted-To: comp.os.linux.development.system,comp.os.linux.misc
Subject: Re: lilo for secondary IDE
Date: Mon, 08 Jan 2001 23:57:44 -0000

>> I am trying to make a boot hard drive to boot from a
>> secondary IDE. My lilo.conf is as followed:
>> 
>> #boot=/dev/fd0
>> boot=/dev/hdc

#snip

>> The same lilo.conf will not work. All I get is an "L" and then
>> a bunch of 01 dump onto the screen. I also try to use "linear"
>> to no avail. Any advice.
>> 
>
>Did you rerun lilo after changing that parameter?  You have
>to install lilo in the MBR of hdc.  Also, lilo creates the
>map file and install it.

A normal PC BIOS will boot only from the MBR of the primary hard
drive.  It won't even "look" for the secondary hard drive MBR.  The
normal way to boot a Linux system from a secondary hard drive is to
put LILO in the MBR of the primary hard drive (or put the standard MBR
there, and put LILO in the boot block of the active partition on the
primary hard drive).  You can have the kernel itself, and the root
filesystem on the secondary hard drive, but the MBR and active active
partition normally need to be on the primary drive.

There are some BIOSes which can be configured to boot from the
secondary hard drive.  There's a gotcha to enabling this feature,
though.  Most disk-resident MBR and bootloader code isn't written to
be booted from a secondary drive (it "assumes" that the system is on
the primary drive).  In order to cope with this lacking, the BIOS
doesn't just load the MBR etc. from the secondary drive - it actually
*swaps* the two drives at the BIOS level.

In a standard system, the first bootable disk (typically the master on
the IDE primary controller) is referred to as device 0x80 in the I/O
calls to the BIOS.  The second drive is 0x81, and so forth.

If you tell your BIOS to swap controllers, it actually assigns device
ID 0x80 to the master drive on the secondary controller.  Thus, when a
standard MBR is loaded from this drive and executed, it "thinks" that
it's really on the primary drive, and has no difficulty reading the
partition table and the O/S boot blocks.  A similar thing occurs if
you have a SCSI controller, and tell your BIOS to "boot SCSI" - the
0x80 drive ID is assigned to the first disk device on the first SCSI
controller, rather than to the IDE primary master.

When /sbin/lilo is run to install LILO, it has to write information
into the MBR-resident portion of LILO, and into its own boot catalog,
which tells the boot code where to find each portion of the code being
booted.  It must figure out which BIOS disk identifier is used for
each drive, and identify the location of each bootable bit of code by
(drive ID, location, size).

The /sbin/lilo installer normally honors the standard BIOS
conventions... IDE primary master, IDE primary slave, IDE secondary,
SCSI, in that order.  This works just fine for a standard setup.  It
will NOT work if you've told your BIOS to swap drives or controllers
around, because the BIOS ordering will disagree with the ordering that
the LILO installer assumed.

The net result will be the sort of thing you're observing... the first
(MBR-resident) portion of LILO will load, but the subsequent sections
won't load properly, because the MBR-resident portions of LILO will be
using the wrong device IDs.

The way around this problem is to use _explicit_ device IDs in your
/etc/lilo.conf file.  Figure out what device IDs your BIOS is going to
assign at boot time, and then tell LILO to use precisely these IDs.

As an example:  I have a system with two IDE hard drives, and one IDE
hard drive.  In a standard setup, the IDE drive would be 0x80, and the
two SCSI drives would be 0x81 and 0x82.  However, I've told my BIOS
that I want to boot from SCSI (the IDE drive is strictly for bulk
storage), and so it reorganizes the drive IDs (SCSI first, IDE
second).  In my lilo.conf file, I say:

#
# LILO is installed in the boot sector of the extended partition at
# /dev/sda2.  The disk's MBR is standard.  
#
disk = /dev/sda
        bios = 0x80
disk = /dev/sdb
        bios = 0x81
disk = /dev/hda
        bios = 0x82
boot = /dev/sda2
install = /boot/boot.b
delay = 50
        
and so forth.  This gives LILO the information it needs to build the
boot-map files with the correct drive IDs, and the system boots up from
the SCSI drives just fine.

I suspect that you may need to do something similar.  If you're
telling your BIOS to boot from the secondary controller, you'll need to
say something like:

disk = /dev/hda
        bios = 0x81
disk = /dev/hdc
        bios = 0x80

to swap around the BIOS drive IDs for the drives on these two
controllers.

-- 
Dave Platt                                           [EMAIL PROTECTED]
Visit the Jade Warrior home page:  http://www.radagast.org/jade-warrior/
  I do _not_ wish to receive unsolicited commercial email, and I will
     boycott any company which has the gall to send me such ads!

------------------------------

From: [EMAIL PROTECTED]
Subject: scsi driver not loaded
Date: Mon, 08 Jan 2001 23:53:17 GMT

I believe that the scsi driver isn't being loaded by linux b/f lilo
tries to look at sda.
I think you can do this with the mkinitrd command as root and rerun
mkinitrd -v -f --preload <module name> /boot/initrd-2.2.16-3 2.2.16-3
 /sbin/lilo -v -v

I am trying to get this to work now myself. So, I am not sure if this is
correct.

If you have any suggestions I would love to hear them.
brad


Sent via Deja.com
http://www.deja.com/

------------------------------

From: [EMAIL PROTECTED]
Subject: Re: linux password to Sun Shadow.
Date: Tue, 09 Jan 2001 00:12:08 GMT

I'm trying to do the same, if you find a solution please let me know,
and I'll do the same for you!

In article <92ug13$cv8$[EMAIL PROTECTED]>,
  fatwolf <[EMAIL PROTECTED]> wrote:
> Hi, I'm trying to import linux passwd into Solaris shadow, but I just
> found out the encrypted password just not compatible, is there anyway
> to do that? Thanks.
>
> Sent via Deja.com
> http://www.deja.com/
>


Sent via Deja.com
http://www.deja.com/

------------------------------

From: Matt Grapenthien <[EMAIL PROTECTED]>
Subject: Re: netscape startup question
Date: Mon, 8 Jan 2001 18:38:11 -0600

Edit -> Preferences -> Navigator.  If you can't figure that one out,
you're probably going to have a hell of a time with linux.

On 7 Jan 2001, freedman wrote:

> When my netscape starts up it displays file:/usr/share/doc/HTML/index.html in
> the location box.  How does one change what is used for the initial location?
> 
> -- 
> Dick Freedman
> 
> 


------------------------------

From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Subject: Re: How to recover partition
Date: Tue, 9 Jan 2001 01:52:06 +0100

On Mon, 8 Jan 2001, Svend Olaf Mikkelsen wrote:

> Rasmus B�g Hansen <[EMAIL PROTECTED]> wrote:
> 
> >Hi
> >
> >A few days ago, I installed some new RAM. And suddenly I got a lot of
> >segfaults and at last a kernel oops in kreiserfsd...
> >
> >When I rebooted, the kernel reported 'Unknown partition table'...
> >
> >Now I luckily had a backup of the most important data - but there is still
> >stuff on the partition, which I wuld like to recover...
> >
> >The disk was filled with only that single partition, which was formatted
> >with reiserfs.
> >
> >Is there any way to recover the partition table (I know this means making
> >a new) and recover the old partition data?
> >
> >With normal ext2, I coul make the partition again and recover the old one
> >from the backup-superblock - can anything like that be done with reiserfs?
> >
> >Thx in advance from a panicky user.
> >
> >Rasmus B�g Hansen
> 
> Assuming that only the partition table is damaged, and that the
> partition covered the entire disk, it is just a matter of deleting
> wrong entries in the partition table, and make a new entry covering
> the entire disk.
> 
> To obtain more information, you can get Findpart version 3.96 in
> 
> http://inet.uni2.dk/~svolaf/fpart396.zip
> 
> and do from DOS or Windows:
> 
> findpart all reiser fp.txt

I searched only disk 2 - no need to search my other drive... But this is
definitely the one. And now I just create a new partition starting at
cylinder 0 and ending at cylinder 778 with ID 84 _without_ formatting a FS
on it. And then I pray, that the FS can still be mounted / repaired. Or
have I misunderstood something?

Thanks a lot for the help so far.

Rasmus B�g Hansen

OS:  DOS 7.10    Reiser
 
Disk: 2   Cylinders: 779   Heads: 128   Sectors: 63   MB: 3067
 
-PCyl N ID -----Rel -----Num ---MB -Start CHS- --End CHS-- BS  CHS
    0 - 84       63  6281793  3067    0   1  1  778 127 63 B    OK
 
=====FAT CHS =Size Cl ==Root =Good =Rep. Maybe ==Bad YYMMDD DataMB
  615   0 58   Second FAT not found.
  615   0 59   Second FAT not found.
 
Partitions according to partition tables on second harddisk:
    No signature CHS: 0 0 1


------------------------------

From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Crossposted-To: redhat.general
Subject: Re: Kernel 2.4 on RH7
Date: Tue, 9 Jan 2001 01:54:09 +0100

On Mon, 8 Jan 2001, Jeff Moore wrote:

> I have not gotten the kernel to compile with RH7.
> 
> If I am going to download a kernel, I want the 2.4 version.
> 
> I assume I will also need a new compiler and libraries.

Well, the kernel does not use any libraries, so no need here.

> Which compiler and libraries should I get?

It should be on your system. And if not on the CD - in a package called
kgcc-1.1.2-40.i386.rpm.

Rasmus B�g Hansen


------------------------------

From: [EMAIL PROTECTED] (Dimitri Maziuk)
Subject: Re: Debian, no cd
Date: 9 Jan 2001 01:01:23 GMT
Reply-To: [EMAIL PROTECTED]

On Sun, 07 Jan 2001 23:41:02 GMT, Cathy Gramze wrote:
>In article <[EMAIL PROTECTED]>, Graham Wilson <graham01~[EMAIL PROTECTED]> wrote:
>
>
>>      Check out autofs and related docs for the cd devices.  I'm finding that
>> I can access the cd for data but not music, but I'll get there.  
>
>I'm still working on this one. I did a HD/ftp install, no cdrom used, so I truly 
>might have neglected to have the proper drivers put into the kernel/module. I can do 
>a kernel recompile in my sleep. (From installing the earliest SBLive drivers)
>
>>      Did you put yourself into group audio?  That's the group for /dev/dsp,
>> which is connected to your soundcard.
>
>Thanks! I finally read (man group) about /etc/groups, and after that it was a snap.
> Now I'd have user access to my cdrom, too...if the system thought I had one...

This is strange as AFAIK stock kernel comes with IDE cdrom support compiled
in. Try `modprobe cdrom` before mounting. Also, make sure you're not trying
to use a non-existing symlink (i.e. if you're mounting /dev/cdrom, check
that it exists and points to the right /dev/hd? )

>
>>      I had great luck with apsfilter - check for it through dselect.  It's a
>> pretty user-friendly configuration tool.
>
>I'll definitely be trying this. Is there an easy way to find a specific package in 
>dselect? I hate searching through it all. apt-get -install apsfilter ought to work 
>just fine, right?

Yeah, same as in less/vi: press "/". I'd also recommend installing aptitude and 
using that instead of dselect.  

hth
Dima
-- 
@home: dmaziuk at crosswinds dot net
@work: dmaziuk at bmrb dot wisc dot edu

------------------------------

From: John Thompson <[EMAIL PROTECTED]>
Subject: Re: xinetd & inetd
Date: Mon, 08 Jan 2001 15:04:43 -0600

root wrote:

> I just replace my old inetd with xinetd since it
> sounds good. But I failed to telnet to my linux
> box after that.
> 
> env: xinetd, RH7, wu_ftp
> err: connection refused when telnet
> 
> I have checked that the /etc/services contains
> both ftp and telnet with well known port.
> the config file of xinetd includes /etc/xinetd.d
> and inside /etc/xinetd.d, I can only found wu_ftpd
> and weblinuxconf, but no inetd, should I keep to old
> inetd such that xinetd can run or somethings else.
> If xinetd must live on inetd, why should I use it?

Did you convert your /etc/inetd.conf using the included
"xconv.pl" script?  That will get your basic services up and
running.  From there you can edit xinetd.conf to take advantage
of xinetd's features.

-- 


-John ([EMAIL PROTECTED])

------------------------------

From: [EMAIL PROTECTED] (Chiefy)
Subject: Re: How can I find which options are compiled into my kernel?
Date: 9 Jan 2001 01:25:39 GMT

08 Jan 2001 18:45 UTC, Victor S. Miller typed:
>Is there a command (or shell script) that I can use to list all of the
>options that are compiled into my kernel?  I'm running RH 7.0.

/boot/config-2.2.17 contains all the compile options on this heap.

Using a pre-compiled Debian kernel.

-- 
Chiefy. <[EMAIL PROTECTED]>


------------------------------

From: Guy Parry <[EMAIL PROTECTED]>
Subject: Problem installing WindowMaker in Mdk 7.2...
Date: Tue, 09 Jan 2001 12:28:53 +1100

     I've installed - or thought I had - WM, but 'switchdesk' tells me
"WindowMaker not installed!".
     The WindowMaker rpm is DEFINATELY there.  Is there anything I'm
missing?  Is 'wmakerconfig' actually a part of WindowMaker?  I
installed that as well, after satisfying a dependency by installing
'lynx' as well, but still the same message.  This one's got me
scratching my head.  I have run /usr/bin/X11/wmaker.inst but I still
get told "WindowMaker not installed".  Grrr...


------------------------------

From: =?iso-8859-1?Q?Rasmus_B=F8g_Hansen?= <[EMAIL PROTECTED]>
Subject: Re: How can I find which options are compiled into my kernel?
Date: Tue, 9 Jan 2001 02:31:39 +0100

On 9 Jan 2001, Chiefy wrote:

> 08 Jan 2001 18:45 UTC, Victor S. Miller typed:
> >Is there a command (or shell script) that I can use to list all of the
> >options that are compiled into my kernel?  I'm running RH 7.0.
> 
> /boot/config-2.2.17 contains all the compile options on this heap.
> 
> Using a pre-compiled Debian kernel.

IIRC they are in /usr/src/linux/configs on RedHat 7.0.

Rasmus B�g Hansen


------------------------------

From: duffy <[EMAIL PROTECTED]>
Subject: newbie netscape problem
Date: Tue, 09 Jan 2001 09:50:18 +0800


Hi
I need some help with my set up of Redhat 6.2, I seem to going ok until
trying to set my preferences for netscape to access the internet, every
time I try to set my Proxy server  I get a warning proxy can't be found
and am returned to the preferences set-up.
Is this something to do with a start-up script or the like, or is there
a linux program for scripting your preferences somewhere else?
thanks

Duffy

------------------------------


** FOR YOUR REFERENCE **

The service address, to which questions about the list itself and requests
to be added to or deleted from it should be directed, is:

    Internet: [EMAIL PROTECTED]

You can send mail to the entire list by posting to comp.os.linux.setup.

Linux may be obtained via one of these FTP sites:
    ftp.funet.fi                                pub/Linux
    tsx-11.mit.edu                              pub/linux
    sunsite.unc.edu                             pub/Linux

End of Linux-Setup Digest
******************************

Reply via email to