-   Linux From Scratch (
-   -   how to create ext3 filesystem using 'mke2fs -j' (

shankara 03-31-2006 06:49 AM

how to create ext3 filesystem using 'mke2fs -j'
hello ,
i want to create ext3 filesystem on a disk which is newly partitioned.
i want to create it using mke2fs.
i followed this procedure:
after partitioning,

i did
mke2fs -j /dev/hda1

then i did
e2fsck /dev/hda1

after this when i tried
mount /dev/hda1 /mnt

it is saying no such file or directory.

what may be the error.

i think kernel is not supporting ext3.
the kernel version is 2.659.

if possible can u tell me the steps to be followed when compiling kernel.
mainly the steps related to ext3 filesystem.

reddazz 03-31-2006 07:03 AM

ext3 filesystems can be created by doing

#mkfs -t ext3 /dev/hda1

#mkfs.ext3 /dev/hda1
Did you compile the kernel by yourself or was it precompiled?

jomen 03-31-2006 01:18 PM

mke2fs -j /dev/hda1 is perfectly ok. It creates ext2 with a journal - which is ext3 effectively.
but the error says: "no such file or directory" - which would mean that /mnt is not there - this is unlikely, but check.
Make sure support for ext3 is in the kernel or that the module is loaded - it should also be mountable as ext2 if ext3 is not available somehow.

mkdir /mnt/disk_hda1
mount -t ext3 /dev/hda1 /mnt/disk_hda1
as root should do it - if not - look at the error.

All times are GMT -5. The time now is 08:10 AM.