home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / sysv386 / 12642 < prev    next >
Encoding:
Text File  |  1992-07-30  |  2.4 KB  |  67 lines

  1. Newsgroups: comp.unix.sysv386
  2. Path: sparky!uunet!mcsun!Germany.EU.net!news.netmbx.de!zrz.tu-berlin.de!w250zrz!wolfaajj
  3. From: wolfaajj@w250zrz.zrz.tu-berlin.de (Thomas Wolfram)
  4. Subject: Re: Convert old DOS partition to UNIX under ISC?
  5. Message-ID: <VAL5QNF@mailgzrz.tu-berlin.de>
  6. Sender: wolfaajj@w250zrz (Thomas Wolfram)
  7. Nntp-Posting-Host: w250zrz.zrz.tu-berlin.de
  8. Organization: ZRZ der TU-Berlin
  9. References:  <1992Jul29.041521.20701@rocker.uucp>
  10. Date: Thu, 30 Jul 1992 15:30:43 GMT
  11. Lines: 54
  12.  
  13. In article <1992Jul29.041521.20701@rocker.uucp>, doug@rocker.uucp (Doug Luecke) writes:
  14. |> So, the big question is:
  15. |> Is there a way to format the partition for UNIX, and then mount it on
  16. |> my existing filesystem?  I know how to use fdisk to delete the DOS
  17. |> partition and then create a UNIX partition in its place.  What I can't
  18. |> figure out is how to format it and access it as a mountable file system.
  19. |> 
  20. |> There seems to be a way to add another physical disk drive to an existing
  21. |> system using the sysadm diskmgmt menus.  But from what I've found, it
  22. |> seems the folks at Interactive expect you to use only a single UNIX
  23. |> partition per drive.
  24. |> 
  25. |> Anybody done this before?
  26. |> 
  27.  
  28. I've already done this, first you must compute the number of sectors
  29. in the former DOS partition (if it is the first partition on the
  30. disk don't forget that this partition starts usually with head 1, not
  31. head 0). If you have a disk editor like the NU diskedit its easy to get
  32. this number from the partition table. If not, use:
  33. number = heads*sectors/track*cylinders of partition  -  x
  34. where x is sectors/track for the first partition and 0 for the others.
  35.  
  36. Suppose you want to mount the partition as /usr2:
  37. then log in as root and type:
  38.  
  39. # mkfs /dev/dsk/0pX <number of sectors in partition>
  40. # labelit /dev/dsk/0pX usr2 usr2
  41. # mount /dev/dsk/0pX /usr2
  42. # cd /usr2
  43. # mkdir lost+found
  44.  
  45. [X in /dev/0pX stands for partition number 1, 2, 3 or 4. (With /dev/0p0
  46.  you have access to the hole disk!) With the other devices /dev/c0t0pX
  47.  I had some problems I think its better to use the /dev/0pX's ]
  48.  
  49. Also its a good idea to create some empty slots in lost+found with
  50. repeatedly typed:
  51.  
  52. # >001
  53. # >002
  54.  
  55. etc.. (or with a loop of course).
  56.  
  57. If you want to mount the partition every time the machine is booted
  58. make an entry in /etc/fstab.
  59.  
  60. -- Thomas
  61.  
  62.   Thomas Wolfram                        Voice   : +49 030 4262960
  63.   Platz der Vereinten Nationen 6        Internet: wolframt@cs.tu-berlin.de
  64.   1017 Berlin
  65.   Germany
  66.  
  67.