新建partition出現 device busy問題處理
1.用fdisk新建一個新的partition,由於已經存在了sda6,我們先刪除它再新建
[root@cent initrd]# fdisk /dev/sda
The number of cylinders for this disk is set to 2610.
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)
Command (m for help): m
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)
Command (m for help): p
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 1682 13309852+ 83 Linux
/dev/sda3 1683 2064 3068415 83 Linux
/dev/sda4 2065 2610 4385745 5 Extended
/dev/sda5 2065 2102 305203+ 82 Linux swap / Solaris
/dev/sda6 2103 2107 40131 83 Linux
Command (m for help): d
Partition number (1-6): 6
Command (m for help): p
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 1682 13309852+ 83 Linux
/dev/sda3 1683 2064 3068415 83 Linux
/dev/sda4 2065 2610 4385745 5 Extended
/dev/sda5 2065 2102 305203+ 82 Linux swap / Solaris
Command (m for help): n
First cylinder (2103-2610, default 2103):
Using default value 2103
Last cylinder or +size or +sizeM or +sizeK (2103-2610, default 2610): +30M
Command (m for help): p
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 1682 13309852+ 83 Linux
/dev/sda3 1683 2064 3068415 83 Linux
/dev/sda4 2065 2610 4385745 5 Extended
/dev/sda5 2065 2102 305203+ 82 Linux swap / Solaris
/dev/sda6 2103 2107 40131 83 Linux
2.使用w寫入分割槽資訊
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
3.為了不reboot就能生效,強制核心重新讀取分割槽表
[root@cent initrd]# partprobe
4.格式化成為ext3格式
[root@cent initrd]# mkfs -t ext3 /dev/sda6
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
10040 inodes, 40128 blocks
2006 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=41156608
5 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
5.執行磁碟檢查
[root@cent initrd]# fsck -C -t ext3 /dev/sda6
fsck 1.39 (29-May-2006)
e2fsck 1.39 (29-May-2006)
/dev/sda6: clean, 11/10040 files, 5868/40128 blocks
6.掛載分割槽
[root@cent initrd]# mount /dev/sda6 /mnt
[root@cent initrd]# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
/dev/sda2 12591 3679 8263 31% /
/dev/sda3 2903 239 2515 9% /home
/dev/sda1 190 12 169 7% /boot
tmpfs 506 0 506 0% /dev/shm
/dev/sda6 38 5 32 13% /mnt
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22907091/viewspace-748118/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- gc buffer busy acquire問題處理GCUI
- 解決umount.nfs: /data: device is busy 問題NFSdev
- 如何處理新建的SAP CRM產品category沒有出現在列表的問題Go
- 伺服器啟動出現問題如何處理伺服器
- open failed: EBUSY (Device or resource busy)AIdev
- device-mapper create ioctl failed: Device or resource busydevAPPAI
- 沒有備份undo segment出現問題的處理
- Oracle ASM oracleasm createdisk "Device or resource busy"OracleASMdev
- rac 遭遇GC BUFFER BUSY 處理思路GC
- 一次GC BUFFER BUSY處理GC
- 資料庫出現兩個Listener問題的官方處理方法資料庫
- ES同步Mysql資料庫(包括出現問題怎麼處理哦)MySql資料庫
- undo表空間出現問題的幾種情況與處理
- sqlldr標準輸出未處理導致批處理掛起問題SQL
- 【問題處理】處理alert警告日誌中出現無法找到libocr*.so檔案問題
- 3-Partition 問題
- oracleasm createdisk : Device '/dev/emcpowera1 is not a partitionOracleASMdev
- .NetFramework4.5使用Spring.net出現的問題處理。FrameworkSpring
- 處理問題的方法
- perl中文處理問題
- 漢字處理問題?
- xml處理的問題XML
- 貨品問題處理
- Partition管理問題集錦
- GC BUFFER BUSY問題的診斷GC
- win10右擊沒有出現新建word如何處理 win10電腦裡新建沒有word怎麼新增Win10
- FILE ON OCFS CANNOT BE DELETED LINUX ERROR: 16: DEVICE OR RESOURCE BUSYdeleteLinuxErrordev
- golang json處理問題GolangJSON
- 併發問題處理方式
- ASMCMD處理問題一則ASM
- mysql的處理能力問題MySql
- RMAN處理split block問題BloC
- mysql問題處理兩則MySql
- Oracle啟動問題處理Oracle
- mysql 問題處理二則MySql
- Oracle壞塊問題處理Oracle
- oracle11.2.0.3升級到11.2.0.4出現查詢效能問題,分析處理Oracle
- 在打包第一個EJB QL 時出現以下問題,不知道如何處理?