惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Security Archives - TechRepublic
Security Archives - TechRepublic
罗磊的独立博客
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Register - Security
The Register - Security
J
Java Code Geeks
V2EX - 技术
V2EX - 技术
Vercel News
Vercel News
N
News and Events Feed by Topic
腾讯CDC
P
Proofpoint News Feed
N
News | PayPal Newsroom
www.infosecurity-magazine.com
www.infosecurity-magazine.com
爱范儿
爱范儿
O
OpenAI News
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
Martin Fowler
Martin Fowler
Engineering at Meta
Engineering at Meta
D
Docker
Y
Y Combinator Blog
博客园 - 聂微东
G
Google Developers Blog
S
Security @ Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
S
Schneier on Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
阮一峰的网络日志
阮一峰的网络日志
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
C
CERT Recently Published Vulnerability Notes
I
Intezer
G
GRAHAM CLULEY
有赞技术团队
有赞技术团队
Attack and Defense Labs
Attack and Defense Labs
V
Visual Studio Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
W
WeLiveSecurity
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Hugging Face - Blog
Hugging Face - Blog
Scott Helme
Scott Helme
T
Troy Hunt's Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
LINUX DO - 最新话题
C
Cybersecurity and Infrastructure Security Agency CISA

Comments for Tech Journey

Storage Spaces Can't Add Drives (Request Is Not Supported Error 0x00000032) - Tech Journey Chrome / Edge Disables .CRX Installed Extensions (Workarounds to Turn On) Remove Disable Developer Mode Extensions Warning Popup in Chrome / Edge How to Allow Local Network When Using WireGuard VPN Tunnel in Windows 10 How to Convert SRT to Create 3D Subtitles (ASS or SUB/IDX) Cannot Connect to CIFS / SMB / Samba Network Shares & Shared Folders in Windows 10 How to Decrypt an Enrypted SSL RSA Private Key (PEM / KEY) Install Microsoft .NET Framework 1.1 on Windows 10 / 8 / 7 / Vista (Fix RegSvcs.exe Error) Fix Windows Not Remember & Save Folder Types or Folder Views Setting (Increase BagMRU Size Cache Memory Size) How to Change the Logo of vBulletin Forum to Custom Image
Unrecognised Disk Label When Creating Partition
LK · 2015-01-11 · via Comments for Tech Journey
Skip to content

Unrecognised Disk Label When Creating Partition

Unrecognised Disk Label When Creating Partition
When creating and adding a primary partition on a new hard disk through Webmin, error occurred and the creation of new partition failed. The error message is similar to the following, where the drive name and size may differ, e.g. /dev/sda, /dev/sdc, /dev/sdd etc.

Failed to save partition : parted -s /dev/sdb unit cyl mkpart primary 0 30394 failed : Error: /dev/sdb: unrecognised disk label

Add Partition Failed Unrecognised Disk Label

If you list the partition layout and all block devices information using “parted -l” command, it will give you similar error too:

Error: /dev/sdb: unrecognised disk label

Apparently Webmin cannot manage a new drive without any existing partition table. The resolution is to make a label on the disk first, with “parted” command.

Login to the server’s terminal which you want to install the new disk via console or SSH if remotely, and run the following command (replace the name of the disk with actual one assigned by Linux to the new disk):

$ sudo parted /dev/sdb
(parted) mklabel msdos
(parted) quit
If you prefer to use GTP GUID partition table, or have a large hard disk exceeding 2TB, or want to create a large partition exceeding 2TB, you can create a GPT partition with the following command instead of “mklabel msdos”:
(parted) mklabel gpt

Steps above create a blank table on the hard disk. Then, you can continue to add new partition using Webmin’s “Partitions on Local Disks” module.

Alternatively, you can continue to manually create the filesystem on the new partition created with parted, mkfs, and other commands. For example:

mkfs -t ext4 -q /dev/sdb1

Then, create a mount point for the new filesystem and mount the new file system:

mkdir /newdisk
mount /dev/sdb1 /newdisk

Ensure that the entry for the new filesystem and hard disk is recorded inside /etc/fstab so that it will mount automatically on system startup.

/dev/sdb1 /newdisk ext4 defaults 0 2

Where you can modify the parameters according to your need, with explanation below:

/dev/sdb1: Name for the partition
/newdisk: Mount point
ext4: Filesystem (fs) type
defaults : Mount options
0: Zero indicates to exclude this filesystem from dump command backup.
2: Second indicates the order which fsck filesystem check at boot. Only the root (/) filesystem should be specified with 1, all others should be 2.

About the Author:

LK is a technology writer for Tech Journey with background of system and network administrator. He has be documenting his experiences in digital and technology world for over 15 years. Connect with LK through Tech Journey on Facebook, Twitter or Google+.
Page load link
Go to Top