Align USB flash drives to 4096 bytes as well such as SSDs? Check in Linux?
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thank you for refreshing my knowledge on SSDs. I read about these some time ago but of course I forgot.
Quote:
Originally Posted by rknichols
In fact, enabling automatic TRIM can seriously hurt performance. Prior to SATA 3.1, TRIM was defined as a non-queueable command, so using the "discard" (automatic TRIM) option can cause slow write performance. Scheduling a once-a-day fstrim operation a a cron job might be preferable.
I have a SATA 1.0 motherboard with a SATA 3.0 SSD. The default in Windows 7 is TRIM enabled (the last time I checked). I don't know what thta means, compared to your linked post to Patrick Nagel's specific case. Maybe more information besides that particular case in that blog post?
For SSDs, you want to avoid layouts that would have an erase block, which might be 256KB, that spans more than one filesystem. It's not for performance reasons, but for data integrity. You want to avoid operations in one filesystem causing part of another filesystem to be copied and reallocated. That's why modern partitioning tools default to 1-Megabyte alignment for partitions.
So the bottom line is you not only suggest to align for 4096 bytes in partitions (for SSDs) but for whole megabytes as well? Where can I read about this issue more? Many thanks.
I doubt you'd find much improvement. USB flash drives tend to be a collection of weird stuff going on inside. Not sure I'd ever attempt to fool with them. They may mount like a scsi but aren't internally a true drive. Maybe CF or SD flash may be more ISO like.
Use MiB alignment for modern operating systems. This setting aligns partitions to start and end on precise mebibyte (1,048,576 byte) boundaries. MiB alignment provides enhanced performance when used with RAID systems and with Solid State Drives, such as USB flash drives.
If you want, do as I suggested. Prove to us there is some benefit to this task. Prove that you can really align any and all usb flash drives. Prove to me that I am wrong about how usb flash drives are produced.
If you want, do as I suggested. Prove to us there is some benefit to this task.
Quote:
Originally Posted by jefro
There is a hardware issue with usb flash drives. They are not all the same. They were never intended to replicate a hard drive.
Quote:
Originally Posted by permissive
About USB sticks were never intended to replace HDDs? They have come a long time, definitely. Think about USB3 sticks, certified to run Windows 8 from it.
Anyways, what is the default way you should format a USB stick? Windows? Linux? Special application?
With this recommendation - http://www.pendrivelinux.com/restori...key-partition/ - I formatted a stick using the SD Card association tool - it got totally weird results: instead of 4k, it got 32k sectors, instead of 1 MiB free space at start, it got 4 MiB space. Maybe it was bad advice from pendrivelinux.com?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.