Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
12-17-2021, 09:27 AM
|
#1
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,937
|
Is this an optimum fstab setup for a SSD?
Hi.
I'm running Debian 11. I used auto partitioning with full encryption (LUKS).
What would be an ideal fstab for a Samsung 850 EVO 2TB 2.5in SATA SSD?
-----
My current fstab:
Code:
/dev/mapper/DXXXX1--vg/root ext4 noatime,commit=600,errors=remount-ro 0 1
UUID=3XXXXXXc-0XXb-4XX3-bXX7-9XXXXXXXXXX1 /boot ext2 noatime 0 2
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
-----
I've already ran these {unsure if all 4 commands were needed}:
Code:
sudo systemctl enable fstrim.timer && sudo systemctl start fstrim.timer
Code:
sudo systemctl daemon-reload
Code:
sudo update-initramfs -u -k all
-----
Thanks.
Last edited by linustalman; 12-17-2021 at 09:39 AM.
|
|
|
12-17-2021, 09:55 AM
|
#2
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,169
|
Misdirected reply.
Last edited by wpeckham; 12-17-2021 at 01:05 PM.
|
|
|
12-17-2021, 10:28 AM
|
#3
|
Senior Member
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,918
|
Quote:
Originally Posted by wpeckham
It is good to know that to obtain this TROJAN you would have to go outside of the REPO system and blindly install random software from IRC links.
How many people would DO that?
|
This appears to be a response to " News: Malware targetting arch on pinephone" ?
|
|
|
12-17-2021, 01:06 PM
|
#4
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,169
|
Quote:
Originally Posted by boughtonp
|
It was. No idea how that happened! Correcting now...
|
|
|
12-17-2021, 01:42 PM
|
#5
|
Senior Member
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: LMDE 6
Posts: 1,236
|
Optimum is debateable. Most of the information on all kinds of special settings for ssds was when they were in their infancy. These days even with nothing fancy they will statistically outlast the average computer. The fstrim is necessary but anything else likely isn't. They won't hurt, but won't be a game changer either.
I just do defaults on most disks. And defaults,errors=remount-ro for root.
Last edited by jmgibson1981; 12-17-2021 at 01:44 PM.
|
|
1 members found this post helpful.
|
12-18-2021, 09:28 AM
|
#6
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,169
|
"Optimum" will depend upon your storage usage and data as much as your FS options.
That said, I would start with a more SSD aware format in preference to EXT4: F2FS or BTRFS perhaps.
EXT4 is a good general choice when you do not know detail about your storage ahead, so popular with maintainers as a default. BTRFS is solid for a single drive case (a little iffy for RAID 5/6), and F2FS is made specifically FOR solid state and performs better than other options for most SSD cases.
Last edited by wpeckham; 12-18-2021 at 09:37 AM.
|
|
1 members found this post helpful.
|
12-18-2021, 09:30 AM
|
#7
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,937
Original Poster
|
Do the space types matter?
Would this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
...also work like this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
|
|
|
12-18-2021, 09:32 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,217
|
Quote:
Originally Posted by linustalman
Do the space types matter?
Would this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
...also work like this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
|
yes, they are identical. This is just to make it more readable.
|
|
1 members found this post helpful.
|
12-18-2021, 09:45 AM
|
#9
|
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 6,169
|
Quote:
Originally Posted by linustalman
Do the space types matter?
Would this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
...also work like this:
Code:
/dev/mapper/DXXXX1--vg-swap_1 none swap sw 0 0
|
There is a man page that discusses this file, the fields, the options (although it refers you to the file system pages for detail on options specific to the file system), and the formatting. Recommended!
|
|
|
12-18-2021, 09:45 AM
|
#10
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,937
Original Poster
|
Quote:
Originally Posted by pan64
yes, they are identical. This is just to make it more readable.
|
Ok, thanks. 
|
|
|
12-22-2021, 01:17 AM
|
#11
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,937
Original Poster
|
Should I replace the "/dev/mapper/" parts with "UUID=..."?
|
|
|
12-22-2021, 09:19 AM
|
#12
|
Member
Registered: Feb 2010
Posts: 416
|
Add discard after noatime?
|
|
|
12-24-2021, 02:39 AM
|
#13
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,937
Original Poster
|
Quote:
Originally Posted by biker_rat
Add discard after noatime?
|
Hi BR. Someone in Reddit said to drop the defaults option as it does nothing other than act as a placeholder for when there's nothing else in the options field.
|
|
|
12-24-2021, 02:41 AM
|
#14
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,217
|
Quote:
Originally Posted by linustalman
Hi BR. Someone in Reddit said to drop the defaults option as it does nothing other than act as a placeholder for when there's nothing else in the options field.
|
Would be better to read the man page.
|
|
1 members found this post helpful.
|
All times are GMT -5. The time now is 12:16 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|