Operating System - Linux
1826657 Members
2490 Online
109695 Solutions
New Discussion

Getting error "mkfs.ext2: No such device or address" when using mkfs command

 
SOLVED
Go to solution
Paul Mancillas
Advisor

Getting error "mkfs.ext2: No such device or address" when using mkfs command

I just created a /dev/sda9 partition on my Red Hat 7.2 system. Then I tried using "mkfs" to create the file system and I saw this:

# mkfs -t ext2 /dev/sda9
mke2fs 1.23, 15-Aug-2001 for EXT2 FS 0.5b, 95/08/09
mkfs.ext2: No such device or address while trying to determine filesystem size

Can anyone tell me how to fix this?

Thanks,

Paul Mancillas
1 REPLY 1
I_M
Honored Contributor
Solution

Re: Getting error "mkfs.ext2: No such device or address" when using mkfs command

Hi

I would like to tell you what did you do after "fdisk" command.

Because fdisk re-write the disk's MBR when you quit with "w" (write & quit).
But if you try to mkfs just after that, you will be fail like this time.
Because your sda (system disk) is mounted by OS, so that system could not reset the HD to enable new partition information.

So what you need to do after create new partition on system disk is, reboot.
If it is your data disk and all partitions are not mounted, fdisk try to restart the disk. So you don't need to reboot the system.

Good luck