Chinaunix

标题: 装好了系统后怎么更改分区的大小啊? [打印本页]

作者: lly80    时间: 2004-03-15 14:56
标题: 装好了系统后怎么更改分区的大小啊?
solaris系统装好后,怎样去更改分区的大小啊,请大虾指教!
作者: nimysun    时间: 2004-03-15 14:59
标题: 装好了系统后怎么更改分区的大小啊?
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <ST340014A cyl 19156 alt 2 hd 16 sec 255>;
          /pci@1f,0/pci@1,1/ide@3/dad@0,0
Specify disk (enter its number): 0
selecting c0t0d0
[disk formatted, no defect list found]
Warning: Current Disk has mounted partitions.


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        show       - translate a disk address
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        volname    - set 8-character volume name
        !<cmd>;     - execute <cmd>;, then return
        quit
format>; p


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
        !<cmd>; - execute <cmd>;, then return
        quit
partition>; 7
Part      Tag    Flag     Cylinders         Size            Blocks
  7 unassigned    wm   19125 - 19155       61.76MB    (31/0/0)      126480

Enter partition id tag[unassigned]:  
Enter partition permission flags[wm]:
Enter new starting cyl[19125]:
Enter partition size[126480b, 31c, 61.76mb, 0.06gb]: 31c
partition>; l
Ready to label disk, continue? y

partition>;q
format>;q
#
作者: chinaren-sun    时间: 2004-03-15 15:34
标题: 装好了系统后怎么更改分区的大小啊?
如果你要是更改系统分区或择优数据分区,需要使用ufsdump备份,
修改完成以后重新恢复。
作者: lly80    时间: 2004-03-15 15:54
标题: 装好了系统后怎么更改分区的大小啊?
在Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[19125]:
Enter partition size[126480b, 31c, 61.76mb, 0.06g]
partition>;l
这之后,怎么就没有reday。。。的了?

然后继续是partition>;。。。。
作者: lly80    时间: 2004-03-15 16:00
标题: 装好了系统后怎么更改分区的大小啊?
在Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[19125]:
Enter partition size[126480b, 31c, 61.76mb, 0.06g]
partition>;l  这是输入L吧,然后说:cannot label disk while it has mounted partitions。
是不是不能更改了?
作者: pengtao_hlp    时间: 2004-03-15 19:25
标题: 装好了系统后怎么更改分区的大小啊?
记得保存哦。LABE下。要不就不保存啦
作者: fxy9731    时间: 2004-03-15 22:21
标题: 装好了系统后怎么更改分区的大小啊?
你改的那个分区要umount下来才行




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2