1. 程式人生 > >You cannot change a partition into an extended one or vice versa. Delete it first

You cannot change a partition into an extended one or vice versa. Delete it first

一、 環境

  1. VMware虛擬機器擴充套件CentOS7磁碟
  2. 第二次擴充套件(/dev/sda4)

二、 異常

操作擴充套件磁碟

2.1 檢視當前磁碟的容量fdisk /dev/sda

提示輸入命令時,輸入p,檢視當前分割槽資訊:

2.2 在Fdisk中繼續輸入新建分割槽命令:n

直接回車,預設為主分割槽(primary)分割槽號,起始扇區,結束扇區都用預設,一路回車,直到提示繼續輸入Fdisk命令的位置。

2.3 設定分割槽格式,在Fdisk命令處輸入:t

分割槽號用預設,直接回車,Hex程式碼輸入:8e。代表適用Linux LVM分割槽型別。

2.4 提示錯誤

通過查詢其他Blog文章,得知是因為分割槽號(Partition number)號弄錯了(因為必須保留1-4這4個數字給主分割槽和擴充套件分割槽使用,所以邏輯分割槽的數字必須從5開始)。

但是VMWare是擴充套件磁碟,所以不可能是這個原因

通過檢查命令發展是發現Select (default e)預設值是e,而不是網上的p,所以只要手動輸入p即可解決

相關推薦

You cannot change a partition into an extended one or vice versa. Delete it first

一、 環境 VMware虛擬機器擴充套件CentOS7磁碟 第二次擴充套件(/dev/sda4) 二、 異常 操作擴充套件磁碟

You cannot push a "root" repository.

push a[root@docker1 ~]# docker push sshd:centosError response from daemon: You cannot push a "root" repository. Please rename your repository to

Glide-You cannot start a load for a destroyed activity

場景: 在獲取本地相簿的時候,載入大量資料,開啟介面,然後很快finish介面,就會出現You cannot start a load for a destroyed activity,因為finish的時候,圖片還沒有被夾在完,Glide.with(mContext).load(bitmapL

You cannot start a load on a not yet attached View or a Fragment ...

專案app出現標題上的錯誤,定位到程式碼中的這句: Glide.with(getContext()).load(hairdresserDetail.getHead_photo()) .into((CircleImageView) newsHeader.fi

RecyclerView在Fragment Activity切換報錯You cannot start a load for a destroyed activity

java.lang.IllegalArgumentException: You cannot start a load for a destroyed activity BottomNavigationView中Fragment切換或者各種Activity切換的時候(這些Activity,F

Glide錯誤java.lang.IllegalArgumentException: You cannot start a load for a destr

解決辦法 在使用Glide的那段程式碼加是否在主執行緒判斷 if(Util.isOnMainThread()) { Glide.with(ClassifyItemDetailActivity.this).lo

Mac iTerm2登陸CentOS提示warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory

UC environ local not set director nbsp 原因 dir 【報錯原因】:沒有utf-8這個語系(沒添加語言_國名前綴),LC_ALL又沒設定值。 在 /etc/environment 加入以下兩行,重新登陸即可。 LANG=en_US.u

Docker 安裝 出現 Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type

在 安裝 Docker 映象時 docker run -p 80:80 --name mynginx -v $PWD/www:/www -v $PWD/conf/nginx.conf:/etc/nginx/nginx.conf -v $PWD/logs:/wwwlogs -d nginx 1.

A decade into open data, leading governments struggle to make it a reality

A decade into open data, leading governments struggle to make it a realityThe Open Data Barometer — Leaders Edition, published today, finds that 10 years i

登入伺服器報錯 setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 解決

登入伺服器提示: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory 使用cat 檢視檔案的時候沒用問題 使用vim 開啟編輯的時候中文都是亂碼

錯誤代碼1833 Cannot change column used in a foreign

mysql 1833 foreign key lock table 最近修改mysql數據庫表中的字段長度時報錯,執行更改的sql語句:ALTER TABLE server_list MODIFY COLUMN server_lip CHAR(25); 報錯信息:1 queries execu

It isn't possible to write into a document from an asynchronously-loaded

-a ext end oss statistic scrip views tracking app It isn‘t possible to write into a document from an asynchronously-loaded 今天遇到了一

cannot insert multiple commands into a prepared statement問題原因及解決辦法

問題是這樣,我在對資料庫進行寫操作(新增、刪除、修改)時,我想同時刪除兩個表中的兩條關聯資料,像這樣 let sql = ` DELETE FROM bridge_parts WHERE id = $1; DELETE FROM bridge_quantity WHERE bridge_part_id =

Glide異常:You cannot load start a load for a destory activity

     使用glide載入圖片,在一個Activity中使用了glide載入圖片後,首次進入頁面顯示正常,退出二次進入崩潰,直接報引數異常:You cannot  start a load for on a destory activity。g

mac安裝mysql5.7 Your password has expired. To log in you must change it using a cl...

問題描述:Your password has expired. To log in you must change it using a client that supports expired passwords. 解決辦法:root許可權登入mysql:mysql -uroot

You can get a free Google Home Mini when you buy an Nvidia Shield TV at Walmart today

In a world filled with Fire TVs, Roku sticks, and Apple TVs, it's easy to overlook the Nvidia Shield TV as a streaming option. But few other boxes have its

Ask HN: How should one respond if a sales call turns into an investment call?

Would have been nice to qualify the interest more before sharing the company details. Did you do that?(If you did not) Now you operate at a very significa

How to Integrate a C Library into an iOS App Written in Swift

Nowadays, everyone values privacy and security. That’s why it wasn’t surprising when, recently, we needed to use an encryption library on one of our Distil

mysql5.7.24啟動報錯:ERROR 1862 (HY000): Your password has expired. To log in you must change it using a client that supports expired passwords.

報錯原因是:密碼過期。不管你是剛剛修改密碼還是什麼,只要登陸都是有問題的,都是報這樣子的錯誤。 解決方法是: 1、修改/etc/my.cnf檔案,在[mysqld]下加入“skip-grant-tables”。 2、重啟mysql伺服器 3、登陸mysql [[email prote

A Strategy Game that lets you Build a Village, Summon an Army &…

Going to WarIn CryptoWars — you won’t have constant, guaranteed control over your warriors.In other words, CryptoWars is not a “standard” strategy game.…an