LinuxQuestions.org
Review your favorite Linux distribution.
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 07-27-2010, 08:47 AM   #1
vbx_wx
Member
 
Registered: Feb 2010
Posts: 181

Rep: Reputation: 16
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?
 
Old 07-27-2010, 08:55 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
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
 
Old 07-27-2010, 08:56 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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"?)
 
Old 07-27-2010, 09:05 AM   #4
vbx_wx
Member
 
Registered: Feb 2010
Posts: 181

Original Poster
Rep: Reputation: 16
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
 
Old 07-27-2010, 09:16 AM   #5
vbx_wx
Member
 
Registered: Feb 2010
Posts: 181

Original Poster
Rep: Reputation: 16
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.
 
Old 07-27-2010, 01:27 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
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.
 
Old 07-27-2010, 02:34 PM   #7
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
For Linux on a PC, you should use MSDOS type label. Choosing the label can be confusing.
 
Old 07-27-2010, 03:38 PM   #8
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Make sure you know what a gpt disk is before you use it.
 
0 members found this post helpful.
Old 07-28-2010, 08:00 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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?
 
Old 07-28-2010, 10:56 AM   #10
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
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.
 
  


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
"No partition table or unknown signature on partition table" 10.1 install madcow007 Slackware 4 02-09-2009 11:04 AM
openSolaris hosed the partition table. Why? Changing primary to secondary partition? JZL240I-U Solaris / OpenSolaris 9 10-16-2008 10:48 AM
need bigger swap partition but missing a valid partition table compused Linux - Hardware 3 07-02-2008 08:46 AM
Manually create partition table? FogSwimmer Linux - Software 7 12-29-2005 06:28 PM
Slack 10: S-ATA = "No partition table or unknown signature on partition table"? dissolved soul Slackware - Installation 11 08-05-2004 02:12 PM

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

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration