LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-03-2006, 03:48 AM   #1
sambyte
Member
 
Registered: Feb 2006
Distribution: Redhat 9
Posts: 38

Rep: Reputation: 15
What is the diff betwn mke2fs and tune2fs ?


Hi,
Pls tell me the difference between mke2fs and tune2fs command ? Also when should i use tune2fs? I know a bit about mke2fs .....
 
Old 03-03-2006, 05:42 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
mke2fs is used to create a filesystem. It "erases" everything on the target partition and creates a new, fresh, file system on it.

tune2fs is used to tune (daahh) parameters on a already created file system. Things like volume name, max time between checks, etc. It don't create anything, just adjust parameters that was set by a previous run of mke2fs.

cheers,
 
Old 03-03-2006, 06:12 AM   #3
sambyte
Member
 
Registered: Feb 2006
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Hi,
Thanks for your reply. Also wanted to know that to run mke2fs or tune2fs does the partitions have to be mounted ? If a partition is unmounted can i still format it ?
 
Old 03-03-2006, 06:31 AM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
Both operations must be done on un-mounted partitions.
You can create a new filesystem (what you call "format") only on un-mounted partitions, after all, you are creating the data that will be used to mount it later !

regards,
 
Old 03-03-2006, 06:43 AM   #5
sambyte
Member
 
Registered: Feb 2006
Distribution: Redhat 9
Posts: 38

Original Poster
Rep: Reputation: 15
Hi,
Thanks for your reply. Got the thing about mke2fs . But what about tune2fs ?
tune2fs is used to tune (daahh) parameters on a already created file system as you said. So is tune2fs safe enough to be performed even on a mounted partition ?
 
Old 03-03-2006, 06:57 AM   #6
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,402
Blog Entries: 1

Rep: Reputation: 64
Quote:
Originally Posted by sambyte
So is tune2fs safe enough to be performed even on a mounted partition ?
No! Theses parameters controls how the filesystem is mounted, checked, if it has a journal or not, how much space is reserved to the superuser, and changing this on-the-fly could result in unexpected behavior and corrupted data being write to the disk.
 
  


Reply


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
tune2fs -c 4 -C 3 calutateo Linux - General 2 07-06-2005 03:13 PM
tune2fs & fsck backne Mandriva 2 04-26-2005 09:13 AM
tune2fs?? blackzone Linux - Newbie 1 01-07-2005 02:24 AM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 06:06 PM
differences betwn link, unlink, mkdir, rm h/w Programming 7 01-06-2004 05:47 PM


All times are GMT -5. The time now is 05:56 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration