Go Back   TechArena Community > Software > Operating Systems
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



4K sector partition in Gentoo

Operating Systems


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-06-2011
Member
 
Join Date: Apr 2011
Posts: 64
4K sector partition in Gentoo
  

Well recently I have purchased a laptop with the 4K sector with Advanced Format Drive. I know that we need to use drive really carefully. All the partition should be start with the multiple of the 8. But still I am unable to deal with the logical partition. Is the logical partition should be start with sector of the multiple of 8? Should I use ext4 or ext3? Let me know if you are having any specific information on this particular matter. Thanks a lot in advance.

Reply With Quote
  #2  
Old 02-06-2011
Member
 
Join Date: Nov 2009
Posts: 754
Re: 4K sector partition in Gentoo

Looking at the matter at a first glance you can do emerging parted by using the following piece of code.
Code:
# parted --script /dev/sda mklabel gpt 
# parted --align=min --script ${1} mkpart primary 0% 100% 
# parted --script /dev/sda print
The mklabel gpt would create a GPT style partition table with the bigger disk space. ?align option would be helpful to align the partition according to requirement of yours.
Reply With Quote
  #3  
Old 02-06-2011
Member
 
Join Date: Nov 2009
Posts: 787
Re: 4K sector partition in Gentoo

In Gentoo file system are using 4K blocksizes. All the storage layers which is below the filesystem have to be 4K aligned so it would end up with the 4K aligned on the physical disk of the hard disk of yours. you need to check the layout of the partition with cfdisk and you need to verify the 4K alignment with sfdisk. You should specify the size of the block into the bytes and the valid size are 1024, 2048 and 4096 bytes each block.
Reply With Quote
  #4  
Old 02-06-2011
Member
 
Join Date: Apr 2009
Posts: 967
Re: 4K sector partition in Gentoo

Well I let you know that the parted thing did not work for me at all. In the scenario of sector multiple of 8 is working with the alignment of 4K. one sector would consist of 512 bytes and 8 sector make 4K. there is no issue of container which is associated with the logical partition. You should have align _all_ partitions which would contain the actual file system or swap. I am using GPT partition so that I am using parted on the system of mine.
Reply With Quote
  #5  
Old 02-06-2011
Member
 
Join Date: Apr 2009
Posts: 990
Re: 4K sector partition in Gentoo

If you are supposed to neglect the above mentioned thing than mke2fs block-size would heuristically determined the file system size and the expected usage of the file system. In case the block size is seems to be negative then mke2fs would use the heuristics to identify the proper block size with the condition that block size of the minimum block size. The information which I have mentioned over here would be useful for the blocksize which are of the multiple of 2K.
Reply With Quote
  #6  
Old 03-06-2011
Member
 
Join Date: Nov 2009
Posts: 861
Re: 4K sector partition in Gentoo

From past long years hardware devices was using 512 byte sectors. There was no particular reason why filesystem was using such a small sector. It is well known the small sector would need more metadata in order to track the number of bytes. So there is trade of is existing between the creation of the sector and memory space which has been waste by the metadata. Or making the sector so big so there would be unacceptable amount of the space.
Reply With Quote
Reply

  TechArena Community > Software > Operating Systems
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "4K sector partition in Gentoo"
Thread Thread Starter Forum Replies Last Post
How to configure the Kernel in Gentoo without boot partition Ikrama Operating Systems 6 30-05-2011 08:13 PM
Unable to mount root partition as read-write in gentoo Ikrama Operating Systems 5 30-05-2011 08:12 PM
Hard Disk partition sector unreadable Balamohan Hardware Peripherals 3 27-11-2009 10:52 PM
Sector By Sector Bypass For Safe Boot Jaslein Software Development 6 28-11-2008 06:21 AM
How To Manage Hard Disk Partition Via Free EASEUS Partition Manager Home Edition V1.6.4 fumble Tips & Tweaks 2 10-09-2008 12:55 PM


All times are GMT +5.5. The time now is 06:14 AM.