answersLogoWhite

0

What is block in Linux?

Updated: 11/9/2022
User Avatar

Wiki User

14y ago

Best Answer

Block is a generic OS concept. Whenever OS wants to read data from the hard disk, file system tries to read a block of data instead of one character at a time. This improves the performance. (disk is a mechanical device)

Size of the block varies for each file system, user can specify the block size when a file system is created on the device. Creating a file system on Linux is equivalent to formating a device on Windows. When you format a device on windows you can specify the block size.

To create a file system on Linux mkfs command is used. The default block size is 4K but this can be modified with -b option.

For eg.

$ mkfs -t ext2 -b 2048 /dev/sdb1

this command will create ext2 file system on the device with block size 2048.

There is a limitation imposed on maximum size of block by ex2/3/4 file system. Maximum block size should be 4K and minimum is 512 bytes.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is block in Linux?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a Samba server in Linux?

Samba Server is the Linux implementation of SMB, or Server Message Block. It is utilized for network sharing of files and printers.


What is LBA LINUX?

LBA Linux is 1.) "Linux Business Alliance" -- a version of Linux out of Finland, formerly known as SOT Linux. Sot merged with another "flavor" to become "LBA Linux" 2.) lba -- initials used for "logical block address", something to do with formatting and using a hard drive.


Can Linux help me with my taxes?

Linux is an operating system and not a tax preparation software application. So to answer your question, no, Linux cannot help you with tax preparation. Try Turbo Tax or H&R Block for your tax preparation needs.


Is there a LiveUSB Linux distro that will boot on a PlayStation 3?

No, this used to be possible, but the mandatory automatic firmware updates Sony released block you from using the Yellow Dog Linux that was available for the PS3.


How can you block any site in Linux?

Edit the /etc/hosts file, and redirect the site's name (ie. www.google.com) to 127.0.0.1


Is there a live Linux distro that will boot from usb on a ps3?

This used to be possible, but the mandatory automatic firmware updates Sony released block you from using the Yellow Dog Linux that was available for the PS3. More info may be found at related link attached


What is a superblock Linux?

Super block is supposed to be the first sector of any file system that can be mounted on Linux operating system. It is supposed to contain information about the entire file system in that partition. It has magic number to specify which file system is used in that partition and other parameters to help read/write to that file system.


What is Linux Internals?

Linux Internals is a book about how Linux works.


What is the Linux world?

Linux World is the Linux Development & Training Center


What kind of courses are available in linux And what are the papers in Linux?

The courses available for Linux include Linux server, Linux desktop, bash shell, and many others.


Where can one obtain the latest Linux news?

One can obtain the latest Linux news on websites such as CRN, Linux Today or Distro Watch. One can also find news about Linux on Arch Linux and Linux Journal.


Does Linux use the kernel of Unix?

No, it is unix-based but Linux is a kernel not an operating system.Ubuntu,Linux Mint,Debian,and puppy Linux,ect. are OS's that use the Linux kernel.