PDA

View Full Version : cfdisk and extended primary option (0x05)



zillah
02-16-2006, 08:43 AM
I was trying to use cfdusk to create partition within a hard disk,,,,I could not create extended primary partition, though the tag (label) 0x05 for extended is available.

How can I do that ? Is 05 is for this purpose or for something else ?

zillah
02-17-2006, 04:01 PM
Any idea ?

nad
02-17-2006, 08:18 PM
You need to create an extended partition first and then a logical partition within. This excersie is moot unless you are acting as root. Also, manipulating a mounted drive is dangerous.

Please post the output of: parted /dev/designation print

zillah
02-17-2006, 08:32 PM
You need to create an extended partition
How can I creat this,,,this is my origin thread about it ?

nad
02-17-2006, 11:37 PM
We need more information regarding your current disk structure and your exact actions in order to assist you.

zillah
02-18-2006, 05:26 AM
I have already created two primary partitions on a hard disk and I want to create extended primary on this hard disk as well.
How can I do that ?

nad
02-18-2006, 02:04 PM
In a terminal window shell, enter the command: parted /dev/your_hard_drive_here print . Please post the output.

We need more information regarding your current disk structure and your exact actions in order to assist you.

zillah
02-21-2006, 03:29 AM
I created the partitions on both hard disks by using system commander V9.0 utility,,,,then I used knoppix cfdisk utility to check both hard diks and the output was :

[root@0[knoppix]# parted /dev/hdb print
Warning: Unable to align partition properly. This probably means that another partitioning tool generated an incorrect partition table, because it didn't have the correct BIOS geometry. It is safe to ignore,but ignoring may cause (fixable) problems with some boot loaders.
Ignore/Cancel? ignore



Disk geometry for /UNIONFS/dev/hdb: 0.000-38166.679 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
2 9536.625 12397.710 primary lba
3 12401.741 38162.219 extended lba
5 12401.771 12605.690 logical ext3 boot
6 12605.722 21603.032 logical ext3
7 21603.063 21861.892 logical linux-swap
Information: Don't forget to update /etc/fstab, if necessary.


[root@0[knoppix]# parted /dev/hda print
Warning: Unable to align partition properly. This probably means that another partitioning tool generated an incorrect partition table, because it didn't have the correct BIOS geometry. It is safe to ignore,but ignoring may cause (fixable) problems with some boot loaders.
Ignore/Cancel? ignore



Disk geometry for /UNIONFS/dev/hda: 0.000-38162.250 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 14998.183 primary ntfs boot
2 14998.184 17994.682 primary fat32 lba
3 17994.683 38162.219 primary ntfs
Information: Don't forget to update /etc/fstab, if necessary.


Note: Since I failed to create extended partition on the above PC, and I am looking to use cfdisk to partition another HD on another PC , therefore I raised my thread here.

Why did I receive the above warning message ?

zillah
02-22-2006, 04:10 PM
Any idea or help ?

|enouf|
02-24-2006, 06:26 AM
Any idea or help ?

Let's see the output of your
$ sudo cfdisk



cfdisk 2.12p

Disk Drive: /dev/hda
Size: 82348277760 bytes, 82.3 GB
Heads: 255 Sectors per Track: 63 Cylinders: 10011

Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary W95 FAT32 (LBA) 10487.24
hda5 Logical W95 FAT32 15734.97
hda6 Logical W95 FAT32 7871.60
hda7 Logical Linux ext3 [/] 5502.72
hda8 Logical Linux swap / Solaris 1497.01
hda9 Logical Linux ext3 [/home] 5000.98
hda10 Logical Linux ext3 [/usr] 10001.95
hda11 Logical Linux ext3 [/var] 10001.95
Pri/Log Free Space 16244.93



[Bootable] [ Delete ] [ Help ] [Maximize] [ Print ]
[ Quit ] [ Type ] [ Units ] [ Write ]

Toggle bootable flag of the current partition



Which HDD are you having trouble with ???
Any other partitioning tool will not use the same scheme and cause errors
For where NTFS is installed and active, use QTparted

and also post the output of

$ sudo fdisk -l /dev/hda (or hdb, whichever the prob is)

you ARE doing this from a LiveCD....yes ?
If not - boot to LiveCD using Knoppix26 1
then leave off 'sudo' in the commands above - you'll be root already (pretty sure)

OH.....BTW -- if you're trying for a Win95/98 Extended partition, the ID = 0x0F (Partition hda2 below)
$ sudo cfdisk
then select -> Print
then select -> Table
anyfilename (leave it blank)


Partition Table for /dev/hda

---Starting--- ----Ending---- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- ----------- -----------
1 0x80 1 1 0 0x0C 254 63 1023 63 20482812
2 0x00 254 63 1023 0x0F 254 63 1023 20482875 108615465
3 0x00 0 0 0 0x00 0 0 0 0 0
4 0x00 0 0 0 0x00 0 0 0 0 0
5 0x00 254 63 1023 0x0B 254 63 1023 63 30732282
6 0x00 254 63 1023 0x0B 254 63 1023 63 15374142
7 0x00 254 63 1023 0x83 254 63 1023 63 10747422
8 0x00 254 63 1023 0x82 254 63 1023 63 2923767
9 0x00 254 63 1023 0x83 254 63 1023 63 9767457
10 0x00 254 63 1023 0x83 254 63 1023 63 19534977
11 0x00 254 63 1023 0x83 254 63 1023 63 19534977

zillah
02-24-2006, 07:21 AM
you ARE doing this from a LiveCD....yes ?
Yes , I am doing this form a Live CD.



If not - boot to LiveCD using Knoppix26 1
Which version 26 1 is ? Is it same as V4 ?



Which HDD are you having trouble with ???
I can not create an extended partition on any one of these hard disks,,,I want to learn how to create an extended partition (for future use,,,because right now I have alreday created one).



and also post the output of
I will be glad to do that, But if I want to learn how to create an extended partition, do I need to provide the output ?

|enouf|
02-24-2006, 02:01 PM
1. I asked for cfdisk output - not parted
2. I asked which disk .....both, you say ? ok - HDD #2 already has too many primary partitions, but if you answer #1, i may have a better answer ..*if* you tell me "what" it looked like "before" system commander


I will be glad to do that, But if I want to learn how to create an extended partition, do I need to provide the output ?
3. Yes !

i have no idea which version of knoppix you are using ....:cry:

'knoppix 1' will boot to kernel 2.4 at runlevel1 - text mode, no GUI, logged in as root
'knoppix26 1' will boot to kernel 2.6 at runlevel1 - text mode, no GUI, logged in as root

zillah
02-24-2006, 06:38 PM
OH.....BTW -- if you're trying for a Win95/98 Extended partition, the ID = 0x0F
I have not noticed the above before, I have just read it. I think this was my problem, I used to use 0x05, see the code below.

What is the difference between 0x05 and 0x0F ?




01 FAT12 4F QNX4.x 3rd part A8 Darwin UFS
02 XENIX root 50 OnTrack DM A9 NetBSD
03 XENIX usr 51 OnTrack DM6 Aux1 AB Darwin boot
04 FAT16 <32M 52 CP/M B7 BSDI fs
05 Extended 53 OnTrack DM6 Aux3 B8 BSDI swap
06 FAT16 54 OnTrackDM6 BB Boot Wizard hidden
07 HPFS/NTFS 55 EZ-Drive BE Solaris boot
08 AIX 56 Golden Bow BF Solaris
09 AIX bootable 5C Priam Edisk C1 DRDOS/sec (FAT-12)
0A OS/2 Boot Manager 61 SpeedStor C4 DRDOS/sec (FAT-16 <
0B W95 FAT32 63 GNU HURD or SysV C6 DRDOS/sec (FAT-16)
0C W95 FAT32 (LBA) 64 Novell Netware 286 C7 Syrinx
0E W95 FAT16 (LBA) 65 Novell Netware 386 DA Non-FS data
0F W95 Ext'd (LBA) 70 DiskSecure Multi-Boo DB CP/M / CTOS / ...
10 OPUS 75 PC/IX DE Dell Utility
11 Hidden FAT12 80 Old Minix DF BootIt
12 Compaq diagnostics 81 Minix / old Linux E1 DOS access





1. I asked for cfdisk output - not parted
I am going to delete these partitions and create new partitions by using cfdisk (for practicing create extended primary),,,,This is the output for cfdisk


Partition Table for /dev/hda

---Starting--- ----Ending---- Start Number of
# Flags Head Sect Cyl ID Head Sect Cyl Sector Sectors
-- ----- ---- ---- ---- ---- ---- ---- ---- ----------- -----------
1 0x80 1 1 0 0x07 254 63 1023 63 30716217
2 0x00 254 63 1023 0x0C 254 63 1023 30716280 6136830
3 0x00 254 63 1023 0x07 254 63 1023 36853110 41303115
4 0x00 0 0 0 0x00 0 0 0 0 0



And for fdisk -l as well.


root@1[knoppix]# fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/hda2 1913 2294 3068415 c W95 FAT32 (LBA)
/dev/hda3 2295 4865 20651557+ 7 HPFS/NTFS









I have no idea which version of knoppix you are using
V4

|enouf|
02-24-2006, 07:29 PM
What is the difference between 0x05 and 0x0F ?
http://www.win.tue.nl/~aeb/partitions/partition_types-1.html


...This is the output for cfdisk
[ snipped ]


No - it's not what I asked for :) ....that was the "TABLE" output of cfdisk you posted - my earlier post shows you what you should paste.......No worry though ;) it's not important anymore.



And for fdisk -l as well.


root@1[knoppix]# fdisk -l /dev/hda

Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1912 15358108+ 7 HPFS/NTFS
/dev/hda2 1913 2294 3068415 c W95 FAT32 (LBA)
/dev/hda3 2295 4865 20651557+ 7 HPFS/NTFS



Good job -- we can see the file system types


V4
as in
4.0 ?
4.0.1?
4.0.2?
CD or DVD ? .....meh nevermind, any Knoppix 4.x version will auto boot 2.6 kernel (that's why I asked -- for ex; Knoppix 3.6 will boot 2.4 normally, but you can make it boot 2.6 using the bootcode linux26 or knoppix26)

nad
02-24-2006, 07:48 PM
You already have an extended partition on this drive. Only one extended partition is allowed.

zillah
02-24-2006, 08:20 PM
You already have an extended partition on this drive.
I had created that partition by using system commander not cfdisk utility,,,


Only one extended partition is allowed.
You are right, I am aware of that.



No - it's not what I asked for
I followed these steps:


$ sudo cfdisk
then select -> Print
then select -> Table
anyfilename (leave it blank)





as in
4.0 ?
4.0.1?
4.0.2?
CD or DVD ?
V4.0.1 CD.

|enouf|
02-24-2006, 09:05 PM
I followed these steps:
$ sudo cfdisk
then select -> Print
then select -> Table
anyfilename (leave it blank)
[/code]


doh! :o ....you are right! My apologies...I've been doing -s-o- many things at once, I forget the specifics between different forums/users, and / or get confused sometimes . I guess I "originally" asked for it that way to see if you indeed had an 0x05 entry, or an 0x0f, or 0x0c like I have for hda1 (0c) and hda2 (0f) -- I tried bolding that entry with the tags, but it seems [b ][/b ] isn't working in this forum while "within" [code ] tags.


V4.0.1 CD.
Excellent ;)
BTW - I've seen that error before (on my box) with one of these Linux disk utilities -- it's just the drive translation thing -- I don't "think" it's anything to be too concerned about

zillah
02-24-2006, 09:11 PM
I tried bolding that entry with the tags, but it seems [b ][/b ] isn't working in this forum while "within" [code ] tags.

I was about to ask you the same question, but I received your quoted above, then I realized , may be we can not use bold phrase within code

Harry Kuhman
02-24-2006, 10:31 PM
I tried bolding that entry with the tags, but it seems [b ][/b ] isn't working in this forum while "within" [code ] tags.

I was about to ask you the same question, but I received your quoted above, then I realized , may be we can not use bold phrase within code
Code, by it's very nature, would want to show all of the bracketed things that get processed by the display routines otherwise.
That way, I can tell someone if they want to include a link to an external site they should use a format like this:

You can search for that yourself here (http://www.google.com/).
and the result will be:
You can search for that yourself here (http://www.google.com/).

|enouf|
02-25-2006, 03:26 AM
Code, by it's very nature, would want to show all of the bracketed things that get processed by the display routines otherwise.
That way, I can tell someone if they want to include a link to an external site they should use a format like this:

You can search for that yourself here (http://www.google.com/).
and the result will be:
You can search for that yourself here (http://www.google.com/).
You're right Harry....
AFAIK -- It (code tags) are meant to maintain the ASCII output, using a monospace font
I should have used the "quote" tags (and must be thinking of this elsewhere) - to set apart and box any needed bolded commands, etc..