home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / unix / bsd / 4429 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  3.6 KB

  1. Path: sparky!uunet!ferkel.ucsb.edu!taco!lll-winken!elroy.jpl.nasa.gov!usc!wupost!darwin.sura.net!Sirius.dfn.de!math.fu-berlin.de!zrz.tu-berlin.de!cs.tu-berlin.de!news.netmbx.de!Germany.EU.net!mcsun!uknet!daresbury!doc.ic.ac.uk!dds
  2. From: dds@doc.ic.ac.uk (Diomidis Spinellis)
  3. Newsgroups: comp.unix.bsd
  4. Subject: Re: Endless boot cycle- suggestions? (SOLUTION)
  5. Message-ID: <16tkqqINN3e6@frigate.doc.ic.ac.uk>
  6. Date: 19 Aug 92 14:11:38 GMT
  7. References: <45240001@hpycla.kobe.hp.com> <Aug.18.17.41.42.1992.4915@action.rutgers.edu> <3l!nmtm.alm@netcom.com>
  8. Organization: Department of Computing, Imperial College, University of London, UK.
  9. Lines: 106
  10. NNTP-Posting-Host: dirty.doc.ic.ac.uk
  11.  
  12. Many people have reported endless boot cycles after installing 386BSD
  13. on a hard disk.  I had the same problem, and solved it using the
  14. following procedure.  The problems seems to be wrong disklabels on
  15. the disk created by install.  This is can fixed, by doing it manualy.
  16. You milleage may vary.
  17.  
  18. (1) Boot with the fixit floppy disk
  19.  
  20. (2) Make floppy writable
  21.     mount -u /dev/fd0a /
  22.  
  23. (3) Make space to add a new disk label
  24.     rm /[A-Z]* /usr/bin/tip
  25.  
  26. (4) Create a new disk entry.  The manual pages for disktab 5 should guide
  27.     you.  You need to know the characteristics of your hard disk.
  28.     Look at the disks in the file, and add one for your own disk.
  29.     cd /etc
  30.     vi disktab
  31.  
  32. (5) Label your disk
  33.     disklabel -r -w diskname
  34.  
  35. The rest (steps 6-27) comes from article <148ersINNr9t@agate.berkeley.edu>
  36. by Chris Demetriou <cgd@agate.berkeley.edu>.  I just have added a small
  37. modification to make mount and umount executable.
  38.  
  39. (6) newfs the partitions
  40. (7) mount the new root partition under /mnt
  41. (8) mkdir /mnt/usr
  42. (9) mount the new /usr partition under /mnt/usr
  43. (10) cpio directory-by-directory (recursively -- by hand!) the entire
  44.     contents of the fixit floppy to the hard drive
  45.  
  46.     you'll do something like:
  47.  
  48.     cd /
  49.     ls | cpio -pdalmu /mnt
  50.     cd /sbin
  51.     ls | cpio -pdalmu /mnt/sbin
  52.     cd /usr
  53.     ls | cpio -pdalmu /mnt/usr
  54.     cd /usr/bin
  55.     ls | cpio -pdalmu /mnt/usr/bin
  56.  
  57.     etc.  yes, it's tiring.
  58.  
  59. (11) copy /usr/distbin/mount and /usr/distbin/umount to /mnt (so that
  60.     they'll be in the new root partition, so you can mount the new
  61.     /usr partition...)
  62.  
  63. Do this using echo mount | cpio -pmaldu /mnt in order to preserve
  64. the executable flags of the files.  Chmod is not yet on the disk.
  65.  
  66. (12) shutdown
  67.     and the eject the floppy.
  68.  
  69. (13) reboot off the hard drive, the fsck -p <root raw device>
  70.     If there are any errors, after the fsck is done, hit
  71.     ctl-alt-delete, and repeat this step.
  72.  
  73. (14) fsck -p <usr raw device>
  74.  
  75. (15) mount -u <root device> /
  76.  
  77. (16) mount <usr device> /usr
  78.  
  79. (17) insert 0.1 boot/install floppy (dist.fs) into floppy drive
  80.     and "mount /dev/fd0a /mnt"
  81.  
  82. (18) cd /mnt
  83.     and then
  84.     usr/bin/zcat etc/baselist.Z | usr/bin/cpio -pdalmu /
  85.  
  86. (19) cd /
  87.     and then
  88.     /mnt/usr/bin/zcat /mnt/etc/baseutils.cpio.Z | /mnt/usr/bin/cpio -idalmu
  89.  
  90. (20) umount /mnt    then eject the floppy
  91. (21) umount /usr
  92. (22) shutdown
  93.  
  94. (23) reboot off the hard drive, and get all of the various files (the
  95.     bindist files, srcdist files, etc...).
  96.     I put them into /usr/tmp, because there wasn't enough space in
  97.     /tmp (because it was on a small root partition...).
  98.  
  99. (24) cd / ; cat <all the binary files> | uncompress | cpio -idalmu
  100.  
  101.  
  102. (25) rm <all the binary files>
  103.  
  104. (26) put your hostname into "/etc/myname" and put your ip addr/hostname
  105.     into /etc/hosts.
  106.  
  107. (27) make an fstab for yourself.  specifically, you want something like:
  108.     <root device name>    /    ufs rw 1 1
  109.     <usr device name>    /usr    ufs rw 1 2
  110.  
  111.  
  112. Good luck,
  113.  
  114. Diomidis
  115. -- 
  116. Diomidis Spinellis    Internet: <dds@doc.ic.ac.uk>  UUCP: ...!uknet!icdoc!dds
  117. Department of Computing, Imperial College, London SW7     #include "/dev/tty"
  118.