From: hlu@yoda.eecs.wsu.edu (H.J. Lu)
Newsgroups: comp.os.linux
Subject: Re: Help: 'ps' & 'top' don't work anymore...
Date: 4 Oct 92 17:33:49 GMT
Organization: Washington State University

In article <1992Oct4.141439.6382@cs.tu-berlin.de> schli@cs.tu-berlin.de (Wolfram Schlickenrieder) writes:
>
>	Hi...
>
>	I upgraded from 0.96c to 0.97pl1 (nice install script:).
>	Unfortunately I discovered that 'ps' and 'top' stopped working
>	since then.
>
>	'ps' writes a message saying that I might have to recompile it
>	for 0.97, and I did, but nothing happened.  'ps' also says
>	that there is something wrong with some 'magic number' in
>	/etc/system. Since there wasn't any /etc/system, I created the
>	directory, but 'ps' says there's still a wrong magic number
>	(somehow) associated with it -- whatever that may mean now...
>	The suggestion to type 'ps -U' (made by 'ps' itself as well)
>	didn't have any effect either...
>
>	'top' reports difficulties reading /dev/kmem.  This cannot be
>	because of insufficient rights (I think 'ps' is 
>	SUID root, and /dev/kmem is owned by root as well).
>
>	Can anyone out there provide me with a working version of 'ps'
>	and 'top', or tell me what I'm doing wrong?
>
>	Thanx in advance...
>
>	...Wolfram
>

If you don't want to compile kernel and ps everytime when a new kernel
is out, and you want to use the latest kernel, please try my bootable
rootdisk on tsx-11.

H.J.
-----
These are bootable root disks for Linux. Kernel is 0.98. There are
some basic binaries on root disks, all of which are linked with jump
table 4.1. They are on tsx-11.mit.edu under pub/linux/GCC/rootdisk.

This is a partial list of what are on root disks.

1. bash 1.12
2. gnu tar 1.10 (tar.Z) (it is not in 5.25" version.)
3. compress 4.2.3
4. elvis 1.6
5. doshell, chmod, chown, cp, ls, mv, rm, and ln.
6. mount, umount, swapon
7. more
8. ps and free
9. mkfs, mkswap, fsck and fdisk

There are two versions of root disks, one, 3rootdisk.Z, for 3.5" drive,
the other, 5rootdisk.Z, for 5.25" drive. Please do

1. uncompress [3|5]rootdisk.Z.
2. rawrite or dd it to a floppy disk.
3. boot that floppy disk.

If you want to use it to install Linux on your HD, you are on your own.
Everything is there. But you have to know how to use them.

Since there is no enough room on a 5.25" floppy, I left out gnu tar
1.10. You can get it from bin4.tar in the same directory.

Suppose you want to install Linux on partition, /dev/hdxx, whose size
is yyyy K bytes, you can use fdisk to find it out, you do

mkfs /dev/hdxx yyyyy
mount /dev/hdxx /mnt
cd /mnt
mkdir mnt
for d in bin dev etc lib usr tmp vmlinux
do
  cp -R /$d $d
done

Since cp will destroy links, you should run `mklinks', which is also in
the directory where you find the rootdisks, after you have copied the
rootdisk to your HD.

You now should edit /mnt/etc/fstab to make sure /dev/hdxx will be
mounted as root. There are some examples in /mnt/etc/fstab. After that,
do

cd /mnt/etc/lilo
rm map boot.????
./lilo -r /mnt -b /dev/hdxx -i boot.b -v -v -v /vmlinux

Now, you can boot Linux from your HD. To install the other stuffs
should be very trivial now since you have tar and compress on your HD,
and you can boot Linux off your HD. I suggest you get my bonuses come
with jump table 4.1.

For those of you only have 5.25" floppy drive, I can provide a
supplementary minix filesystem disk, which will have tar and other
stuffs.

I will try to update my root disk regularly with Linus' new kernel.

This root disk works on my machine with 100MB IDE drive. I don't know
anything about your machine or SCSI. Wish you good luck.

Correct me if I am wrong. Tell me about your story.


Thanks.

H.J.
hlu@eecs.wsu.edu
10/01/09