LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 10: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, 10:55 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Depends on filesystem - check the mkfs manpage for the specific filesystem.
 
Old 03-27-2009, 11:11 PM   #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-27-2009, 11:21 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
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-27-2009 at 11:22 PM. Reason: misread the post
 
Old 03-27-2009, 11:27 PM   #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



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 12:10 AM
Block size of partition salmanucit Red Hat 4 04-10-2007 05:17 AM
Find Block size? cnm Linux - Newbie 4 11-15-2006 10:53 AM
size of block devices primo Solaris / OpenSolaris 1 12-20-2005 12:17 PM
block size ust Linux - Software 1 11-24-2005 11:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:01 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