Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

i cannot restore the system back up 1

Status
Not open for further replies.

demetrio

Technical User
Jul 17, 2002
70
GR
i am running a sco unix v3.2 4.2. someone programmer
delete from the root disk some files and the system cannot boot not even the single user. i boot from floppy using
the root and boot diskette.
i can see all the file systems included the root file system
i mounted the root file system to the /mnt directory of the diskete using mount /dev/hd0root /mnt
i go to the mounted directory

cd /mnt to my root disk.
the problem begins now. i try to restore the system back up
but the files don't go to the /mnt directory (the mounted directory of my root disk) but to the / directory which is the floppy.
i backup my system using the command

find / -depth -print |cpio -ovcB - O /dev/rct0

and i try to restore them using the command

cpio -iBudvcm -I/dev/rct0
or
cpio -icvdum -I/dev/rct0

any ideas who i can restore to the original location?
to the /mnt directory which is my root disk?

moreover i try (i am not sure if that can works)
to copy from the boot and the root disketes files to root directory of my disk. do you know , if it is possible of cource, which files shall i copy in order to boot not from the floppy but from the hard disk ?
i managed to copy all the files (boot , unix /etc) from boot diskette but i i dont now which files
shall i copy from the root diskete. some files cannot be copied from the root diskette
if i can boot from my hard disk to single user its easy from me then

thank you and i hope that you will understand what iam asking. (my english are very bad)
 
I don't remember if the 4.2 cpio admits the -A option (removing of leading / in pathnames).
If yes, then make /mnt your current directory (cd /mnt), make sure that all the backuped filesystem are mounted and go for the restore.
To know how the diskette's kernel see the disk's filesystem you may take a look at divvy.
I guess something like:
mount /dev/hd0u /mnt/u

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
You can copy the boot and unix files to /mnt and they will be used on the next hard drive boot.
Unmount the hard drive before you quit out of the floppy system so everything will be clean.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
i copied the boot the unix files from the boot diskette
to the hd0root disk (the mounted dierctory of the diskette}
i tried to copy the the directories and the files from the root diskette but some of them cannot be copy
most of the files of the /dev, /bin directories.
files such us -sh, hd01....etc
i umount the file system and i shutdown the system using haltsys
with the files i had copy i try to boot from the hd
the sytem goes to boot
i press to {enter} to boot but nothing goes on.
with the dir command i can see the files that i have copied
i press ./unix
it writes that it boots not from the hard disk hd(40)
but from the floppy fd(60)but it seems to try to boot from the hd because i dont have the boot diskette to floppy.
as soon as the system by pass the kernrel it stucks
just a little before it enters the single user.
do you know which files shall i copy from the boot and root diskette in order to enter the single user from my hard disk?
 
per the manual the required files are /boot , /unix , and /etc/default/boot.

Strongly suggest that you refer to section 22, solving boot problems as it has specific instructions for the recovery.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
thank you very much .the unix v3.2 4.2 cpio admits the -A option .i managed to restore the back up and the system is working fine
thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top