partion
hi all,
i have reinstalled linux i kept free 17 gb space. i have created 4gb partition by fdisk with LVM options.
fdisk -l
Disk /dev/sda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS /dev/sda2 1276 2550 10241437+ 83 Linux /dev/sda3 4740 4870 1052257+ 82 Linux swap /dev/sda4 2551 3037 3911827+ 5 Extended
i am able to see /dev/sda4 my new partition. when i tried to create
pvcreate /dev/vg01/vol01
Device /dev/sda4 not found.
i am getting evice not found error.
when i tried to fdisk /dev/sda4
fdisk /dev/sda4
Unable to read /dev/sda4
when i tried fdisk /dev/sda
i press t
for change lvm
Command (m for help): t
Partition number (1-5): 4
Hex code (type L to list codes): 8e
You cannot change a partition into an extended one or vice versa Delete it first.
i got this message.
i tried to delete and create partition but same error.
i have 17 GB free space on disk let me know what is the causing this problem.
Thank you,
Deepak
---------------------------------
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 14 lines · Deepak Kandhare
hi all,
i have reinstalled linux i kept free 17 gb space. i have created 4gb partition by fdisk with LVM options.
fdisk -l
Disk/dev/sda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System/dev/sda1 * 1 1275 10241406 7 HPFS/NTFS /dev/sda2 1276 2550 10241437+ 83 Linux /dev/sda3 4740 4870 1052257+ 82 Linux swap /dev/sda4 2551 3037 3911827+ 5 Extended
<snip>
Quoted 2 lines
You cannot change a partition into an extended one or vice versa Delete it first.
You ave created an extended partition. Now you need to create a logical partition with that.
On one of my systems I have:
magni:~# fdisk -l <snip> Device Boot Start End Blocks Id System /dev/hda1 1 39 19624+ 83 Linux /dev/hda2 40 535 249984 82 Linux swap / Solaris /dev/hda3 536 26205 12937680 5 Extended /dev/hda5 536 2519 999904+ 83 Linux /dev/hda6 2520 4503 999904+ 83 Linux /dev/hda7 4504 6487 999904+ 83 Linux /dev/hda8 6488 26205 9937840+ 83 Linux
Partitions 1 and 2 are primary, 4 is the exteneded space, and partitions 5 - 8 are logical partitions.
Working from memory you need to do something like:
* fdisk /dev/sda
* "n" to create a new patition
* "l" for logical
* <return> (to start at the begining of the extended partition space)
* <return> (to fill to the end of the extended partition space)
* "w"
* "q"
Now use /dev/sda5 and it should work happily.
Yours Tony
linux.conf.au http://linux.conf.au/ || http://lca2007.linux.org.au/
Jan 15-20 2007 The Australian Linux Technical Conference!