Redhat Linux 新增硬碟
Redhat Linux 新增硬碟
原有的分割槽資訊
Last login: Wed Nov 30 10:01:30 2011 from 192.168.5.1
[root@ora10g ~]#
[root@ora10g ~]# df -h
Filesystem 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% /boot
tmpfs 506M 0 506M 0% /dev/shm
檢查系統是否認到了新新增的磁碟
[root@ora10g ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = 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 Linux
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
為新新增的硬碟建立分割槽
[root@ora10g ~]# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content 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): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1044, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1044, default 1044):
Using default value 1044
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
檢視已經新增的分割槽
[root@ora10g ~]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = 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 Linux
Disk /dev/sdb: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = 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 -h
Filesystem 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% /boot
tmpfs 506M 0 506M 0% /dev/shm
/dev/sdb 7.9G 147M 7.4G 2% /data2
[root@ora10g ~]#
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/20674423/viewspace-712405/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Redhat Linux 硬碟掛載方法RedhatLinux硬碟
- Linux新增新硬碟Linux硬碟
- linux 新增硬碟分割槽Linux硬碟
- Linux新增裸裝置空間(Redhat)LinuxRedhat
- linux新增硬碟並編輯配額Linux硬碟
- 給linux新增新硬碟的經過Linux硬碟
- RedHat新加硬碟的方法Redhat硬碟
- 安裝虛擬Redhat Linux,物理硬碟與虛擬硬碟共存的問題(轉)RedhatLinux硬碟
- vmware 新增硬碟硬碟
- 為linux新增一塊新硬碟並分割槽Linux硬碟
- Linux下新增新硬碟,分割槽及掛載Linux硬碟
- 轉:虛擬機器中為Linux新增硬碟虛擬機Linux硬碟
- 從硬碟iso安裝RedHat AS 4(轉)硬碟Redhat
- Linux下新增硬碟,分割槽,格式化詳解Linux硬碟
- redhat 7.x 、redhat 6.x檢視硬碟UUID方法Redhat硬碟UI
- RedHat Linux 9.0安裝過程中的硬碟分割槽問題(轉)RedhatLinux硬碟
- [LINUX] Arch Linux 硬碟拷貝式裝系統+新增 home 分割槽Linux硬碟
- 為solaris新增硬碟後用format找不到硬碟硬碟ORM
- hacmp環境下新增硬碟ACM硬碟
- solaris新增硬碟並掛載硬碟
- (PVE)新增硬碟做儲存硬碟
- FreeBSD系統怎麼新增硬碟?FreeBSD系統新增硬碟的方法教程硬碟
- [原創] 在Linux下給主機新增新的硬碟空間Linux硬碟
- linux下使用fdisk/mke2fs/mount新增新硬碟分割槽Linux硬碟
- 為FreeBSD新增新硬碟(轉)硬碟
- RedHat Enterprise AS4 硬碟安裝心得(轉)Redhat硬碟
- 【小貼士】RedHat虛擬機器mount新硬碟Redhat虛擬機硬碟
- Linux RedHat ftp配置LinuxRedhatFTP
- Linux + OS RedHat AS 5LinuxRedhat
- RedHat Enterprise AS4硬碟安裝步驟(轉)Redhat硬碟
- Liunx新增新硬碟和分割槽方法硬碟
- SCO OpenServer 5下新增硬碟方法(轉)Server硬碟
- 如何在RedHat Linux 6.8新增ftp使用者限制目錄和訪問ipRedhatLinuxFTP
- 在不重啟的情況下為 Vmware Linux 客戶機新增新硬碟Linux硬碟
- Linux 新增新硬碟無法識別[無需重啟]的解決方法Linux硬碟
- Redhat linux DNS配置指南RedhatLinuxDNS
- redhat linux密碼修改RedhatLinux密碼
- 硬碟安裝FC4/REDHAT 9(loadlin方式)(轉)硬碟Redhat