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