home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / bsd / 10684 < prev    next >
Encoding:
Text File  |  1992-12-28  |  2.6 KB  |  65 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!spool.mu.edu!agate!tfs.com!tfs.com!julian
  3. From: julian@tfs.com (Julian Elischer)
  4. Subject: Re: [386BSD] adding a new partition.
  5. Message-ID: <1992Dec27.231625.4482@tfs.com>
  6. Organization: TRW Financial Systems
  7. References: <CC-MAIL+12_23_92_1#c#29PM+#091#386BSD#093#_adding_a_new_partition.*_S=BLANSFIE_OU=EM-01_O=CCMGW_PRMD=GOV+USDOE.G02_ADMD=ATTMAIL_C=US_@mailgw>
  8. Date: Sun, 27 Dec 1992 23:16:25 GMT
  9. Lines: 54
  10.  
  11. In article <CC-MAIL+12_23_92_1#c#29PM+#091#386BSD#093#_adding_a_new_partition.*_S=BLANSFIE_OU=EM-01_O=CCMGW_PRMD=GOV+USDOE.G02_ADMD=ATTMAIL_C=US_@mailgw> /S=BLANSFIE/OU=EM-01/O=CCMGW/PRMD=GOV+USDOE.G02/ADMD=ATTMAIL/C=US/@mailgw.er.doe.gov writes:
  12. >     I have a 200 MB hard disk that I has 2 partitions, on the first I have 
  13. >     386BSD and on the other I have DOS.  I want to wipe the DOS partition 
  14. >     and add it to 386BSD.  What would be the way to proceed?  Should I 
  15. >     back-up all my files and reinstall or is there an easier, faster way?
  16. >     
  17. >     Any help appreciated.
  18. >     
  19. >     Mike
  20. >     blansfie@mailgw.er.doe.gov
  21. This known as the "pulling the rug out from under your own feet" trick.
  22. I have actually done worse (shifted the root partition while running on it )
  23. SO YES, IT CAN BE DONE.
  24.  
  25. your first job is to get a copy of the 386bsd version of fdisk
  26. and it's man page (both installed on ref.tfs.com)
  27.  
  28. write a copy of the disktab entry which has all the partitions
  29. exactly where they are now, but has another  partition covering
  30. what used to be the dos Partition. (to be safe you could define the
  31. new partition to not cover the first cylinder)
  32. Note that partition d remains the whole disk, but c expands down
  33. to cover the new unix partition size.
  34.  
  35. whether you define the first cylinder to be part of the unix
  36. partition or not decides if your DOS MASTER BOOT RECORD will
  37. be overwritten by disklabel. (if you want to boot straight
  38. to unix fine, overwrite it).
  39.  
  40. Using fdisk (the 386bsd fdisk) ("fdisk -u /dev/rwd0d")
  41. redefine the 386bsd partition to cover all the disk.
  42.  
  43. using disklabel -r -w wd0 <disktab> <label> <xxboot> <bootxx>
  44. drop on the new label.
  45.  
  46. check the new disklabel with:
  47. disklabel -r wd0
  48.  
  49. if it seems ok, and there are no overwritten partitions:
  50. newfs wd0x (where x is the new partition) 
  51.  
  52. mount the new partition.
  53.  
  54.  
  55. take backups before yopu try all this 8-)
  56.  
  57. julian
  58. +----------------------------------+       ______ _  __
  59. |   __--_|\  Julian Elischer       |       \     U \/ / On assignment
  60. |  /       \ julian@tfs.com        +------>x   USA    \ in a very strange
  61. | (   OZ    ) 2118 Milvia st. Berkeley CA. \___   ___ | country !
  62. +- X_.---._/  USA+(510) 704-3137(wk)           \_/   \\            
  63.           v
  64.  
  65.