You are not logged in.

#1 2015-01-05 21:03:38

h454n34
Member
Registered: 2015-01-05
Posts: 40

arch linux ssd trim problem?

Hello  arch forum;
Arch linux 32bit  install ssd full disk encryption.
Transactions;
http://blog.philippbeck.net/linux/archl … -grub2-69/
changes file;
cat /etc/lvm/lvm.conf

   issue_discards = 1

cat /etc/fstab

# /dev/mapper/main-root
UUID=dbdd5a88-6ed4-4e6f-936f-f9fb9bdb3e23	/         	ext4      	discard,rw,relatime,data=ordered	0 1

# /dev/sda1
UUID=9be0ccf1-9351-4666-86c8-8b3b6fea9188	/boot     	ext4      	discard,rw,relatime,data=ordered	0 2

# /dev/mapper/main-swap
UUID=dadc37a7-b478-47c0-ae59-c7071dc0b9ae	none      	swap      	defaults  	0 0

cat /etc/default/grub

GRUB_DEFAULT=0
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:main:allow-discards KEYTABLE=us LANG=en_US.UTF-8 elevator=noop"
# clocksource=acpi_pm"
# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="lvm part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=false

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
GRUB_DISABLE_LINUX_UUID=true
GRUB_DISABLE_SUBMENU=y
# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"

cat /etc/crypttab

# <name>       <device>                                     <password>              <options>
# home         UUID=b8ad5c18-f445-495d-9095-c9ec4f9d2f37    /etc/mypassword1
# data1        /dev/sda3                                    /etc/mypassword2
# data2        /dev/sda5                                    /etc/cryptfs.key
# swap         /dev/sdx4                                    /dev/urandom            swap,cipher=aes-cbc-essiv:sha256,size=256
# vol          /dev/sdb7                                    none
#main	UUID=dbdd5a88-6ed4-4e6f-936f-f9fb9bdb3e23   none 		    luks,discard

Install fstrim and enable services

#systemclt enable fstrim.service and start

Trim auto control

sudo dd if=/dev/urandom of=tempfile count=100 bs=512k oflag=direct             22:54:56 
100+0 records in
100+0 records out
52428800 bytes (52 MB) copied, 6.7312 s, 7.8 MB/s
sudo hdparm --fibmap tempfile                                                  22:58:17 

tempfile:
 filesystem blocksize 4096, begins at LBA 0; assuming 512 byte sectors.
 byte_offset  begin_LBA    end_LBA    sectors
           0  222808064  222810111       2048
     1048576  222654464  222656511       2048
     2097152  223555584  223559679       4096
     4194304  223682560  223739903      57344
    33554432  223657984  223674367      16384
    41943040     458752     475135      16384
    50331648     720896     724991       4096
sudo hdparm --read-sector 222808064 /dev/sda                                   22:59:43 

/dev/sda:
reading sector 222808064: succeeded
6d81 6465 0b31 e064 f33c 8c33 0197 01b5
5a68 57a4 46de c35d f401 28b4 1fe0 3d73
cfdd b7dd df91 7c49 d9db 74bd 1d84 aa1d
9b68 4a2f ccb0 dcb9 7231 9c15 9053 bca1
c7fc 907c 531c 8dd8 194b 3464 d638 0fa4
a90f b291 68ff e650 361b 4b8a 9e2a a030
4b9c b1a3 bd3b 9ed7 ca85 8862 5b84 afc8
07d2 eb1c 2349 2204 a4cd 4389 6b7a 5575
9bb5 08cf d4df 79ea 2138 1ddd 7e7a b374
d174 eb75 ff35 3815 892b 097b cd31 54dd
7ec2 cffc 129e 845f d4ae 5728 31c6 c3c0
204b 7085 e5e3 8864 954c eebd 6995 1199
b5e6 4f11 37ce e1ba 86ee 10a3 526f ca3a
ec33 fd39 7db0 e75b ed66 f084 4bd7 f377
f7df 3e0c d3fd f36b 0317 2e4d eafd 17b5
f296 5b66 8d89 3ceb e4b7 dd6e 2f96 06d2
2f06 6a7c 8a78 772e 5871 324c d1e9 b079
9a9e 1b56 3df5 cc9d 60e1 586e 4371 60b9
8e9d 284a a8d7 f840 1669 fd79 d303 e2db
6baa 1c14 2f9f 6cd9 595b 33c5 c747 0e1d
965a b837 8b01 6c02 6970 c92f 0b96 b51e
5232 0415 15eb a611 6192 fc6b 0b42 b0ad
3b76 9688 403a 07f5 17ad 730b 4026 c6db
69d5 8959 7d5a 96a0 6d37 9bc3 c8de e65a
058b f6f8 2211 c4c7 b03f 7bc8 a028 9366
df75 1f4e 8c4a 48d2 85d0 4d49 26f6 f0e4
5a1e fd2c e637 2706 d090 69ca 1919 faf9
0bfe ea48 9d23 18f6 9ec5 579c 8155 f6cd
7a2a ae7c a5cb 85e0 36d6 0906 23d3 54a0
d3f1 0d75 4042 73e5 4b8d f6e1 605b 607b
ee22 76ba 1108 d3a8 46db 4086 aaf4 606b
d15f 99ed c9e9 23cc 6286 a952 d35f 9609
sudo rm tempfile
sync
sudo hdparm --read-sector 222808064 /dev/sda                                   23:01:01 

/dev/sda:
reading sector 222808064: succeeded
6d81 6465 0b31 e064 f33c 8c33 0197 01b5
5a68 57a4 46de c35d f401 28b4 1fe0 3d73
cfdd b7dd df91 7c49 d9db 74bd 1d84 aa1d
9b68 4a2f ccb0 dcb9 7231 9c15 9053 bca1
c7fc 907c 531c 8dd8 194b 3464 d638 0fa4
a90f b291 68ff e650 361b 4b8a 9e2a a030
4b9c b1a3 bd3b 9ed7 ca85 8862 5b84 afc8
07d2 eb1c 2349 2204 a4cd 4389 6b7a 5575
9bb5 08cf d4df 79ea 2138 1ddd 7e7a b374
d174 eb75 ff35 3815 892b 097b cd31 54dd
7ec2 cffc 129e 845f d4ae 5728 31c6 c3c0
204b 7085 e5e3 8864 954c eebd 6995 1199
b5e6 4f11 37ce e1ba 86ee 10a3 526f ca3a
ec33 fd39 7db0 e75b ed66 f084 4bd7 f377
f7df 3e0c d3fd f36b 0317 2e4d eafd 17b5
f296 5b66 8d89 3ceb e4b7 dd6e 2f96 06d2
2f06 6a7c 8a78 772e 5871 324c d1e9 b079
9a9e 1b56 3df5 cc9d 60e1 586e 4371 60b9
8e9d 284a a8d7 f840 1669 fd79 d303 e2db
6baa 1c14 2f9f 6cd9 595b 33c5 c747 0e1d
965a b837 8b01 6c02 6970 c92f 0b96 b51e
5232 0415 15eb a611 6192 fc6b 0b42 b0ad
3b76 9688 403a 07f5 17ad 730b 4026 c6db
69d5 8959 7d5a 96a0 6d37 9bc3 c8de e65a
058b f6f8 2211 c4c7 b03f 7bc8 a028 9366
df75 1f4e 8c4a 48d2 85d0 4d49 26f6 f0e4
5a1e fd2c e637 2706 d090 69ca 1919 faf9
0bfe ea48 9d23 18f6 9ec5 579c 8155 f6cd
7a2a ae7c a5cb 85e0 36d6 0906 23d3 54a0
d3f1 0d75 4042 73e5 4b8d f6e1 605b 607b
ee22 76ba 1108 d3a8 46db 4086 aaf4 606b
d15f 99ed c9e9 23cc 6286 a952 d35f 9609

where the problem?

Last edited by h454n34 (2015-01-05 21:25:47)

Offline

#2 2015-01-05 21:10:52

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: arch linux ssd trim problem?

What problem? You haven't mentioned one.


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#3 2015-01-05 21:13:38

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: arch linux ssd trim problem?

Is this a test?

The only problem I can see is people posting blog guides to installing Arch and then coming here asking for help...


Jin, Jîyan, Azadî

Offline

#4 2015-01-05 21:19:58

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

slithery wrote:

What problem?

Trim enable.

Last edited by h454n34 (2015-01-05 21:21:22)

Offline

#5 2015-01-05 21:29:27

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: arch linux ssd trim problem?

What makes you think that it isn't already enabled?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#6 2015-01-05 21:32:31

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: arch linux ssd trim problem?

Not an Arch discussion; read the wiki on trim and LUKS.

Moving to NC....


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2015-01-05 21:43:47

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: arch linux ssd trim problem?

What is the output of:

# hdparm -I /dev/sda | grep TRIM

https://wiki.archlinux.org/index.php/SS … IM_Support


Jin, Jîyan, Azadî

Offline

#8 2015-01-05 21:47:58

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

slithery wrote:

What makes you think that it isn't already enabled?

delete the tempfile file
You do not need to be byte value noop?
example

sudo hdparm --read-sector 222808064 /dev/sda                                   23:01:01 

/dev/sda:
reading sector 222808064: succeeded
0000 0000 0000 0000 0000 0000 0000 0000

Last edited by h454n34 (2015-01-05 21:53:18)

Offline

#9 2015-01-05 21:48:55

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

Head_on_a_Stick wrote:

What is the output of:

# hdparm -I /dev/sda | grep TRIM

https://wiki.archlinux.org/index.php/SS … IM_Support

	   *	Data Set Management TRIM supported (limit 1 block)

Offline

#10 2015-01-05 21:50:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: arch linux ssd trim problem?

h454n34 wrote:

You do not need to be byte value noop?

No.

Having TRIM enabled doesn't mean that unused blocks are zeroed out. It just lets the SSD controller know that the block is unused so the next time it writes to that block it doesn't have to read the contents first.

Last edited by Slithery (2015-01-05 21:55:06)


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#11 2015-01-05 21:56:42

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

I understand how to open that? (Trim enable)

Offline

#12 2015-01-05 22:03:06

dice
Member
From: Germany
Registered: 2014-02-10
Posts: 413

Re: arch linux ssd trim problem?

When using luks you have to keep in mind, that there is a luks header at the beggining of /dev/sda. You need to offset the read bytes according to the header length.

EDIT: And notice that the guide you were following is from 2012. A lot of things have changed since then. You really should not do that.

Last edited by dice (2015-01-05 22:07:23)


I put at button on it. Yes. I wish to press it, but I'm not sure what will happen if I do.  (Gune | Titan A.E.)

Offline

#13 2015-01-05 22:17:00

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: arch linux ssd trim problem?


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#14 2015-01-05 22:59:33

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

I think the problem you control cpu.

processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 37
model name	: Intel(R) Pentium(R) CPU        P6100  @ 2.00GHz
stepping	: 5
microcode	: 0x4
cpu MHz		: 1466.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
initial apicid	: 0
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm pcid popcnt lahf_lm arat dtherm
bugs		:
bogomips	: 3992.72
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 6
model		: 37
model name	: Intel(R) Pentium(R) CPU        P6100  @ 2.00GHz
stepping	: 5
microcode	: 0x4
cpu MHz		: 1866.000
cache size	: 3072 KB
physical id	: 0
siblings	: 2
core id		: 2
cpu cores	: 2
apicid		: 4
initial apicid	: 4
fdiv_bug	: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 11
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx rdtscp lm constant_tsc arch_perfmon pebs bts xtopology nonstop_tsc aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm pcid popcnt lahf_lm arat dtherm
bugs		:
bogomips	: 3992.72
clflush size	: 64
cache_alignment	: 64
address sizes	: 36 bits physical, 48 bits virtual
power management:

My cpu 64bit
new laptop
To install the old ssd.
To learn thanks.
How can I switch a 32-bit installation to a 64-bit one?

Last edited by h454n34 (2015-01-05 23:04:14)

Offline

#15 2015-01-05 23:58:30

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: arch linux ssd trim problem?

h454n34 wrote:

How can I switch a 32-bit installation to a 64-bit one?

Reinstall.


Matt

"It is very difficult to educate the educated."

Offline

#16 2015-01-06 00:09:03

h454n34
Member
Registered: 2015-01-05
Posts: 40

Re: arch linux ssd trim problem?

mrunion wrote:
h454n34 wrote:

How can I switch a 32-bit installation to a 64-bit one?

Reinstall.

Thanks you...

Offline

Board footer

Powered by FluxBB