LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-07-2021, 02:22 AM   #1
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 160

Rep: Reputation: Disabled
Problem with encrypted ntfs partition?


On my laptop i have two disks - ssd and hdd. On the hdd i have encrypted ntfs partition with veracrypt under Windows. I am experience some slow performance on this partition: i have few virtalbox disks that start very slow, and also deleting files on that partition is slow. If i run 'fdisk -l' i see errors like this: 'Partition 1 does not start on physical sector boundary.' I am wondering what this errors mean and if this is not the reason for the slow performance i am experience on that partition?

Code:
Disk /dev/sda: 111.8 GiB, 120034123776 bytes, 234441648 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xfa195d4a

Device     Boot     Start       End   Sectors  Size Id Type
/dev/sda1  *         2048    104447    102400   50M  7 HPFS/NTFS/exFAT
/dev/sda2          104448 101363828 101259381 48.3G  7 HPFS/NTFS/exFAT
/dev/sda3       101365760 102399999   1034240  505M 27 Hidden NTFS WinRE
/dev/sda4       102400000 234440703 132040704   63G  5 Extended
/dev/sda5       102402048 103426047   1024000  500M 83 Linux
/dev/sda6       103428096 234440703 131012608 62.5G 83 Linux


Disk /dev/sdb: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Disk model: HGST HTS541010B7
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0xf1528e22

Device     Boot     Start        End    Sectors   Size Id Type
/dev/sdb1  *         2048     206847     204800   100M  7 HPFS/NTFS/exFAT
/dev/sdb2          206848  104857599  104650752  49.9G  7 HPFS/NTFS/exFAT
/dev/sdb3       104857600 1953523711 1848666112 881.5G  7 HPFS/NTFS/exFAT


Disk /dev/mapper/rootfs: 62.5 GiB, 67061678080 bytes, 130979840 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/veracrypt2: 881.5 GiB, 946516787200 bytes, 1848665600 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x6e697373

Device                       Boot      Start        End    Sectors   Size Id Type
/dev/mapper/veracrypt2-part1      1936269394 3772285809 1836016416 875.5G 4f QNX4.x 3rd part
/dev/mapper/veracrypt2-part2      1917848077 2462285169  544437093 259.6G 73 unknown
/dev/mapper/veracrypt2-part3      1818575915 2362751050  544175136 259.5G 2b unknown
/dev/mapper/veracrypt2-part4      2844524554 2844579527      54974  26.9M 61 SpeedStor

Partition 1 does not start on physical sector boundary.
Partition 2 does not start on physical sector boundary.
Partition 3 does not start on physical sector boundary.
Partition 4 does not start on physical sector boundary.
Partition table entries are not in disk order.
 
Old 04-07-2021, 10:26 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,040

Rep: Reputation: Disabled
This means your partitions were created with some older partitioning software (which required manual setup for alignment) and now your partitions are not aligned, slowing down disk access. Put the keywords "partition alignment" inot your favorite search engine and there will be no shortage of information an tutorials.
 
Old 04-08-2021, 06:24 AM   #3
peter7089
Member
 
Registered: May 2016
Distribution: MX Linux
Posts: 160

Original Poster
Rep: Reputation: Disabled
I tried to use GParted to align the partition, but it doesn't recognize the file system and resize/move option is not available. I will need to buy new hard disk, move the data - around 800GB, delete the partition and create new luks encrypted partition. I am just wondering what will be the better option: to create on big encrypted partition or multiple smaller partitions.
The pros for the first option is that the partition will fill slower with data and fragmentation will be less likely to happen, the cons will be if i need to delete the partition i will have to move lots of data.
The pros for the second option is that if i need to delete a partition i will not have to move lots of data, and the cons is that the partitions will fill with data faster and fragmentation is more likely to happen.
 
Old 04-08-2021, 06:36 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,040

Rep: Reputation: Disabled
It sounds like you have no backup?

Computer users fall into two groups: those that do backups those that have never had a hard drive fail. In which group are you?
 
Old 04-08-2021, 07:38 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 9,302

Rep: Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056Reputation: 2056
Quote:
Partition 1 does not start on physical sector boundary.'
That's pretty common and rarely creates any problem in my experience. If you put that phrase in a search engine, you should find countless explaining reasons for it.

Quote:
I tried to use GParted to align the partition, but it doesn't recognize the file system and resize/move option is not available
Did you unmount whichever partition this was before trying to use GParted? What were the results when you tried using the proprietary windows tools such as Disk Management on your windows partitions?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Two Tips to Keep Your Phone's Encrypted Messages Encrypted LXer Syndicated Linux News 0 05-02-2016 11:21 PM
Shrink partition (LVM encrypted PVs + encrypted LVs) gedaj Linux - Newbie 2 05-22-2013 03:44 AM
Resizable encrypted LVM requiring just one password on boot (encrypted volume group)? Nyyr Linux - Software 9 01-24-2013 05:52 AM
accessing encrypted ntfs partition from linux emekadavid Linux - General 6 08-04-2012 01:36 PM
ran mkfs.vfat over top ntfs partition... any way to restore ntfs partition info? oryan_dunn Linux - Hardware 8 10-14-2010 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:00 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
Open Source Consulting | Domain Registration