1834459 Members
3196 Online
110067 Solutions
New Discussion

Ooops...

 
SOLVED
Go to solution
Frank Slootweg
Honored Contributor

Re: Ooops...

> Well, no more vi, no more ftp, and no more rcp... it
> won't be as easy as I hoped.
> Any idea to put them back, keeping in mind I have to use floppy discs?
> Maybe I could download the files somewhere, or someone
> could email them to me?

You could try to search the ITRC for patches for the missing commands/files and then download those patches to your PC, unpack them (your PC probably has pax; pax can read tar archives and patches are tar archives in shell archives; perhaps/probably you need uudecode functionality on your PC as well) and then copy them over to your PC via diskettes (see doscp(1) on HP-UX).

*HOWEVER*, what makes you think that once you have the *network* stuff, you also have/can_get the *other* stuff which you (probably) removed? I.e. why bother getting the network stuff if you can not get the other stuff?
Volker Borowski
Honored Contributor

Re: Ooops...

Frank brought up a very good point !

You should hunt for swremove.log to see, what really has been eliminated.

Volker
Frederic Wartner
Frequent Advisor

Re: Ooops...

Well, if I can use the network, I'll be able to get the packs and patches from ITRC via my Linux box... and hopefully get everything back.
Frederic Wartner
Frequent Advisor

Re: Ooops...

I forgot to tell you that I had no other application than standard 10.20 distribution, and this is just what I'd like to retrieve!
Frederic Wartner
Frequent Advisor

Re: Ooops...

"tar -cvf - /etc/hosts | rsh 192.168.0.4 tar xvf -" on the Linux box=>
"tar: removing leading `/' from member names
etc/hosts
poll: protocol failure in circuit setup"
...
Frederic Wartner
Frequent Advisor

Re: Ooops...

Latest news: I got an ftp client on a floppy disk.
Now, how do I access files on a FD?
Also, the file is a .depot, what command(s) do I need to install it?
Steven E. Protter
Exalted Contributor

Re: Ooops...

To install software off a depot.

swinstall -x autoreboot=true -x reinstall=false -s /depot_location_full_path \*

Don't know a thing about floppies. Never even SEEN one on an HP-9000 server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
KapilRaj
Honored Contributor

Re: Ooops...

Hi,

floppy disks can be acceses through tar if the floppy was created by a tar command. Or it can be mounted to a directory if that has a filesystem on it (never tried). It should be a tar or may be a cpio format.

You may try
ioscan -fnC disk # note doen the device file for floppy
tar tvf /dev/dsk/XXXXXXX

all the best.

Thread looks like IT giants are giving life to a person who is in "COMMA" ....... Great time guys !!!....

I would luv to have a box like that .... (touch wood)

Regds,

kaps
Nothing is impossible
Frank Slootweg
Honored Contributor

Re: Ooops...

How/where did you write the .depot file to the diskette?

If you did it on a DOS/Windows PC, then the filesystem on the diskette is probably DOS/FAT. If so, you can read it with doscp(1) on the HP-UX system. You may first want to try:

dosls -l /dev/rdsk/:

(note the ":" at the end!) to see if your diskette drive works and you can list the directory of the diskette.
Frederic Wartner
Frequent Advisor

Re: Ooops...

ARRGHH!

Remember I entered "tar -cvf - /etc/hosts | rsh 192.168.0.4 tar xvf -" on the Linux box, as someone advised, and it answered
"tar: removing leading `/' from member names
etc/hosts
poll: protocol failure in circuit setup"?

Well now HP-UX won't boot... It just loops saying:
"Init: command is respawning too rapidly.
Will try again in 5 minutes.
Check for possible errors.
id:cons "/usr/sbin/getty console console # system console"

...looks bad, uh?


Frederic Wartner
Frequent Advisor

Re: Ooops...

ARRGHH!

Remember I entered "tar -cvf - /etc/hosts | rsh 192.168.0.4 tar xvf -" on the Linux box, as someone advised, and it answered
"tar: removing leading `/' from member names
etc/hosts
poll: protocol failure in circuit setup"?

Well now HP-UX won't boot... It just loops saying:
"Init: command is respawning too rapidly.
Will try again in 5 minutes.
Check for possible errors.
id:cons "/usr/sbin/getty console console # system console"

...sounds bad, uh?


Frederic Wartner
Frequent Advisor

Re: Ooops...

sorry for involuntarily doubling my last message.
Frank Slootweg
Honored Contributor

Re: Ooops...

Regarding HP-UX 'not' booting and init(1M) respawning getty(1M) on the console too rapidly:

Just boot the system in single-user mode, i.e. interrupt the boot sequence when the boot 'ROM' tells you to, tell it to interact with IPL/ISL, and at the ISL prompt do:

ISL> hpux -is

Frederic Wartner
Frequent Advisor

Re: Ooops...

Well, sorry again, I've not been accurate once more.
In fact ISL boots HPUX, but I can't log in: the message I mentioned before happens after the "HPUX startup in progress" list, and happens again every 5 minutes.
It seems I can't interact at any moment, except to choose the system to boot (but there's only one).
Frank Slootweg
Honored Contributor

Re: Ooops...

Yes, I know that ISL boots HP-UX, otherwise you would not get init(1M) et al.

The point is that you do *not* want to boot *normally* and then *fail*, but boot in *single user mode* (see my instructions), so that you can try to find out what is wrong (in this case start with /etc/inittab and the getty(1M) entry for the console, i.e. *why* is it respawning?).

With regard to not able to interact with the boot 'ROM': Doesn't it say something like "To stop selection process, press and hold the ESCAPE key..."? If so, do that and then "b p? isl". That should bring you to ISL. For details, see the hpux(1M) manual page. If you do not have access to a manual page then goto http://www.docs.hp.com

When you have booted in single-user mode, i.e. you have the "# " root prompt, (try to) "mount -a" the other file systems, so that you have most/all commands (mostly on /usr) available.
Frederic Wartner
Frequent Advisor

Re: Ooops...

Thanks for your patience.
I've finally managed to boot in single user mode (what I was missing was I had to use boot_admin).

# mount -a
mount: ignoring incomplete entry for + in the /etc/fstab
mount: file system table may be corrupt

I'm getting "a bit" discouraged... Do you think that installing the latest bundles and quality packs would fix everything?

If so, first I have to get the network services working, and transfer the files. I have a Unix ftp client on a floppy disk... but I have lost most of the commands so I can't read the floppy. I can't even find... "find".

If not, or if I can't get the patches on the 715, and as I don't have access to any HPUX media, I'll have to forget it and switch to some Linux... which would be quite upsetting.
Frank Slootweg
Honored Contributor

Re: Ooops...

No, I don't think that installing the latest bundles and quality packs is the way to go, because they expect a healthy system, not a broken one.

What I suggested was getting the *missing* components/commands *from* patches, not *installing* them (the patches).

The best solution is a fresh re-install, but for that you will have to borrow or buy the media and will have to have a (compatible) CD-ROM drive. You can try e-Bay et all for the media. Also see the FAQ of the Usenet Newsgroup comp.sys.hp.hpux.

As to the error messages from the "mount -a" command: Why don't you check/fix /etc/fstab? I.e. if you can not re-insttall, the only way is to take it one step/error/problem at a time.