新建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
- 如何處理新建的SAP CRM產品category沒有出現在列表的問題Go
- 伺服器啟動出現問題如何處理伺服器
- .NetFramework4.5使用Spring.net出現的問題處理。FrameworkSpring
- 3-Partition 問題
- ORA-00054: resource busy and acquire with NOWAIT specified處理UIAI
- ES同步Mysql資料庫(包括出現問題怎麼處理哦)MySql資料庫
- sqlldr標準輸出未處理導致批處理掛起問題SQL
- golang json處理問題GolangJSON
- [git] git問題處理Git
- exp匯出報錯EXP-00106問題處理
- 併發問題處理方式
- Linux 問題處理集錦Linux
- 處理SQLServer errorlog滿問題SQLServerError
- 資料處理--pandas問題
- Ubuntu處理依賴問題Ubuntu
- win10右擊沒有出現新建word如何處理 win10電腦裡新建沒有word怎麼新增Win10
- Docker啟動出現"No space left on device" 或者 docker日誌太多導致磁碟佔滿問題Dockerdev
- 如何解決acer電腦安裝win10開機出現invalid partition table的問題Win10
- PHP 開發版本問題處理PHP
- 【故障處理】TNS-04610問題
- JVM問題分析處理手冊JVM
- oracle SP2-問題處理Oracle
- 記憶體分配問題處理記憶體
- 如何處理 No DMARC Record Found 問題
- 如何處理HTTP 503故障問題?HTTP
- MySQL:亂碼問題處理流程MySql
- 【問題處理】IPC Send timeout detected
- 一次gc buffer busy問題的診斷GC
- 在連結串列上實現 Partition 以及荷蘭國旗問題
- 海關單一視窗程式出現網路/MQ問題後自動修復處理MQ
- Mac出現問題的5個警告訊號與處理方法,你一定要了解Mac
- 【問題處理】MySQL忘記root密碼的處理辦法MySql密碼
- openGauss 出現-Error-No-space-left-on-device-提示Errordev
- 二、Git 問題彙總及處理Git
- Redis 快取常見問題處理Redis快取
- Oracle日常問題處理ORA-04031Oracle
- .net異常處理的效能問題
- ORACLE問題處理十個指令碼Oracle指令碼