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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-27-2010, 08:47 AM
|
#1
|
|
Member
Registered: Feb 2010
Posts: 181
Rep:
|
create partition table
Hello,i have a problem with one hard disk,now it says its Unallocated,and i tried to create a new partition on it,but it says that first i need to create a partition table,but when i create one,choosing msdos label,it doesnt to nothing. I used Gparted in Fedora,how can i create a partition table,so i can use my hard disk again?
|
|
|
|
07-27-2010, 08:55 AM
|
#2
|
|
Senior Member
Registered: Jul 2006
Location: Kolkata, India
Distribution: 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,717
Rep: 
|
Start the system from a live cd like parted magic and do it.
You need to create the table and then the partitions as root user in Fedora ... parted will be better
|
|
|
|
07-27-2010, 08:56 AM
|
#3
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
A tool like GParted will automatically create the partition table when you create one or more partitions.
What do you mean when you say "it doesn't do anything". What exactly happens? (Note that--with typical partitioning tools, you have to tell it explicity to write the new partition table.
You can also try something fdisk or cfdisk.
(And why do you want a partition with an "msdos label"?)
|
|
|
|
07-27-2010, 09:05 AM
|
#4
|
|
Member
Registered: Feb 2010
Posts: 181
Original Poster
Rep:
|
Well because i dont know what laber to choose ...so i let the default label..and when i give it to create partition table it says "Searching /dev/sda devices..." and thne it stops,wih no result,i also used fdisk...nothing
|
|
|
|
07-27-2010, 09:16 AM
|
#5
|
|
Member
Registered: Feb 2010
Posts: 181
Original Poster
Rep:
|
If i choose gpt it searches /dev/sdb too,what label should i choose ???? on my /dev/sda i have windows 7 and and /dev/sdb i want to install Fedora.
|
|
|
|
07-27-2010, 01:27 PM
|
#6
|
|
Senior Member
Registered: Jan 2010
Posts: 1,604
|
Hi,
Code:
parted /dev/sdb mklabel msdos
parted /dev/sdb mkpart primary ext2 0 10000
should create a new msdos label and a partition of size 10000 MB on /dev/sdb. Make sure that /dev/sdb is indeed the hdd you want to install on. Also make sure that there is no important data on /dev/sdb since it will be destroyed (the data that is, not the hdd itself).
Afterwards you can format the newly created partition /dev/sdb1 with mke2fs.
|
|
|
|
07-27-2010, 02:34 PM
|
#7
|
|
Senior Member
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian Testing; OpenSuSE 12.1; Fedora 17
Posts: 1,541
Rep: 
|
For Linux on a PC, you should use MSDOS type label. Choosing the label can be confusing.
|
|
|
|
07-27-2010, 03:38 PM
|
#8
|
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
Make sure you know what a gpt disk is before you use it.
|
|
|
0 members found this post helpful.
|
07-28-2010, 08:00 AM
|
#9
|
|
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,797
|
I'm confused...
None of my Linux partitions have labels---why would a label be needed?
For the OP: Are you still using GParted? If not, then which utility are you using?
|
|
|
|
07-28-2010, 10:56 AM
|
#10
|
|
Senior Member
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Rep: 
|
pixellany,
Two things need clarification
(1) Some distros, like those from the Red Hat family, are keen with booting to a label and dislike the normal device name like /dev/sdax. They would create labels as this page in cfdisk shows. The labels can get complicated as more digits have to add to make each one unique.
Code:
cfdisk 2.12r
Disk Drive: /dev/hda
Size: 300090728448 bytes, 300.0 GB
Heads: 255 Sectors per Track: 63 Cylinders: 36483
Name Flags Part Type FS Type [Label] Size (MB)
-------------------------------------------------------------------------------------------------------------------------------------------
hda30 Logical Linux ext3 [/1234567] 5000.98
hda31 Logical Linux ext3 [/] 5000.98
hda32 Logical Linux ext3 5000.98
hda33 Logical Linux ext3 [/123456789101120] 5000.98
hda34 Logical Linux ext3 5000.98
hda35 Logical Linux ext3 5000.98
hda36 Logical Linux ext3 5000.98
hda37 Logical Linux ext3 5000.98
hda38 Logical Linux ext3 [SLAMPP] 5000.98
hda39 Logical Linux ext3 5000.98
hda40 Logical Linux ext3 5000.98
hda41 Logical Linux ext3 5000.98
hda42 Logical Linux ext3 5000.98
hda43 Logical Linux ReiserFS 5000.98
hda44 Logical Linux ext3 5000.98
hda45 Logical Linux ext3 5000.98
hda46 Logical Linux ext3 5000.98
hda47 Logical Linux ext3 [/123456] 5000.98
hda48 Logical Linux ext3 5000.98
hda49 Logical Linux ext3 5000.98
hda50 Logical Linux ext3 5000.98
hda51 Logical Linux ext3 5000.98
hda52 Logical Linux ext3 [/123456789101117] 5000.98
hda53 Logical Linux ext3 5000.98
hda54 Logical Linux ext3 5000.98
hda55 Logical Linux ext3 5000.98
hda56 Logical Linux ext3 5000.98
hda57 Logical Linux ext3 10001.95
[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ] [ Quit ] [ Type ] [ Units ] [ Write ]
In my old box with 145 operating systems the labels used are
Code:
root@KanotixBox:/home/saikee# ls /dev/disk
by-id by-label by-path by-uuid
root@KanotixBox:/home/saikee# ls /dev/disk/by-label
12 12345 12345678 1234567891011 123456789101114 123456789101117 123456789101120 123456789101124 HDA1
123 123456 123456789 123456789101112 123456789101115 123456789101118 123456789101121 400Gb-end-Z SLAMPP
1234 1234567 12345678910 123456789101113 123456789101116 123456789101119 123456789101123 Ark WIN3-11
If I have a need to alter a Grub I always change the label back to the normal device name. Can't remember seeing Lilo using label on a Linux though.
(2) The Parted sofware uses "label" to distinguish the two partitioning schemes of "msdos" and "gpt". That is just using label for a different reason. 99% of us use only the msdos disk. gpt disks are not detectable by many Linux software and can't be booted by most Windows. Only 64-bit version Windows can boot a gpt disk and this can only be done with efi hardware in the mobo. Linux can boot gpt disks a long time ago. It is only used for partitions and hard disks larger than 2TB at the moment but can have 128 partitions maximum.
Last edited by saikee; 07-28-2010 at 11:07 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|