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 02-21-2014, 09:01 AM   #1
mrajdeep
LQ Newbie
 
Registered: Aug 2011
Distribution: UBUNTU 10.04 Lucid Lynx
Posts: 17
Blog Entries: 1

Rep: Reputation: Disabled
Not able to create partition using parted on RHEL6.5


I have RHEL6.5 running on oracle virtual box, I have added a virtual hard disk and want to create partitions in it but getting following errors.

[root@localhost ~]# cat /proc/partitions
major minor #blocks name

8 16 1135474 sdb
8 0 8388608 sda
8 1 512000 sda1
8 2 7875584 sda2
253 0 6823936 dm-0
253 1 1048576 dm-1

[root@localhost ~]# parted /dev/sdb
GNU Parted 2.1
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mkpart
Error: /dev/sdb: unrecognised disk label
(parted)


what am I doing wrong here?

I am able to do this using fdisk, but i want to learn doing this using parted.
 
Old 02-21-2014, 09:30 AM   #2
sgrlscz
Member
 
Registered: Aug 2008
Posts: 53

Rep: Reputation: 20
You need to create a disk label. Within parted, you use the mklabel command:

(parted) mklabel msdos

Then you can create the partitions.
 
1 members found this post helpful.
Old 02-21-2014, 09:59 AM   #3
mrajdeep
LQ Newbie
 
Registered: Aug 2011
Distribution: UBUNTU 10.04 Lucid Lynx
Posts: 17
Blog Entries: 1

Original Poster
Rep: Reputation: Disabled
Thank you very much, this worked.
 
  


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
How do I create a software raid array from 3TB drives? (parted?) swingliner Linux - Server 2 10-13-2011 10:34 PM
Resize partition with parted ShadowReaper Linux - General 5 12-14-2010 01:39 PM
using parted on a primary partition dfw7400 Linux - Server 4 07-28-2010 03:17 PM
How do I partition my hd using parted? thanhthanh19 Fedora 3 10-23-2004 05:39 PM
Resize Partition with parted jdmml Linux - Hardware 0 07-08-2004 09:43 PM


All times are GMT -5. The time now is 04:48 PM.

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