免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1742 | 回复: 4

solaris怎么增加并挂载分区 [复制链接]

论坛徽章:
0
发表于 2012-06-26 14:01 |显示全部楼层
我电脑是500G的硬盘,但是安装的时间只使用了50G的空间,剩余450G为unused,未分区,安装了solaris10。
现在我想把另外450G分区并挂载,我做了以下操作,未成功:
使用format命令,再使用fdisk把剩余的空间划分出一个solaris2分区
我想知道怎么把新加的solaris分区给格式化了呢?怎么挂载呢?
format命令看到了的硬盘
bash-3.00# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c0d0 <DEFAULT cyl 6373 alt 2 hd 255 sec 63>
          /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
Specify disk (enter its number): 0
selecting c0d0

fdisk看到的分区结果:
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1       Active    Solaris2          1  6375    6375     10
          2                 Solaris2       6376  60799    54424     90

其中我的系统装在partition1里面,2是系统安装完成后用fdisk添加的,添加后没有做任务操作,怎么格式化?
/dev/dsk目录下的部分内容:
bash-3.00# ls /dev/dsk/c0d0s*
/dev/dsk/c0d0s0   /dev/dsk/c0d0s12  /dev/dsk/c0d0s2   /dev/dsk/c0d0s6
/dev/dsk/c0d0s1   /dev/dsk/c0d0s13  /dev/dsk/c0d0s3   /dev/dsk/c0d0s7
/dev/dsk/c0d0s10  /dev/dsk/c0d0s14  /dev/dsk/c0d0s4   /dev/dsk/c0d0s8
/dev/dsk/c0d0s11  /dev/dsk/c0d0s15  /dev/dsk/c0d0s5   /dev/dsk/c0d0s9
/dev/rdsk目录下的部分内容:
bash-3.00# ls /dev/rdsk/c0d0s*
/dev/rdsk/c0d0s0   /dev/rdsk/c0d0s12  /dev/rdsk/c0d0s2   /dev/rdsk/c0d0s6
/dev/rdsk/c0d0s1   /dev/rdsk/c0d0s13  /dev/rdsk/c0d0s3   /dev/rdsk/c0d0s7
/dev/rdsk/c0d0s10  /dev/rdsk/c0d0s14  /dev/rdsk/c0d0s4   /dev/rdsk/c0d0s8
/dev/rdsk/c0d0s11  /dev/rdsk/c0d0s15  /dev/rdsk/c0d0s5   /dev/rdsk/c0d0s9
是不是需要使用newfs来格式新分区(partition2)呢?哪个分区是partition2呢?

论坛徽章:
0
发表于 2012-06-26 14:02 |显示全部楼层
希望大家帮下忙,solaris分区和linux分区管理差别真的很大

论坛徽章:
0
发表于 2012-06-26 14:06 |显示全部楼层
@山野村夫, @briangao, @doni, @yuhuohu打扰了啊

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2012-06-28 17:31 |显示全部楼层
format->partition->print  看磁盘分区的状态 不是用fdisk看

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
发表于 2012-06-28 17:35 |显示全部楼层
Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm      70 -  982        6.99GB    (913/0/0)  14667345
  1       swap    wu       3 -   69      525.56MB    (67/0/0)    1076355
  2     backup    wm       0 - 2084       15.97GB    (2085/0/0) 33495525
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7       home    wm     983 - 2083        8.43GB    (1101/0/0) 17687565
  8       boot    wu       0 -    0        7.84MB    (1/0/0)       16065
  9 alternates    wu       1 -    2       15.69MB    (2/0/0)       32130

part2 是全盘,不要动,part0 是系统 ,其他的可以改
改外之后要挂载就修改 /etc/vfstab  
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP