- 論壇徽章:
- 0
|
搜索了半天,實(shí)在找不到合適的答案,上來(lái)問(wèn)一下。
我安裝的時(shí)候,在ad0上創(chuàng)建了一個(gè)slice,即ad0s1,里面有ad0s1a,ad0s1b,ad0s1等,這個(gè)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
復(fù)制代碼
現(xiàn)在上面只有一個(gè)系統(tǒng),我想倒一下數(shù)據(jù),想在未用的ad0上再分一個(gè)slice出來(lái),ad0s2,在sysinstall中,分label的時(shí)候一直出錯(cuò),因?yàn)樵赼d0s1b中的swap分區(qū)償試再次寫(xiě)入失敗(在用)。
用命令行下的fdisk好象分出來(lái)了slice ad0s2,但/dev下面沒(méi)有設(shè)備文件/dev/ad0s2*:
- [color=red]重啟了一下,/dev/ad0s2的設(shè)備文件有了[/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#
復(fù)制代碼
- bsd# ls /dev/ad0*
- /dev/ad0 /dev/ad0s1a /dev/ad0s1c /dev/ad0s1e /dev/ad0s1g
- /dev/ad0s1 /dev/ad0s1b /dev/ad0s1d /dev/ad0s1f
- bsd#
復(fù)制代碼
如何在使用中的硬盤(pán)上,在空的空間中劃分一個(gè)新的slice出來(lái)呢?
重啟了一下,/dev/ad0s2的設(shè)備文件有了
[ 本帖最后由 moxnet 于 2008-7-31 00:27 編輯 ] |
|