Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 03-31-2006, 07:49 AM   #1
LQ Newbie
Registered: Jan 2006
Posts: 17

Rep: Reputation: 0
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.
Old 03-31-2006, 08:03 AM   #2
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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?
Old 03-31-2006, 02:18 PM   #3
Senior Member
Registered: May 2004
Location: Leipzig/Germany
Distribution: Arch
Posts: 1,687

Rep: Reputation: 55
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
resize ext3 filesystem DaWallace Slackware 8 10-10-2007 07:15 AM
Corrupted Ext3 Filesystem pyrosim Linux - General 2 07-23-2005 12:21 PM
ext3\ext2 filesystem amjad Linux - General 1 05-23-2005 05:51 AM
What is the best filesystem? (mainly xfs vs ext3) calimer Linux - Software 16 03-02-2005 01:07 AM
create ext3 filesystem glock19 Linux From Scratch 2 02-06-2002 10:39 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration