Thursday, 3 October 2013

How to solve parted error (Error: Unable to open /dev/sdc – unrecognised disk label.)

How to solve parted  error (Error: Unable to open /dev/sdc – unrecognized disk label.)

OCT-3-2013

Sometimes, after connecting an internal or external hard drive to your system you will face GPT error. In my scenario I face following issue when adding new partition like /dev/sdc.
[root@rhel01~]# parted /dev/sdc
GNU Parted 1.8.1
Using /dev/sdc
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print free
Error: Unable to open /dev/sda - unrecognized disk label.

Because this error comes due to two reason:
1. GPT
2.MSDOS

By default parted treats SCSI sda*  device as GPT tables. making it MSDOS will solve the problem.
How to replace the GPT table with msdos ?
[root@rhel01~]#parted /dev/sda
(parted) mklabel msdos
(parted) quit
It creates a new disk label of type “msdos”.
Reference link
http://linuxian.com/2012/09/10/how-to-solve-gpt-error-error-unable-to-open-devsda-unrecognised-disk-label/

No comments:

Post a Comment