Not able to mke2fs on new disk partition

Michael E Brown michael_e_brown at dell.com
Thu Nov 21 12:27:01 CST 2002


You cannot repartition a disk if any existing partition is mounted. Or, 
more accurately, fdisk _will_ write the new partition info to the disk, 
but the kernel will not reconfigure to recognize the new partition.

Unmount the existing partitions, then either "blockdev --rereadpt 
/dev/sdc", or go back into fdisk and write the partition table (no 
changes) back to the disk.
--
Michael

On Thu, 21 Nov 2002, KEVIN ZEMBOWER wrote:

> I'm trying to add disk capacity to my PowerEdge 2300 running SuSE 7.1. I've previously added a third hard disk to the chassis, and have been using parts of it successfully for a while now. This is not in a RAID array, just three separate disks.
> 
> I can successfully partition some of the remaining free space on the disk, but can't run mke2fs on it:
> 
> centernet:/ # cfdisk -Ps /dev/sdc
> Partition Table for /dev/sdc
> 
>             First    Last
>  # Type     Sector   Sector   Offset  Length   Filesystem Type (ID)   Flags
> -- ------- -------- --------- ------ --------- ---------------------- ---------
>  1 Primary        0  8401994      63  8401995  Linux (83)             None (00)
>  2 Primary  8401995  9815714       0  1413720  Extended (05)          None (00)
>  5 Logical  8401995  9815714      63  1413720  Linux swap (82)        None (00)
>  3 Primary  9815715 15679439       0  5863725  Linux (83)             None (00)
>    Primary 15679440 35551844       0 19872405  Free Space             None (00)
> centernet:/ # mke2fs /dev/sdc3
> mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> mke2fs: No such device or address while trying to determine filesystem size
> centernet:/ # mke2fs /dev/sdc3 2931862 
> mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09
> mke2fs: No such device or address while trying to determine filesystem size
> centernet:/ # ls -l /dev/sdc3
> brw-rw----    1 root     disk       8,  35 Jan 19  2001 /dev/sdc3
> 
> Am I overlooking something simple? In SuSE 7.1, there's a MAKEDEV.ide, but no general MAKEDEV script. Do I need one?
> 
> Thanks for your time and suggestions.
> 
> -Kevin Zembower
> 
> 
> 
> -----
> E. Kevin Zembower
> Unix Administrator
> Johns Hopkins University/Center for Communications Programs
> 111 Market Place, Suite 310
> Baltimore, MD  21202
> 410-659-6139
> 
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> http://lists.us.dell.com/mailman/listinfo/linux-poweredge
> Please read the FAQ at http://lists.us.dell.com/faq or search the list archives at http://lists.us.dell.com/htdig/
> 




More information about the Linux-PowerEdge mailing list