You are not logged in.

#1 2011-11-16 18:00:43

jlacroix
Member
Registered: 2009-08-16
Posts: 576

[SOLVED] Need Some Tips on Solid State Drive

Hello everyone. I need a few tips on my solid state drive, to make sure I have everything configured correctly, and if there is anything I should change. I followed the Wiki, and took a lot of time to make it as perfect as I can, but I guess I need a little sanity check.

First, I followed the Wiki to align my SSD. Here is the output of fdisk -lu:

Disk /dev/sda: 256.1 GB, 256060514304 bytes
255 heads, 63 sectors/track, 31130 cylinders, total 500118192 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 identifier: 0x000d46a6

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      206847      102400   83  Linux
/dev/sda2          206848    21178367    10485760   82  Linux swap / Solaris
/dev/sda3        21178368    63121407    20971520   83  Linux
/dev/sda4        63121408   500117503   218498048   83  Linux

Is that aligned properly? I've heard that all you have to do is make the first partition start on cylinder 2048 but just want to be sure.

Second, I read in the Wiki to make /tmp mounted in RAM. Here is my fstab:

# 
# /etc/fstab: static file system information
#
# <file system>	<dir>	<type>	<options>					<dump>	<pass>
/dev/sda1 	/boot 	ext2 	defaults 					0 	1
/dev/sda2 	swap 	swap 	defaults 					0 	0
/dev/sda3 	/ 	ext4 	defaults,noatime,discard 			0 	1
/dev/sda4 	/home 	ext4 	defaults,noatime,discard,user_xattr 			0 	1
none		/tmp	tmpfs	nodev,nosuid,noatime,size=1000M,mode=1777	0	0

Does that look good, and/or should I add anything else to it?

Last edited by jlacroix (2011-11-17 00:38:06)

Offline

#2 2011-11-16 20:49:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: [SOLVED] Need Some Tips on Solid State Drive

Been too long since I've used MBR - I use GPT so it's auto aligned via gdisk, but what you are showing looks fine to me.  Your fstab looks fine; for comparison here is mine:

$ cat /etc/fstab
tmpfs /tmp tmpfs nodev,nosuid,size=7G 0 0
/dev/dvd	/media/dvd  auto    ro,user,noauto,unhide   0      0

# SSD ; root=sdb1 ; home=sdb2
/dev/disk/by-uuid/61001fcb-641e-4f69-bfbf-f7e346f64263	/						ext4    defaults,noatime,discard	0	1
/dev/disk/by-uuid/7301fd9e-6db3-42d1-bdf6-d472ea582a60	/home				ext4    defaults,noatime,discard	0	2

# HDD ; var=sda2 ; boot=sda5 ; data=sda7
/dev/disk/by-uuid/bc42df3b-db11-48fa-8ddb-02cc0e1afcf5	/var				ext4	defaults,relatime	0	1
/dev/disk/by-uuid/0fc5ed20-0b1e-4e26-860c-6e63dd3a35ea	/boot				ext3	defaults,relatime	0	1
/dev/disk/by-uuid/44361d8d-71dc-40df-9c47-781509166094	/media/data	ext4	defaults,relatime	0	1

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2011-11-17 00:37:39

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Need Some Tips on Solid State Drive

graysky wrote:

Been too long since I've used MBR - I use GPT so it's auto aligned via gdisk, but what you are showing looks fine to me.  Your fstab looks fine; for comparison here is mine:

$ cat /etc/fstab
tmpfs /tmp tmpfs nodev,nosuid,size=7G 0 0
/dev/dvd	/media/dvd  auto    ro,user,noauto,unhide   0      0

# SSD ; root=sdb1 ; home=sdb2
/dev/disk/by-uuid/61001fcb-641e-4f69-bfbf-f7e346f64263	/						ext4    defaults,noatime,discard	0	1
/dev/disk/by-uuid/7301fd9e-6db3-42d1-bdf6-d472ea582a60	/home				ext4    defaults,noatime,discard	0	2

# HDD ; var=sda2 ; boot=sda5 ; data=sda7
/dev/disk/by-uuid/bc42df3b-db11-48fa-8ddb-02cc0e1afcf5	/var				ext4	defaults,relatime	0	1
/dev/disk/by-uuid/0fc5ed20-0b1e-4e26-860c-6e63dd3a35ea	/boot				ext3	defaults,relatime	0	1
/dev/disk/by-uuid/44361d8d-71dc-40df-9c47-781509166094	/media/data	ext4	defaults,relatime	0	1

Thank you for the response. I'll go ahead and mark this solved. I just needed a sanity check, and if you think it's fine, then I'm happy. smile

But if anyone has any other tips/tweaks, feel free to share them, as I'm making a new Clonezilla image on this laptop and wouldn't mind tweaking it a bit.

Offline

#4 2011-11-17 04:52:27

altercation
Member
From: Seattle
Registered: 2011-05-15
Posts: 136
Website

Re: [SOLVED] Need Some Tips on Solid State Drive

I have to recommend gdisk / sgdisk as well. Here's an sgdisk snippet I use on my own SSD:

sgdisk -a 2048 -o /dev/sda # new gpt disk 2048 alignment

It's great to be able to handle alignment this easily.

Last edited by altercation (2011-11-17 04:52:41)


Ethan Schoonover
Precision Colors - http://ethanschoonover.com/solarized

Offline

#5 2011-11-17 15:13:26

jlacroix
Member
Registered: 2009-08-16
Posts: 576

Re: [SOLVED] Need Some Tips on Solid State Drive

altercation wrote:

I have to recommend gdisk / sgdisk as well. Here's an sgdisk snippet I use on my own SSD:

sgdisk -a 2048 -o /dev/sda # new gpt disk 2048 alignment

It's great to be able to handle alignment this easily.

What exactly would that do? Should I run that on my system?

Offline

#6 2011-11-18 03:08:42

altercation
Member
From: Seattle
Registered: 2011-05-15
Posts: 136
Website

Re: [SOLVED] Need Some Tips on Solid State Drive

jlacroix wrote:
altercation wrote:

I have to recommend gdisk / sgdisk as well. Here's an sgdisk snippet I use on my own SSD:

sgdisk -a 2048 -o /dev/sda # new gpt disk 2048 alignment

It's great to be able to handle alignment this easily.

What exactly would that do? Should I run that on my system?

Only if you are using GUID partition table (GPT) in lieu of the more common MBR scheme. GPT is used with EFI systems (and some BIOS systems). I'd skip it for now unless you have need, it's bleeding edge, emphasis on bleeding.


Ethan Schoonover
Precision Colors - http://ethanschoonover.com/solarized

Offline

Board footer

Powered by FluxBB