Redhat Linux 添加硬盘(redhat版本查看命令)

fangcloud 449 2022-07-07

本文转载自网络公开信息

Redhat Linux 添加硬盘原有的分区信息Last login: Wed Nov 30 10:01:30 2011 from 192.168.5.1[root@ora10g ~]# [root@ora10g ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda7 4.7G 3.0G 1.5G 67% //dev/sda6 2.0G 36M 1.9G 2% /tmp/dev/sda3 4.9G 3.6G 1.1G 77% /orasoft/dev/sda2 5.8G 5.2G 360M 94% /oradata/dev/sda1 190M 12M 170M 7% /boottmpfs 506M 0 506M 0% /dev/shm检查系统是否认到了新添加的磁盘[root@ora10g ~]# fdisk -lDisk /dev/sda: 21.4 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 25 200781 83 Linux/dev/sda2 26 803 6249285 83 Linux/dev/sda3 804 1456 5245222+ 83 Linux/dev/sda4 1457 2610 9269505 5 Extended/dev/sda5 1457 1717 2096451 82 Linux swap / Solaris/dev/sda6 1718 1978 2096451 83 Linux/dev/sda7 1979 2610 5076508+ 83 LinuxDisk /dev/sdb: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytesDisk /dev/sdb doesn't contain a valid partition table为新添加的硬盘创建分区[root@ora10g ~]# fdisk /dev/sdbDevice contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabelBuilding a new DOS disklabel. Changes will remain in memory only,until you decide to write them. After that, of course, the previouscontent won't be recoverable.The number of cylinders for this disk is set to 1044.There is nothing wrong with that, but this is larger than 1024,and could in certain setups cause problems with:1) software that runs at boot time (e.g., old versions of LILO)2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK)Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-1044, default 1): Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044): Using default value 1044Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks. 查看已经添加的分区[root@ora10g ~]# fdisk -lDisk /dev/sda: 21.4 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 25 200781 83 Linux/dev/sda2 26 803 6249285 83 Linux/dev/sda3 804 1456 5245222+ 83 Linux/dev/sda4 1457 2610 9269505 5 Extended/dev/sda5 1457 1717 2096451 82 Linux swap / Solaris/dev/sda6 1718 1978 2096451 83 Linux/dev/sda7 1979 2610 5076508+ 83 LinuxDisk /dev/sdb: 8589 MB, 8589934592 bytes255 heads, 63 sectors/track, 1044 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 1044 8385898+ 83 Linux创建挂载新添加硬盘的目录[root@ora10g ~]# mkdir /data2挂载硬盘[root@ora10g ~]# mount -t ext3 /dev/sdb /data2查看是否挂载上[root@ora10g ~]# df -hFilesystem Size Used Avail Use% Mounted on/dev/sda7 4.7G 3.0G 1.5G 67% //dev/sda6 2.0G 36M 1.9G 2% /tmp/dev/sda3 4.9G 3.6G 1.1G 77% /orasoft/dev/sda2 5.8G 5.2G 360M 94% /oradata/dev/sda1 190M 12M 170M 7% /boottmpfs 506M 0 506M 0% /dev/shm/dev/sdb 7.9G 147M 7.4G 2% /data2[root@ora10g ~]#

本站部分文章、图片属于网络上可搜索到的公开信息,均用于学习和交流用途,不能代表亿方云的观点、立场或意见。我们接受网民的监督,如发现任何违法内容或侵犯了您的权益,请第一时间联系小编邮箱daifeng@360.cn 处理。
上一篇:SATA、SCSI、SAS、FC硬盘(scsi sas sata)
下一篇:技术立根,行业立范,发展立本:中国工业互联网的2.0新征程(工业互联网体系架构2.0 原文)
相关文章

 发表评论

暂时没有评论,来抢沙发吧~