Index: uspace/app/mkminix/mkminix.c
===================================================================
--- uspace/app/mkminix/mkminix.c	(revision 56df02f0fbc775fe8b42939bea29d90a660faa48)
+++ uspace/app/mkminix/mkminix.c	(revision f0ceb1df31d23ae0a9b1a908ef1ed863da66059c)
@@ -240,4 +240,10 @@
 	init_inode_table(&sb);
 
+	/*Make the root inode*/
+	if (sb.fs_version == 3)
+		make_root_ino3(&sb);		
+	else
+		make_root_ino(&sb);
+
 	/*Insert directory entries . and ..*/
 	insert_dentries(&sb);
@@ -254,5 +260,5 @@
 	
 	if (sb->fs_version != 3) {
-		/*Directories entry for V1/V2 filesystem*/
+		/*Directory entries for V1/V2 filesystem*/
 		struct mfs_dentry *dentry = root_block;
 
@@ -265,5 +271,5 @@
 		str_cpy(dentry->d_name, 2, "..");
 	} else {
-		/*Directories entry for V3 filesystem*/
+		/*Directory entries for V3 filesystem*/
 		struct mfs3_dentry *dentry = root_block;
 
@@ -297,10 +303,4 @@
 
 	free(itable_buf);
-
-	/*Make the root inode*/
-	if (sb->fs_version != 3)
-		make_root_ino(sb);		
-	else
-		make_root_ino3(sb);
 }
 
