Linux-Misc Digest #565, Volume #20               Thu, 10 Jun 99 02:13:07 EDT

Contents:
  linux support applicant test needed ([EMAIL PROTECTED])
  LILO and Swapping Hard Drives Around (Prem Deol)
  Re: kill child of shellscript (Scott Lanning)

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

From: [EMAIL PROTECTED]
Subject: linux support applicant test needed
Date: Wed, 09 Jun 1999 17:30:12 GMT

We need to hire a couple of support personnel for Linux at my company.
I've been asked to come up with a suitable written test to screen
applicants for the job. Does anyone know a good source or starting
point for this? Has anyone created a test for a similar purpose? Any
suggestions or referrals [including question answers please since I'm
not an expert :)] would be appreciated. If I receive suggestions and/or
sample tests, I will compile them and post the composite results which
may be useful to all. Thank you

    [EMAIL PROTECTED]


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

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

From: Prem Deol <[EMAIL PROTECTED]>
Crossposted-To: comp.os.linux.help,comp.os.linux
Subject: LILO and Swapping Hard Drives Around
Date: Wed, 09 Jun 1999 21:46:27 -0700

When LILO boots, I have to enter "linux root=/dev/hdd1", how can I
change this
so that linux automatically mounts /dev/hdd1 as root?  (the following
will help
understand what I've done).

My system was originally set up with linux on /dev/hdb1, I then had to
move
the ide ribbons around (weird case), so that my linux drive became
/dev/hdd1.

I changed the mount specs in /etc/fstab from /dev/hdb1 to /dev/hdd1 as
follows:

/dev/hdd1               /                       ext2    defaults
1 1
/dev/hdd5               swap                    swap    defaults
0 0

Now, when I booted back up, I entered the bootprompt "linux
root=/dev/hdd1", and
all worked fine.

However, I thought "it would be nice to have LILO (on my win98 drive
/dev/hda)
mount my linux drive (now /dev/hdd1) as root without having to prompt
it", so I edited my OLD lilo.conf file to root=/dev/hdd1 as shown on the
right below:

boot=/dev/hda
map=/boot/map
install=/boot/boot.b
prompt
timeout=50
image=/boot/vmlinuz-2.0.36-0.7
        label=linux
        root=/dev/hdb1              --> root=/dev/hdd1
        read-only
other=/dev/hda1
        label=dos
        table=/dev/hda

I then ran lilo, and when I rebooted I was presented with 0's and 1s
scrolling
up my screen with no LILO prompt.  After trying my boot/rescue disk, I
changed
lilo.conf back to what it was, and re-ran LILO.  Everything is now the
way it use
to be (i.e. I have to enter "linux root=/dev/hdd1" to boot linux).

I thought about running rdev on my image, but shouldn't my changing the
'root'
in lilo.conf dictate what partition is mounted as root.

Also, why would LILO fail to boot when I changed my lilo.conf and re-ran
lilo,
with the exact bootprompt option with which it works now.

Any ideas/fixes would be great.
Thanks in advance
Prem Deol


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

From: [EMAIL PROTECTED] (Scott Lanning)
Subject: Re: kill child of shellscript
Date: 9 Jun 1999 06:55:02 GMT

Ed Young ([EMAIL PROTECTED]) wrote:

: Vic Mortelmans wrote:
: > But now, when I kill the script, command1 keeps running. How can I
: > make sure all commands invoked in the script are ended together with
: > the script ? Preferably in such a way that I don't need to use a
: > special form of the kill-command.
:
: Try killing the xterm you launched the shellscript from...

Or he could also cycle the power....

Another solution might be to use 'trap' to trap the signal
you killed the script with. Trap allows to execute a command
when the trapped signal is received. 'man bash' (then
type "/trap" and bounce on 'n' (for next) several times to
get to the SHELL BUILTIN section)

--
Scott Lanning: [EMAIL PROTECTED], http://physics.bu.edu/~slanning
"I do believe God gave me a spark of genius, but he quenched it
in misery." --Edgar Allan Poe

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


** 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 (and comp.os.linux.misc) via:

    Internet: [EMAIL PROTECTED]

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-Misc Digest
******************************

Reply via email to