solaris中添加删除磁盘和分区
如何在solaris中添加删除磁盘和分区
建意你先看 IDE 和 SCSI 分配名称
以下例子是格式化 Primary IDE Master 硬盘
查看 IDE 和 SCSI 分配名称后,我们知道 Primary IDE Master 硬盘名称是c0d0。
请先行 Login 成为 root user
# drvconfig ( configure the /devices directory )
# disks ( creates /dev entries for hard disks attached to the system )
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c0d0
/pci@0,0/pci-ide@7,1/ide@0/cmdk@0,0
1. c1t6d0
/pci@0,0/pci9004,8178@f/sd@6,0
Specify disk (enter its number): 0 ( 因为 Primary IDE Master 硬盘名称是c0d0,所以选择 0 )
AVAILABLE DRIVE TYPES:
0. other
Specify disk type (enter its number):0
( 正常应该是 0. DEFAULT 1. other,通常应该选择DEFAULT,但是Solaris不明白我的硬盘是什么,所
以只有other可供选择。)
我的IDE HardDisk架构如下:-
( 可以从BIOS Auto Detect查出來,通常都有LBA,LARGE,AUTO三种选择,建意你使用Auto,因為不能大
过16Heads和不能大过63Sectoes )
Cylinders = 25232
Heads = 16
Sectors = 63
Enter number of data cylinders:25232
Enter number of alternate cylinders[2]:
Enter number of physical cylinders[25234]:
Enter number of heads: 16
Enter number of data sectors/track: 63
Enter rpm of drive[3600]:
Enter format time[default]:
Enter cylinder skew[default]:
Enter track skew[default]:
Enter tracks per zone[default]:
Enter alternate tracks[default]:
Enter alternate sectors[default]:
Enter cache control[default]:
Enter prefetch threshold[default]:
Enter minimum prefetch[default]:
Enter maximum prefetch[default]:
Enter disk type name (remember quotes): cyl 25232 alt 2 hd 16 sec 63
selecting c0d0
No current partition list
No defect list found
[disk formatted, no defect list found]
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
fdisk - run the fdisk program
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
! - execute , then return
quit
format>fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition, otherwise type "n" to edit the
partition table.
y
WARNING: Solaris fdisk partition changed - Please relabel the disk
format>fdisk
Total disk size is 25232 cylinders
Cylinder size is 1008 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
WARNING: no partitions are defined!
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 1
Select the partition type to create:
1=SOLARIS 2=UNIX 3=PCIXOS 4=Other
5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG
9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32
D=FAT32LBA E=DOSEXTLBA 0=Exit? 1
Specify the percentage of disk to use for this partition
(or type "c" to specify the size in cylinders). 100
Should this become the active partition? If yes, it will be activated
each time the computer is reset or turned on.
Please type "y" or "n". n
Total disk size is 25232 cylinders
Cylinder size is 1008 (512 byte) blocks
Cylinders
Partition Status Type StartEnd Length %
========= ====== ============ ======== ====== ===
1Solaris1 2523125231 100
WARNING: no partitions are defined!
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Exit (update disk configuration and exit)
5. Cancel (exit without updating disk configuration)
Enter Selection: 4
WARNING: Solaris fdisk partition changed - Please relabel the disk
format>partition
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
! - execute , then return
quit
partition>print
Current partition table (cyl):
Total disk cylinders available: 25229 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 25228 12.13GB (25229/0/0) 25430832
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 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.49MB (1/0/0) 1008
9 alternates wm 1 - 2 0.98MB (2/0/0)
partition> 0 ( Part 2, 8, 9 是不需要进行任何修改)
Part Tag Flag Cylinders Size Blocks
0 root wm 0 0 (0/0/0) 0
Enter partition id tag[root]:
( 只可使用 unassigned, boot, root, swap, usr, backup, stand, var, home, alternates )
Enter partition permission flags[wm]:
( wm - read-write, mountable,wu - read-write, unmountable,rm - read-only, mountable,ru -
read-only, unmountable )
Enter new starting cyl[0]: 3 ( 從 Part 8 - 9 可以看到Cylinders 0 - 2 已经给使用,所以要
由 3 开始 )
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: ?
Expecting up to 25427808 blocks, 25226 cylinders, 12415.92 megabytes, or 12.12 gigabytes
Enter partition size[0b, 0c, 0.00mb, 0.00gb]: 25427808b
partition>print
Current partition table (cyl):
Total disk cylinders available: 25229 + 2 (reserved cylinders)
Part Tag Flag Cylinders Size Blocks
0 root wm 3 - 25228 12.13GB (25226/0/0) 25427808
1 swap wu 0 0 (0/0/0) 0
2 backup wu 0 - 25228 12.13GB (25229/0/0) 25430832
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 usr wm 0 0 (0/0/0) 0
7 unassigned wm 0 0 (0/0/0) 0
8 boot wu 0 - 0 0.49MB (1/0/0) 1008
9 alternates wm 1 - 2 0.98MB (2/0/0)
partition>label
Ready to label disk, continue? y
partition>quit
format> label ( 为了保险所以输入多一次label )
Ready to label disk, continue? y
format>quit
# newfs /dev/rdsk/c0d0s0 ( c0d0 是硬盘的名称,可参考IDE 和 SCSI 分配名称。s0 是 Part 0。
newfs: construct a new file system /dev/rdsk/c0d0s0: (y/n)? y
/dev/rdsk/c0d0s0: 25427808 sectors in 25226 cylinders of 16 tracks, 63 sectors
12415.9MB in 287 cyl groups (88 c/g, 43.31MB/g, 5504 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 88800, 177568, 266336, 355104, 443872, 532640, 621408, 710176, 798944,
887712, 976480, 1065248, 1154016, 1242784, 1331552, 1419296, 1508064, 1596832,
1685600, 1774368, 1863136, 1951904, 2040672, 2129440, 2218208, 2306976,
2395744, 2484512, 2573280, 2662048, 2750816, 2838560, 2927328, 3016096,
3104864, 3193632, 3282400, 3371168, 3459936, 3548704, 3637472, 3726240,
3815008, 3903776, 3992544, 4081312, 4170080, 4257824, 4346592, 4435360,
4524128, 4612896, 4701664, 4790432, 4879200, 4967968, 5056736, 5145504,
5234272, 5323040, 5411808, 5500576, 5589344, 5677088, 5765856, 5854624,
5943392, 6032160, 6120928, 6209696, 6298464, 6387232, 6476000, 6564768,
6653536, 6742304, 6831072, 6919840, 7008608, 7096352, 7185120, 7273888,
7362656, 7451424, 7540192, 7628960, 7717728, 7806496, 7895264, 7984032,
8072800, 8161568, 8250336, 8339104, 8427872, 8515616, 8604384, 8693152,
8781920, 8870688, 8959456, 9048224, 9136992, 9225760, 9314528, 9403296,
9492064, 9580832, 9669600, 9758368, 9847136, 9934880, 10023648, 10112416,
10201184, 10289952, 10378720, 10467488, 10556256, 10645024, 10733792,
10822560, 10911328, 11000096, 11088864, 11177632, 11266400, 11354144,
11442912, 11531680, 11620448, 11709216, 11797984, 11886752, 11975520,
12064288, 12153056, 12241824, 12330592, 12419360, 12508128, 12596896,
12685664, 12773408, 12862176, 12950944, 13039712, 13128480, 13217248,
13306016, 13394784, 13483552, 13572320, 13661088, 13749856, 13838624,
13927392, 14016160, 14104928, 14192672, 14281440, 14370208, 14458976,
14547744, 14636512, 14725280, 14814048, 14902816, 14991584, 15080352,
15169120, 15257888, 15346656, 15435424, 15524192, 15611936, 15700704,
15789472, 15878240, 15967008, 16055776, 16144544, 16233312, 16322080,
16410848, 16499616, 16588384, 16677152, 16765920, 16854688, 16943456,
17031200, 17119968, 17208736, 17297504, 17386272, 17475040, 17563808,
17652576, 17741344, 17830112, 17918880, 18007648, 18096416, 18185184,
18273952, 18362720, 18450464, 18539232, 18628000, 18716768, 18805536,
18894304, 18983072, 19071840, 19160608, 19249376, 19338144, 19426912,
19515680, 19604448, 19693216, 19781984, 19869728, 19958496, 20047264,
20136032, 20224800, 20313568, 20402336, 20491104, 20579872, 20668640,
20757408, 20846176, 20934944, 21023712, 21112480, 21201248, 21288992,
21377760, 21466528, 21555296, 21644064, 21732832, 21821600, 21910368,
21999136, 22087904, 22176672, 22265440, 22354208, 22442976, 22531744,
22620512, 22708256, 22797024, 22885792, 22974560, 23063328, 23152096,
23240864, 23329632, 23418400, 23507168, 23595936, 23684704, 23773472,
23862240, 23951008, 24039776, 24127520, 24216288, 24305056, 24393824,
24482592, 24571360, 24660128, 24748896, 24837664, 24926432,25015200,
25103968, 25192736, 25281504, 25370272,
现在打算把 /dev/rdsk/c0d0s0 mount 在 /mnt/newhd
# cd /mnt
# mkdir newhd
在 /etc/vfstab Auto mount 的设定
device to mount = /dev/dsk/c0d0s0
device to fsck = /dev/rdsk/c0d0s0
mount point = /mnt/newhd
FS type = ufs
fsck pass = 1
mount at boot = yes
mount options = -
# pico vfstab or vi vfstab
加入 /dev/dsk/c0d0s0 /dev/rdsk/c0d0s0 /mnt/newhd ufs 1 yes -
# mount /mnt/newhd
完成 !
Good luck!
推荐系统
微软Win11原版22H2下载_Win11GHOST 免 激活密钥 22H2正式版64位免费下载
语言:中文版系统大小:5.13GB系统类型:Win11微软Win11原版22H2下载_Win11GHOST 免 激活密钥 22H2正式版64位免费下载系统在家用办公上跑分表现都是非常优秀,完美的兼容各种硬件和软件,运行环境安全可靠稳定。Win11 64位 Office办公版(免费)优化 1、保留 Edge浏览器。 2、隐藏“操作中心”托盘图标。 3、保留常用组件(微软商店,计算器,图片查看器等)。 5、关闭天气资讯。
Win11 21H2 官方正式版下载_Win11 21H2最新系统免激活下载
语言:中文版系统大小:4.75GB系统类型:Win11Ghost Win11 21H2是微软在系统方面技术积累雄厚深耕多年,Ghost Win11 21H2系统在家用办公上跑分表现都是非常优秀,完美的兼容各种硬件和软件,运行环境安全可靠稳定。Ghost Win11 21H2是微软最新发布的KB5019961补丁升级而来的最新版的21H2系统,以Windows 11 21H2 22000 1219 专业版为基础进行优化,保持原汁原味,系统流畅稳定,保留常用组件
windows11中文版镜像 微软win11正式版简体中文GHOST ISO镜像64位系统下载
语言:中文版系统大小:5.31GB系统类型:Win11windows11中文版镜像 微软win11正式版简体中文GHOST ISO镜像64位系统下载,微软win11发布快大半年了,其中做了很多次补丁和修复一些BUG,比之前的版本有一些功能上的调整,目前已经升级到最新版本的镜像系统,并且优化了自动激活,永久使用。windows11中文版镜像国内镜像下载地址微软windows11正式版镜像 介绍:1、对函数算法进行了一定程度的简化和优化
微软windows11正式版GHOST ISO镜像 win11下载 国内最新版渠道下载
语言:中文版系统大小:5.31GB系统类型:Win11微软windows11正式版GHOST ISO镜像 win11下载 国内最新版渠道下载,微软2022年正式推出了win11系统,很多人迫不及待的要体验,本站提供了最新版的微软Windows11正式版系统下载,微软windows11正式版镜像 是一款功能超级强大的装机系统,是微软方面全新推出的装机系统,这款系统可以通过pe直接的完成安装,对此系统感兴趣,想要使用的用户们就快来下载
微软windows11系统下载 微软原版 Ghost win11 X64 正式版ISO镜像文件
语言:中文版系统大小:0MB系统类型:Win11微软Ghost win11 正式版镜像文件是一款由微软方面推出的优秀全新装机系统,这款系统的新功能非常多,用户们能够在这里体验到最富有人性化的设计等,且全新的柔软界面,看起来非常的舒服~微软Ghost win11 正式版镜像文件介绍:1、与各种硬件设备兼容。 更好地完成用户安装并有效地使用。2、稳定使用蓝屏,系统不再兼容,更能享受无缝的系统服务。3、为
雨林木风Windows11专业版 Ghost Win11官方正式版 (22H2) 系统下载
语言:中文版系统大小:4.75GB系统类型:雨林木风Windows11专业版 Ghost Win11官方正式版 (22H2) 系统下载在系统方面技术积累雄厚深耕多年,打造了国内重装系统行业的雨林木风品牌,其系统口碑得到许多人认可,积累了广大的用户群体,雨林木风是一款稳定流畅的系统,一直以来都以用户为中心,是由雨林木风团队推出的Windows11国内镜像版,基于国内用户的习惯,做了系统性能的优化,采用了新的系统
雨林木风win7旗舰版系统下载 win7 32位旗舰版 GHOST 免激活镜像ISO
语言:中文版系统大小:5.91GB系统类型:Win7雨林木风win7旗舰版系统下载 win7 32位旗舰版 GHOST 免激活镜像ISO在系统方面技术积累雄厚深耕多年,加固了系统安全策略,雨林木风win7旗舰版系统在家用办公上跑分表现都是非常优秀,完美的兼容各种硬件和软件,运行环境安全可靠稳定。win7 32位旗舰装机版 v2019 05能够帮助用户们进行系统的一键安装、快速装机等,系统中的内容全面,能够为广大用户
番茄花园Ghost Win7 x64 SP1稳定装机版2022年7月(64位) 高速下载
语言:中文版系统大小:3.91GB系统类型:Win7欢迎使用 番茄花园 Ghost Win7 x64 SP1 2022.07 极速装机版 专业装机版具有更安全、更稳定、更人性化等特点。集成最常用的装机软件,集成最全面的硬件驱动,精心挑选的系统维护工具,加上独有人性化的设计。是电脑城、个人、公司快速装机之首选!拥有此系统
相关文章
- Debian系统的VPS上iptables的配置分享
- win8.1 update3什么时候发布?windows8.1 update3推送更新时间
- 进程关不掉应怎么办 如何关闭任务管理器关不掉的进程
- Win10预览版14328开始菜单所有应用列表显示空白怎么办?
- 快启动U盘怎么装win7系统 快启动U盘装win7系统教程
- Win8.1分区里右键菜单新建里没有任何选项如何解决
- win8系统怎么从控制面板中删除本机软件程序?
- Win10标题栏恢复五彩缤纷的详细图文教程
- Win10系统怎么设置安装软件和运行程序需要输入密码?
- Windows 10下一个预览版99.99%将是RTM
- win8系统C盘和桌面所有程序消失不见解决方法
- Win10一周年更新pc用户可以在电脑上直接拨打联系人电话
- win10系统中怎么查看并设置默认程序?
- Win10系统下打开NBA 2K15闪退怎么办?解决方法
- Windows Server 2012服务器管理器的详细介绍
- Win10 Mobile Build 14310截图首曝:本周内推送
- alg.exe是什么进程?如何识别alg.exe病毒?alg.exe为什么运行?
- 怎么下载win10?windows10下载安装图文教程
热门系统
- 1华硕笔记本&台式机专用系统 GhostWin7 32位正式旗舰版2018年8月(32位)ISO镜像下载
- 2深度技术 Windows 10 x86 企业版 电脑城装机版2018年10月(32位) ISO镜像免费下载
- 3电脑公司 装机专用系统Windows10 x86喜迎国庆 企业版2020年10月(32位) ISO镜像快速下载
- 4雨林木风 Ghost Win7 SP1 装机版 2020年4月(32位) 提供下载
- 5深度技术 Windows 10 x86 企业版 六一节 电脑城装机版 版本1903 2022年6月(32位) ISO镜像免费下载
- 6深度技术 Windows 10 x64 企业版 电脑城装机版2021年1月(64位) 高速下载
- 7新萝卜家园电脑城专用系统 Windows10 x64 企业版2019年10月(64位) ISO镜像免费下载
- 8新萝卜家园 GhostWin7 SP1 最新电脑城极速装机版2018年8月(32位)ISO镜像下载
- 9电脑公司Ghost Win8.1 x32 精选纯净版2022年5月(免激活) ISO镜像高速下载
- 10新萝卜家园Ghost Win8.1 X32 最新纯净版2018年05(自动激活) ISO镜像免费下载
热门文章
常用系统
- 1新萝卜家园电脑城专用系统 Windows10 x86 企业版 版本1507 2022年4月(32位) ISO镜像高速下载
- 2笔记本&台式机专用系统 GhostWin7 32位喜迎国庆 旗舰版2021年10月(32位) ISO镜像免费下载
- 3深度技术 Ghost Win7 x64 Sp1 电脑城装机版2018年7月(64位) ISO镜像快速下载
- 4大地系统Ghost Win8.1 X32 经典纯净版2018年5月(永久激活) ISO镜像免费下载
- 5华硕笔记本&台式机专用系统 GhostWin7 32位旗舰版2018年7月(32位) 最新版ISO镜像下载
- 6电脑公司 GhostXpSp3 电脑城装机版 2020年11月 ISO镜像高速下载
- 7新萝卜家园电脑城专用系统 Windows10 x86 企业版2020年12月(32位) ISO镜像高速下载
- 8笔记本&台式机专用系统 Windows10 企业版 版本1903 2021年4月(64位) 提供下载
- 9深度技术 Ghost Win7 x64 Sp1 电脑城纯净版2019年12月(64位) ISO镜像高速下载
- 10深度技术Ghost Win8.1系统 X64 装机纯净版2018年09月(永久激活)ISO镜像下载