Linux - NewbieThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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"?)
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
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.
(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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.