Results 1 to 6 of 6

Thread: 4K sector partition in Gentoo

  1. #1
    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.

  2. #2
    Join Date
    Nov 2009
    Posts
    758

    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.

  3. #3
    Join Date
    Nov 2009
    Posts
    792

    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.

  4. #4
    Join Date
    Apr 2009
    Posts
    970

    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.

  5. #5
    Join Date
    Apr 2009
    Posts
    994

    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.

  6. #6
    Join Date
    Nov 2009
    Posts
    865

    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.

Similar Threads

  1. Replies: 6
    Last Post: 30-05-2011, 08:13 PM
  2. Unable to mount root partition as read-write in gentoo
    By Ikrama in forum Operating Systems
    Replies: 5
    Last Post: 30-05-2011, 08:12 PM
  3. Hard Disk partition sector unreadable
    By Balamohan in forum Hardware Peripherals
    Replies: 3
    Last Post: 27-11-2009, 10:52 PM
  4. Sector By Sector Bypass For Safe Boot
    By Jaslein in forum Software Development
    Replies: 6
    Last Post: 28-11-2008, 06:21 AM
  5. Replies: 2
    Last Post: 10-09-2008, 12:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,247,253.32224 seconds with 17 queries