- 论坛徽章:
- 0
|
搜索了半天,实在找不到合适的答案,上来问一下。
我安装的时候,在ad0上创建了一个slice,即ad0s1,里面有ad0s1a,ad0s1b,ad0s1等,这个slice用了差不多13G空间。
- bsd# bsdlabel /dev/ad0s1
- # /dev/ad0s1:
- 8 partitions:
- # size offset fstype [fsize bsize bps/cpg]
- a: 1048576 0 4.2BSD 0 0 0
- b: 2029152 1048576 swap
- c: 27262242 0 unused 0 0 # "raw" part, don't edit
- d: 3110912 3077728 4.2BSD 0 0 0
- e: 1048576 6188640 4.2BSD 0 0 0
- f: 10485760 7237216 4.2BSD 0 0 0
- g: 9539266 17722976 4.2BSD 0 0 0
复制代码
现在上面只有一个系统,我想倒一下数据,想在未用的ad0上再分一个slice出来,ad0s2,在sysinstall中,分label的时候一直出错,因为在ad0s1b中的swap分区偿试再次写入失败(在用)。
用命令行下的fdisk好象分出来了slice ad0s2,但/dev下面没有设备文件/dev/ad0s2*:
- [color=red]重启了一下,/dev/ad0s2的设备文件有了[/color]
- bsd# fdisk /dev/ad0
- ******* Working on device /dev/ad0 *******
- parameters extracted from in-core disklabel are:
- cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
- Figures below won't work with BIOS for partitions not in cyl 1
- parameters to be used for BIOS calculations are:
- cylinders=116301 heads=16 sectors/track=63 (1008 blks/cyl)
- Media sector size is 512
- Warning: BIOS sector numbering starts with sector 1
- Information from DOS bootblock is:
- The data for partition 1 is:
- sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
- start 63, size 27262242 (13311 Meg), flag 80 (active)
- beg: cyl 0/ head 1/ sector 1;
- end: cyl 1023/ head 254/ sector 63
- The data for partition 2 is:
- sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
- start 27262305, size 41929650 (20473 Meg), flag 80 (active)
- beg: cyl 1023/ head 255/ sector 63;
- end: cyl 1023/ head 254/ sector 63
- The data for partition 3 is:
- <UNUSED>
- The data for partition 4 is:
- <UNUSED>
- bsd#
复制代码
- bsd# ls /dev/ad0*
- /dev/ad0 /dev/ad0s1a /dev/ad0s1c /dev/ad0s1e /dev/ad0s1g
- /dev/ad0s1 /dev/ad0s1b /dev/ad0s1d /dev/ad0s1f
- bsd#
复制代码
如何在使用中的硬盘上,在空的空间中划分一个新的slice出来呢?
重启了一下,/dev/ad0s2的设备文件有了
[ 本帖最后由 moxnet 于 2008-7-31 00:27 编辑 ] |
|