home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / sun / admin / 5672 < prev    next >
Encoding:
Text File  |  1992-08-19  |  4.5 KB  |  115 lines

  1. Newsgroups: comp.sys.sun.admin
  2. Path: sparky!uunet!boulder!khonshu!ejh
  3. From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
  4. Subject: problem newfs'ing a disk
  5. Message-ID: <1992Aug19.225959.9138@colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: khonshu.colorado.edu
  8. Organization: Cooperative Institute for Research in the Environmental Sciences
  9. Date: Wed, 19 Aug 1992 22:59:59 GMT
  10. Lines: 103
  11.  
  12. I have this little problem. I've got two disks on my Sun IPC, an old
  13. Wren (about 900 MB) and a new Elite (1.3 GB). I had things set up such
  14. that everything (OS, home partition, var, usr, and swap) was on the
  15. Elite, and the Wren was just one big empty partition used for data
  16. storage. But recently one of the gurus here suggested that I move the
  17. OS onto the wren, and keep the data and home partitions on the Elite,
  18. since the elite is faster. So I tried to repartition and newfs the
  19. wren, and had a problem when I newfs'd the last partition (whihc is
  20. just leftover space I'll use as a data overflow). Here's an extract
  21. from the script file I was running at the time:
  22.  
  23.  
  24.  
  25.  
  26. Script started on Wed Aug 19 16:34:06 1992
  27. AVAILABLE DISK SELECTIONS:
  28.         0. sd0 at esp0 slave 24
  29.            sd0: <SUN1.3G cyl 1965 alt 2 hd 17 sec 80>
  30.         1. sd3 at esp0 slave 0
  31.            sd3: <IMPRIMIS 94601-15         cyl 1898 alt 2 hd 15 sec 71>
  32. Specify disk (enter its number): 1
  33. selecting sd3: <IMPRIMIS 94601-15        >
  34. [disk formatted, defect list found]
  35. Warning: Current Disk has mounted partitions.
  36.  
  37.  
  38. FORMAT MENU:
  39.         disk       - select a disk
  40.             <snip>
  41. format> partition
  42.  
  43.  
  44. PARTITION MENU:
  45.         a      - change `a' partition
  46.         b      - change `b' partition
  47.             <snip>
  48. partition> print
  49. Current partition table (original sd3):
  50.         partition a - starting cyl      0, # blocks    34080 (32/0/0)
  51.         partition b - starting cyl     32, # blocks   110760 (104/0/0)
  52.         partition c - starting cyl      0, # blocks  2021370 (1898/0/0)
  53.         partition d - starting cyl    136, # blocks    34080 (32/0/0)
  54.         partition e - starting cyl      0, # blocks        0 (0/0/0)
  55.         partition f - starting cyl      0, # blocks        0 (0/0/0)
  56.         partition g - starting cyl    168, # blocks   745500 (700/0/0)
  57.         partition h - starting cyl    868, # blocks  2021370 (1898/0/0)
  58.  
  59. partition> quit
  60.  
  61.             <snip>
  62.  
  63. [khonshu:/ ! ]# newfs -v sd3a
  64. mkfs /dev/rsd3a 34080 71 15 8192 1024 16 10 60 2048 t 0 -1
  65. /dev/rsd3a:     34080 sectors in 32 cylinders of 15 tracks, 71 sectors
  66.         17.4Mb in 2 cyl groups (16 c/g, 8.72Mb/g, 2048 i/g)
  67. super-block backups (for fsck -b#) at:
  68.  32, 17152,
  69. installing boot code
  70. 1st level boot = /usr/mdec/bootsd
  71. [khonshu:/ ! ]# newfs -v sd3b
  72. mkfs /dev/rsd3b 110760 71 15 8192 1024 16 10 60 2048 t 0 -1
  73. /dev/rsd3b:     110760 sectors in 104 cylinders of 15 tracks, 71 sectors
  74.         56.7Mb in 7 cyl groups (16 c/g, 8.72Mb/g, 2048 i/g)
  75. super-block backups (for fsck -b#) at:
  76.  32, 17152, 34272, 51392, 68512, 85632, 102752,
  77. [khonshu:/ ! ]# newfs -v sd3d
  78. mkfs /dev/rsd3d 34080 71 15 8192 1024 16 10 60 2048 t 0 -1
  79. /dev/rsd3d:     34080 sectors in 32 cylinders of 15 tracks, 71 sectors
  80.         17.4Mb in 2 cyl groups (16 c/g, 8.72Mb/g, 2048 i/g)
  81. super-block backups (for fsck -b#) at:
  82.  32, 17152,
  83. [khonshu:/ ! ]# newfs -v sd3g
  84. mkfs /dev/rsd3g 745500 71 15 8192 1024 16 10 60 2048 t 0 -1
  85. /dev/rsd3g:     745500 sectors in 700 cylinders of 15 tracks, 71 sectors
  86.         381.7Mb in 44 cyl groups (16 c/g, 8.72Mb/g, 2048 i/g)
  87. super-block backups (for fsck -b#) at:
  88.  32, 17152, 34272, 51392, 68512, 85632, 102752, 119872, 136992, 154112,
  89.  171232, 188352, 205472, 222592, 239712, 256832, 272672, 289792, 306912, 324032,
  90.  341152, 358272, 375392, 392512, 409632, 426752, 443872, 460992, 478112, 495232,
  91.  512352, 529472, 545312, 562432, 579552, 596672, 613792, 630912, 648032, 665152,
  92.  682272, 699392, 716512, 733632,
  93. [khonshu:/ ! ]# newfs -v sd3h
  94. mkfs /dev/rsd3h 2021370 71 15 8192 1024 16 10 60 2048 t 0 -1
  95. write error: 2021369
  96. wtfs: I/O error
  97.  
  98. Taking a look at that partiton in the format table again:
  99.         partition h - starting cyl    868, # blocks  2021370 (1898/0/0)
  100. So it looks like there's a problem with the second to last block!
  101. Anyone know what this is about?
  102.  
  103. Also I forgot to umount this drive (all mounted under the c partiton
  104. to /data. I already backed it up, so I don't care what happens to the
  105. contents, but is this bad to do for some other reason?
  106.  
  107. Finally, should I put my swap space on the faster drive too? I can
  108. have my swap partition on a different drive from my boot partition if
  109. I modify the kernal, right?
  110.  
  111.             Ed Hartnett
  112. -- 
  113. Edward Hartnett            ejh@khonshu.colorado.edu
  114.  
  115.