LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2012, 06:52 AM   #1
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Rep: Reputation: 1
Parted Command label unknown


Hello,

I'm testing on a virtual machine some "parted" commands.

What i do is

Code:
[root@verytest /]# parted /dev/sdb
GNU Parted 2.1
Viene usato /dev/sdb
Benvenuti in GNU Parted. Digitare "help" per l'elenco dei comandi.
(parted) print
Errore: /dev/sdb: etichetta del disco non riconosciuta
(parted)
"Errore : /dev/sdb: etichetta del disco non riconosciuta" it does mean "disk label unknown" (unrecognized)

I should create a label (bsd, pc98, msdos ecc.) but i can't understand the reason. Would you englight me with explanation please?

Why fdisk does not need a label, or at least, it does not ask it?

What is the difference among the labels for i cannot find over the internet something clear about that? I mean, which is the difference between bsd, msdos, ecc. labels?

Thank you.

Davide
 
Old 12-04-2012, 09:45 AM   #2
masterclassic
Member
 
Registered: Jun 2007
Distribution: Knoppix
Posts: 140

Rep: Reputation: 23
The disk label is the basic structure of the hard drive, i.e. the partition table.
Linux uses mostly the msdos partition table, at least for intel-type pc hardware. Lately, the GUID partition table (GPT) is used too, especially for newer hardware and o.s. versions.
This info is usually located in the first sector of the drive and contains data on the partition positions.

The various "labels" were developed for various hardware and software platforms like Sun computers, Silicon graphics, Apple mac computers etc.
You can find some related links there.

Another related link: disk partitioning

Last edited by masterclassic; 12-04-2012 at 09:49 AM. Reason: Link addition
 
1 members found this post helpful.
Old 12-04-2012, 11:11 AM   #3
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Does /dev/sdb exist? Parted returns few errors concerning label if device does not actually exists or not configured properly.

Did you try:
Quote:
root@host-# parted -l
If some devices are not configured they trigger errors. But that is not a problem.
 
1 members found this post helpful.
Old 12-04-2012, 12:09 PM   #4
adol83
Member
 
Registered: Jul 2012
Location: Rome
Distribution: RHEL6, CentOs
Posts: 92

Original Poster
Rep: Reputation: 1
Thank you, output is fine so the first thing to be configured is disk label. I was asking to myself why fdisk does not ask for a disk label but parted does.

Other information are ok, I thank you in the meanwhile.
 
Old 12-04-2012, 12:39 PM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,665

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Fdisk utility returns basically the beginning and end blocks and partition sizes, it doesn't care much about labels. But 'parted' seeks to deliver more information to the querying user, such that it reads plenty from the labels and returns not only beginning, end & sizes but it even furnish you better information such as filesystem (ext3, ext4, etc), as well as whether the partition is Primary or Logical, and the boot flags.

Hope that helps.

Good luck.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is the parted command completely worthless? Skaperen Linux - Software 13 03-31-2010 12:01 PM
how to use the command parted farooqmncl Linux - Newbie 1 04-25-2009 07:07 PM
gpt label in parted, partitions look OK. GrUB not booting 64bit OS on 8th primary digital8doug Linux - Newbie 1 12-31-2008 03:20 PM
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 04:39 AM
fdisk/parted/cfdisk: command not found indole Linux - Software 2 02-17-2005 01:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration