1827303 Members
3530 Online
109961 Solutions
New Discussion

error un making fs

 
Tonatiuh
Super Advisor

error un making fs

Red Hat Enterprise Linux 4 Update 2

I have ceate a new partition (fdisk) and I got an error when I try to make the filesystem.


[root@svr04 ~]# mkfs.ext3 -L /u01 -b 1024 /dev/hda9
mke2fs 1.35 (28-Feb-2004)
Filesystem label=/u01
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
3822592 inodes, 30579696 blocks
1528984 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=97779712
3733 block groups
8192 blocks per group, 8192 fragments per group
1024 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553,
1024001, 1990657, 2809857, 5120001, 5971969, 17915905, 19668993,
25600001

Writing inode tables: 496/3733
Could not write 8 blocks in inode table starting at 4063323: Attempt to write block from filesystem resulted in short write

I got exactly the same result if I use mke2fs.

Any idea?
5 REPLIES 5
sachin.tripathi
New Member

Re: error un making fs

Have you checked by without giving the blocksize.."mkfs.ext3 -L /u01 /dev/hda9"
else there may be some problem with your harddisk or proper block mapping is not created.
Vitaly Karasik_1
Honored Contributor

Re: error un making fs

I afraid you have some problem with disk partitioning...
Can you please run "fdisk -l" command?

Rgds,
Vitaly
Tonatiuh
Super Advisor

Re: error un making fs

Without the parameter -b 1024 the command mkfs.ext3 worked properly.

This is the fdisk -l output

[root@svr04 ~]# fdisk -l

Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 33 265041 83 Linux
/dev/hda2 34 425 3148740 83 Linux
/dev/hda3 426 817 3148740 83 Linux
/dev/hda4 818 4998 33583882+ 5 Extended
/dev/hda5 818 948 1052226 82 Linux swap
/dev/hda6 949 1050 819283+ 83 Linux
/dev/hda7 1051 1126 610438+ 83 Linux
/dev/hda8 1127 1191 522081 83 Linux
/dev/hda9 1192 4998 30579696 83 Linux

What was the difference?
What blocksize has my recently created
filesystem?
If is differente from 1024, what is the operative difference between a blocksize of 1024 and other blocksize?
Tonatiuh
Super Advisor

Re: error un making fs

Another problem in the filesystem recently created:

[root@svr04 /]# mount -o rw /dev/hda9 /u01
[root@svr04 /]# su - oracle
[oracle@svr04 ~]$ cd /u01
[oracle@svr04 u01]$ ll
total 8
drwxr-xr-x 2 oracle oinstall 4096 Mar 16 14:09 oracle
[oracle@svr04 u01]$ mkdir sw
mkdir: cannot create directory `sw': Input/output error
[oracle@svr04 u01]$ mkdir software
mkdir: cannot create directory `software': Read-only file syst

owner of /u01 is oracle:oinstall

First directory 'oracle' was created without any problem

Re: error un making fs

Hi,

Here is my answer of your other post :

"
This can be a hardware failure.
To avoid any problem regarding bad disk clusters, ask mke2fs to check it.

With this command :
mke2fs -c 'device'
It'll do a fast check of the disk.

Or the following if you have time :
mke2fs -c -c 'device'
It'll do a long check.
"