LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 01-26-2008, 10:37 PM   #1
guba04
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
How can I override the '(5.00%) reserved for the super user' mkfs.ext3 creates?


Hello!

I just bought myself a new USB stick. It works flawlessly.
I changed the file system to ext3 under Ubuntu 7.10 with
$ sudo mkfs.ext3 /dev/sdb1
However, mkfs.ext3 reserved 5% for the super user, which I do not fancy.
How can I override that behavior? Neither man pages nor Google helped me out on this one.

Thanks for your suggestions!

Guba
 
Old 01-26-2008, 10:49 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Is the drive just being used for storage or is the OS operating off of it?
 
Old 01-26-2008, 10:57 PM   #3
guba04
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi,

thanks for your reply.
It is just storage (quite small, actually: 1Gb).
 
Old 01-26-2008, 11:01 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Have a look at man tune2fs. You never want to do this to your root drive, you can run out of filespace (temp files) while running(total system freeze). If this happens it can be a real PITA to get fixed.
 
Old 01-26-2008, 11:30 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,230

Rep: Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019Reputation: 1019
This is filesystem dependant - "man mkfs.ext3" (rather than just "man mkfs") should show you.
A stated, tune2fs allows you to "fix" it after the fact.
 
Old 01-26-2008, 11:33 PM   #6
guba04
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hello again,

that was quite helpful, I now ran

$ sudo mkfs.ext3 -j /dev/sdb1 && tune2fs -i 0 -c 0 -r 0 -m 0 /dev/sdb1

However, I still have some 17Mb used right after creating the file system!!!


Here is the bash output:

guba@ubox:~$ sudo mkfs.ext3 -j -m 0 /dev/sdb1 && tune2fs -i 0 -c 0 -r 0 -m 0 /dev/sdb1
mke2fs 1.40.2 (12-Jul-2007)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
125952 inodes, 251900 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=260046848
8 block groups
32768 blocks per group, 32768 fragments per group
15744 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
tune2fs 1.40.2 (12-Jul-2007)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Setting reserved blocks percentage to 0% (0 blocks)
Setting reserved blocks count to 0
guba@ubox:~$

Any ideas!?

Guba

Last edited by guba04; 01-26-2008 at 11:46 PM.
 
Old 01-26-2008, 11:42 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
How are you determining what has been used? Are you accounting for the journal?
 
Old 01-26-2008, 11:51 PM   #8
guba04
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I get my information from my Gnome desktop: after mounting the usb I right-cklick the icon and go to Properties.
Of course, the journal needs some space, however, 17Mb sounds a bit much!?
 
Old 01-27-2008, 12:10 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Off the top of my head that seems about right.
 
Old 01-27-2008, 12:20 AM   #10
guba04
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Okay, I will then have to accept this!
Thanks for all your input! Great stuff.

Guba
 
  


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
mkfs.ext3 fails to create filesystem larger than 45GB bobmacks Linux - Enterprise 10 10-06-2007 09:47 PM
mkfs.ext3: No medium found FreezEy Arch 1 05-14-2007 02:44 PM
HELP: QTparted says There was a problem with mkfs.ext3 dhruba.bandopadhyay Linux - General 2 06-14-2006 10:27 AM
mkfs.ext3 nearly stops at about 61% of blocks ejkeebler Linux - Newbie 1 04-27-2006 06:23 PM
Help needed to recover data from ext3 file system where mkfs was issued accidentally kapilsampath Linux - General 4 04-26-2005 07:52 AM


All times are GMT -5. The time now is 07:18 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration