You are not logged in.

#1 2016-10-16 20:02:34

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Change the logical block size

My hard drive has a physical block size of 4096 and a logical block size of 512.
Is it possible to change the logical block size to 4096?

I've tried

mkfs.ext4 -F -b 4096 /dev/sdb1

It made a partition, but it didn't change the logical block size.

Is this even possible?

Offline

#2 2016-10-16 20:12:41

frostschutz
Member
Registered: 2013-11-15
Posts: 1,654

Re: Change the logical block size

Unless you hack the firmware of the drive itself [or use an USB enclosure that uses the wrong blocksize for its emulation], I'd guess the answer would be no.

It also shouldn't matter. Just align your partitions to MiB boundaries, and most filesystems already use 4K blocks as minimum unit regardless.

Offline

#3 2016-10-18 21:07:01

TheChosenOne
Member
Registered: 2012-09-27
Posts: 130

Re: Change the logical block size

Thanks. I'll try that.

Offline

Board footer

Powered by FluxBB