LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 03-31-2006, 06:49 AM   #1
shankara
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, 07:03 AM   #2
reddazz
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
Code:
#mkfs -t ext3 /dev/hda1
or
Code:
#mkfs.ext3 /dev/hda1
Did you compile the kernel by yourself or was it precompiled?
 
Old 03-31-2006, 01:18 PM   #3
jomen
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.
 
  


Reply



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 06:15 AM
Corrupted Ext3 Filesystem pyrosim Linux - General 2 07-23-2005 11:21 AM
ext3\ext2 filesystem amjad Linux - General 1 05-23-2005 04:51 AM
What is the best filesystem? (mainly xfs vs ext3) calimer Linux - Software 16 03-02-2005 12:07 AM
create ext3 filesystem glock19 Linux From Scratch 2 02-06-2002 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:37 AM.

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