LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cannot partion linux disk (https://www.linuxquestions.org/questions/linux-software-2/cannot-partion-linux-disk-333770/)

chuchaz 06-15-2005 04:49 AM

Cannot partion linux disk
 
I am having a rough time trying partition a drive.

I used the command: fdisk /dev/hda1
and then I followed the instructions for a new partition

If you do a p you can see the partitions as hda1p1 and hda1p2 but the problem is that it says ' could not start /dev/hda1p1 -- no such file or directory if you try mount it or even create a file system.

I am using redhat 8

Please help

ichrispa 06-15-2005 05:02 AM

do you want to repartition as a whole or just add a partition?
if you want to do the first try to delete the partitions, I suppose that fdisk is having a hard time reading the partition table, so you just need to rewrite them.

Can you mount and read them? If not then I would propose a low level formating...

hellfish 06-15-2005 05:17 AM

Re: Cannot partion linux disk
 
try fdisk /dev/hda.
there is also the program cfdisk, which provides a more comfortable
configuration.

CletusJones 06-15-2005 09:14 AM

Re: Re: Cannot partion linux disk
 
Quote:

Originally posted by hellfish
try fdisk /dev/hda.
there is also the program cfdisk, which provides a more comfortable
configuration.

truth. When you type in "fdisk /dev/hda1" you're trying to fdisk a partition. You want to fdisk the whole drive, not a partition on the drive. I also recommend cfdisk, I like the interface better.

Good luck


All times are GMT -5. The time now is 08:41 PM.