LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-27-2009, 11:43 PM   #1
hotrock3
LQ Newbie
 
Registered: Dec 2008
Location: Nampa, Idaho
Posts: 20

Rep: Reputation: 0
How do I set block size to 4096


I am trying to make a file system on my hdb1 partition that has a block size of 4096. I know it can be done but I don't know how.

The sad part is I have already done it once but can't seem to figure it out again.

Thanks in advanced,
Hotrock3
 
Old 03-27-2009, 11:55 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,037

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
Depends on filesystem - check the mkfs manpage for the specific filesystem.
 
Old 03-28-2009, 12:11 AM   #3
hotrock3
LQ Newbie
 
Registered: Dec 2008
Location: Nampa, Idaho
Posts: 20

Original Poster
Rep: Reputation: 0
already did but it makes no sense to me.

I'm making a ext2 file system and I have tried"

Code:
mkfs b- 4096 t- 83 /dev/hdba
but it just tells me that 4096 is an invalid block size.
 
Old 03-28-2009, 12:21 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,037

Rep: Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912Reputation: 1912
I don't know where you got that command from. Try something like (make sure you hit the correcct partition)
Code:
mkfs.ext2 -b 4096 /dev/hdb1

Last edited by syg00; 03-28-2009 at 12:22 AM. Reason: misread the post
 
Old 03-28-2009, 12:27 AM   #5
hotrock3
LQ Newbie
 
Registered: Dec 2008
Location: Nampa, Idaho
Posts: 20

Original Poster
Rep: Reputation: 0
okay I will try that in the morning.

I got that command from nowhere, I was trying to figure it out as best I could on my own but as you can tell, I was getting nowhere


Thanks,
Hotrock3
 
  


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
does logrotate set size to 1048576 bytes by default if no size is specified? finebanana Red Hat 0 01-22-2009 01:10 AM
Block size of partition salmanucit Red Hat 4 04-10-2007 06:17 AM
Find Block size? cnm Linux - Newbie 4 11-15-2006 11:53 AM
size of block devices primo Solaris / OpenSolaris 1 12-20-2005 01:17 PM
block size ust Linux - Software 1 11-25-2005 12:45 AM


All times are GMT -5. The time now is 05:17 PM.

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