LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices



Reply
 
Search this Thread
Old 03-27-2007, 06:56 AM   #1
salmanucit
Member
 
Registered: Jul 2004
Posts: 54

Rep: Reputation: 15
Block size of partition


Hi,
I have red hat enterprise advance server 4 installed will default configurations. File system is ext3
1) How could i find than what is block size of my each partition.
2) How much big file i could sotore in on my faile system

Regards
 
Old 03-28-2007, 04:11 PM   #2
fourchannel
LQ Newbie
 
Registered: Jul 2006
Location: Tuscaloosa, AL - USA
Distribution: Gentoo
Posts: 29

Rep: Reputation: 15
Hi first off you need to know what block device the partition resides on.

For my system, to get a listing of the active partitions, I can run the command "df -h":

Code:
@lith.ath.cx 15:02 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3             8.9G  4.9G  3.6G  58% /
tmpfs                  62M     0   62M   0% /dev/shm
/dev/hda1             183M   27M  147M  16% /boot
/dev/hdb1              36G   27G  6.7G  81% /home/limewire/Shared
My root partition, which is ext3, is the top level / , listed as "/dev/hda3"

Now that I know where my partition is, I can run "tune2fs -l" to give me some info about that ext2/3 partition. I will use "tune2fs -l | grep -i 'block size'" specifically, to give me just the block size.

On my system, and probably yours too, you will need to become root to run this.

Code:
root@lith.ath.cx 15:05 ~]# tune2fs -l /dev/hda3 | grep -i 'block size'
Block size:               4096
For the file size:

Wikipedia (ext3) -- "Max file size 16GiB 2TiB"

Hope that helps!
 
Old 04-09-2007, 02:42 PM   #3
raamana
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Problem accessing info on Block Size

While trying to find the block size, I simply used command as shown below, as root:
Code:
reddylap:/home/raamana # tune2fs -l /dev/hda1
tune2fs 1.39 (29-May-2006)
tune2fs: Bad magic number in super-block while trying to open /dev/hda1
Couldn't find valid filesystem superblock.

It gives this strange mesg. Is something wrong? How do I find my block size?

Thanks in advance,
Pradeep
 
Old 04-09-2007, 10:58 PM   #4
fourchannel
LQ Newbie
 
Registered: Jul 2006
Location: Tuscaloosa, AL - USA
Distribution: Gentoo
Posts: 29

Rep: Reputation: 15
looks like your /dev/hda1 is not an ext2/3 partition.

Try running this command (probably have to as root), and post what the output says; the command lists the partition table.

Code:
fdisk -l /dev/hda
 
Old 04-10-2007, 06:17 AM   #5
raamana
LQ Newbie
 
Registered: Apr 2007
Posts: 2

Rep: Reputation: 0
Code:
reddylap:/home/raamana # fdisk -l

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1        1307    10490445    7  HPFS/NTFS
/dev/hda2            1308        4441    25173855    c  W95 FAT32 (LBA)
/dev/hda3            4442        4685     1959930   82  Linux swap / Solaris
/dev/hda4   *        4686        7296    20972857+  83  Linux
You are right!

And it works, if I use
Code:
tune2fs -l /dev/hda4
Thanks for the reply... keep it up.
 
  


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
block size ust Linux - Software 1 11-25-2005 12:45 AM
mk2efs ext3 block count differs on same partition size tkmbe Linux - General 1 06-29-2005 10:23 AM
file system size larger than fysical size:superblock or partition table corrupt klizon Linux - General 0 06-18-2004 05:18 PM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 01:55 PM
fdisk partition size differs from mounted partition size jimieee Linux - General 3 10-15-2003 04:10 AM


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