⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unx35.htm

📁 Linux Unix揭密.高质量电子书籍.对学习Linux有大帮助,欢迎下载学习.
💻 HTM
📖 第 1 页 / 共 5 页
字号:

PARTITION MENU:

        0      - change '0' partition

        1      - change '1' partition

        2      - change '2' partition

        3      - change '3' partition

        4      - change '4' partition

        5      - change '5' partition

        6      - change '6' partition

        7      - change '7' partition

        select - select a predefined table

        modify - modify a predefined partition table

        name   - name the current table

        print  - display the current table

        label  - write partition map and label to the disk

        quit</PRE>

<P>Partition 2 is the Sun convention for the entire disk. The remaining partitions on a non-boot disk can be used for any section of the disk.

<BR></P>

<PRE>partition&gt; 0

Part      Tag    Flag     Cylinders        Size       Blocks

0   unassigned   wm       0                0          (0/0/0)

Enter partition id tag[unassigned]: <B>?</B>

Expecting one of the following: (abbreviations ok):

        unassigned    boot          root          swap

        usr           backup        var           home</PRE>

<P>If you are unsure of an answer, you can type ?, and the system will prompt you for the choices. The types of partition IDs are as follows:

<BR></P>

<TABLE BORDER>

<TR>

<TD>

<P>unassigned</P>

<TD>

<P>This partition entry will not be used; the starting cylinder and size should be 0</P>

<TR>

<TD>

<P>boot</P>

<TD>

<P>Stand-alone boot images</P>

<TR>

<TD>

<P>backup</P>

<TD>

<P>The entire disk, used to back up the disk in image format</P>

<TR>

<TD>

<P>root</P>

<TD>

<P>The root file system</P>

<TR>

<TD>

<P>swap</P>

<TD>

<P>Swap partition</P>

<TR>

<TD>

<P>var</P>

<TD>

<P>System partition for local data</P>

<TR>

<TD>

<P>usr</P>

<TD>

<P>System partition for system files</P>

<TR>

<TD>

<P>home</P>

<TD>

<P>Any partition for user files</P></TABLE>

<PRE>Enter partition id tag[unassigned]: <B>home</B>

Enter partition permission flags[wm]: <B>?</B>

Expecting one of the following: (abbreviations ok):

     wm    - read-write, mountable

     wu    - read-write, unmountable

     rm    - read-only, mountable

     ru    - read-only, unmountable</PRE>

<P>Mountable partitions hold file systems; unmountable ones are for raw data, such as databases.

<BR></P>

<PRE>Enter partition permission flags[wm]:

Enter new starting cyl[0]:</PRE>

<P>Although partitions can sometimes overlap, if they are to be used at the same time, they cannot overlap. Normally, set the starting cylinder for each new partition to the starting cylinder + the number of cylinders in the prior partition.

<BR></P>

<PRE>Enter partition size[0b, 0c, 0.00mb]: <B>?</B>

Expecting up to 2052288 blocks, 2036 cylinders, or 1002.09 megabytes

Enter partition size[0b, 0c, 0.00mb]: <B>1024c</B></PRE>

<P>Repeat the prior step until all the partitions are completed. Then use the p (print) command to check that it is correct. No partitions should overlap, except where you intend to use one or the other of them. Of course, partition 2, being the entire 
disk, will overlap everything.

<BR></P>

<P>When you are satisfied that the information is correct, label the disk

<BR></P>

<PRE>partition&gt; <B>label</B></PRE>

<P>and quit the format program.

<BR></P>

<H6 ALIGN="CENTER">

<CENTER>

<FONT SIZE=3><B>Adding a Disk Using the Unixware </B><B><I>disksetup</I></B><B> Command</B>

<BR></FONT></CENTER></H6>

<P>Configure the disk to an unused SCSI target that is higher than the target ID of the boot disk and add it to the SCSI chain. Then reboot the system. Unixware will detect the new device on boot and automatically create all the device entries. Once 
booted, log in and become root. Then run the fdisk command to add a partition table to the new disk drive. The argument to fdisk is the raw device entry for slice 0 on the disk. This is determined by taking the string /dev/rdsk/ and entering the controller 

and target numbers as cNtM. Slice 0 is always d0s0.

<BR></P>

<PRE># fdisk /dev/rdsk/c0t1d0s0

The recommended default partitioning for your disk is:

  a 100% &quot;UNIX System&quot; partition.

To select this, please type &quot;y&quot;.  To partition your disk differently,

type &quot;n&quot; and the &quot;fdisk&quot; program will let you select other partitions. <B>y</B></PRE>

<P>Unless you intend to place a DOS partition onto the drive, answer yes and let Unixware default the entire disk to UNIX. Then run disksetup, which takes the same argument as fdisk.

<BR></P>

<PRE># disksetup -I /dev/rdsk/c0t1d0s0

Surface analysis of your disk is recommended

but not required.

Do you wish to skip surface analysis? (y/n) <B>y</B></PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="imp.gif" WIDTH = 68 HEIGHT = 35><B>TIP:</B> If the disk is a SCSI disk that handles bad block mapping itself, you can safely skip the surface analysis. For ESDI, MFM, and SMD disks, always run the surface analysis.

<BR></NOTE>

<HR ALIGN=CENTER>

<PRE>You will now be queried on the setup of your disk. After you

have determined which slices will be created, you will be

queried to designate the sizes of the various slices.

How many slices/filesystems do you want created on the disk (1 - 13)? <B>2</B></PRE>

<P>Unixware supports 16 slices per disk. However, it reserves three of them for its own use to hold the boot track, the bad track map, and the alternate sector tracks.

<BR></P>

<PRE>Please enter the absolute pathname (e.g., /usr3) for

slice/filesystem 1 (1 - 32 chars)? <B>/opt</B></PRE>

<P>This is the mount point for the file system. Non-file-system partitions can have an identifier entered here to remind you of the usage of this partition, because it won't be used in a mount command.

<BR></P>

<PRE>Enter the filesystem type for this slice (vxfs,ufs,s5,sfs),

type 'na' if no filesystem is needed, or press

&lt;ENTER&gt; to use the default (vxfs):

Specify the block size from the following list

(1024, 2048, 4096, 8192), or press &lt;ENTER&gt; to use the first one:

Should /opt be automatically mounted during a reboot?

Type &quot;no&quot; to override auto-mount or press enter to enable the option:

Please enter the absolute pathname (e.g., /usr3) for

slice/filesystem 2 (1 - 32 chars)? <B>/home</B></PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="caution.gif" WIDTH = 37 HEIGHT = 35><B>CAUTION:</B> Be sure to save any files at the new mount point before running the disksetup command. Remove those files so there are no files or directories in the mount directory. The mount will hide any 
files in the parent file system at and below the mount point. After the disksetup command is completed, restore the saved files onto the new disk partition.

<BR></NOTE>

<HR ALIGN=CENTER>

<PRE>Enter the filesystem type for this slice (vxfs,ufs,s5,sfs),

type 'na' if no filesystem is needed, or press

&lt;ENTER&gt; to use the default (vxfs):

Specify the block size from the following list

(1024, 2048, 4096, 8192), or press &lt;ENTER&gt; to use the first one:

Should /home be automatically mounted during a reboot?

Type &quot;no&quot; to override auto-mount or press enter to enable the option:

You will now specify the size in cylinders of each slice.

(One megabyte of disk space is approximately 1 cylinder.)

How many cylinders would you like for /opt (0 - 638)?

Hit &lt;ENTER&gt; for 0 cylinders: <B>320</B>

How many cylinders would you like for /home (0 - 318)?

Hit &lt;ENTER&gt; for 0 cylinders: <B>318</B>

You have specified the following disk configuration:

A /opt filesystem with 320 cylinders (320.0 MB)

A /home filesystem with 318 cylinders (318.0 MB)

Is this allocation acceptable to you (y/n)? <B>y</B>

Filesystems will now be created on the needed slices

Creating the /opt filesystem on /dev/rdsk/c0t1d0s1

Allocated approximately 81888 inodes for this file system.

Specify a new value or press &lt;Enter&gt; to use the default:

WARNING: This file system will be able to support more than 65,536 files. Some older applications (written for UNIX System V Release 3.2 or before) may not work correctly on such a file system, even if fewer than 65,536 files are actually present. If you 
wish to run such applications (without recompiling them), you should restrict the maximum number of files that may be created to fewer than 65,536.</PRE>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="imp.gif" WIDTH = 68 HEIGHT = 35><B>TIP:</B> In System V Release 4, the inode number was increased from a 16-bit to a 32-bit field. If the pre-4.0 application performs a stat call, it might not be capable of understanding the inode number that is 

returned. This is a problem for only a small number of applications. Normally you can safely ignore this message and allow the increased number of inodes.

<BR></NOTE>

<HR ALIGN=CENTER>

<PRE>Your choices are:

1. Restrict this file system to fewer than 65,536 files.

2. Allow this file system to contain more than 65,536 files

   (not compatible with some older applications).

Press '1' or '2' followed by 'ENTER': <B>2</B>

Creating the /home filesystem on /dev/rdsk/c0t1d0s2

Allocated approximately 81376 inodes for this file system.

Specify a new value or press &lt;Enter&gt; to use the default:

WARNING: This file system will be able to support more than 65,536 files. Some older applications (written for UNIX System V Release 3.2 or before) may not work correctly on such a file system, even if fewer than 65,536 files are actually present. If you 
wish to run such applications (without recompiling them), you should restrict the maximum number of files that may be created to fewer than 65,536.

Your choices are:

1. Restrict this file system to fewer than 65,536 files.

2. Allow this file system to contain more than 65,536 files

   (not compatible with some older applications).

Press '1' or '2' followed by 'ENTER': <B>1</B></PRE>

<P>Other systems are similar to either the Solaris or Unixware examples.

<BR></P>

<H5 ALIGN="CENTER">

<CENTER><A ID="I20" NAME="I20">

<FONT SIZE=3><B>Partition Uses</B>

<BR></FONT></A></CENTER></H5>

<P>Partitions can be used for file systems or as raw data areas. Uses of raw data areas include the following:

<BR></P>

<UL>

<LI><B>Swap space.</B> Swap space can be split across several drives. This is normally done if the system grows and RAM is added, making more swap space necessary.

<BR>

<BR></LI>

<LI><B>Backup staging area.</B> Perform your backups to disk and then copy them to tape at high speed after they complete. Then the backup is also available online for immediate access.

<BR>

<BR></LI>

<LI><B>Database devices.</B> Many UNIX databases perform faster and more reliably if they do not have to use the UNIX file system cache.

<BR>

<BR></LI></UL>

<HR ALIGN=CENTER>

<NOTE>

<IMG SRC="caution.gif" WIDTH = 37 HEIGHT = 35><B>CAUTION:</B> The label for a disk is stored in block 0. UNIX file systems skip block 0, reserving it for the boot block and label. If you create a non-file-system slice at the front of a disk, do not include 

block 0 in the slice. This will prevent the raw slice from overwriting the label and losing the partition layout of the disk.

<BR></NOTE>

<HR ALIGN=CENTER>

<H3 ALIGN="CENTER">

<CENTER><A ID="I21" NAME="I21">

<FONT SIZE=4><B>Preparing a File System</B>

<BR></FONT></A></CENTER></H3>

<P>Once the disk is partitioned and labeled with its slices, you are ready to make a file system. The Unixware disksetup utility combined this with the labeling step, but it allowed only the default values for most of the parameters, allowing you a choice 

only of file system type and number of inodes. In addition, it does not help you build a file system after the disk is already labeled. For that you still have to use the traditional methods of building a file system.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -