Sada je: 20 ruj 2019, 15:04.
Diskusije o hardveru i driverima pod Linuxom.

Moderator/ica: Moderatori/ce

Možda malo pomogne
https://forums.linuxmint.com/viewtopic.php?t=163939

EDIT by Vl@do: nije ti radio link dok nisam dodao dvotočku iza "https". :zvizdi
Avatar
Postovi: 575
Postovi: 575
Pridružen/a: 25 stu 2011, 17:12
Lokacija: vanjski otok
Podijelio/la zahvalu: 5 puta
Primio/la zahvalu: 6 puta
Spol: M
OS: Manjaro Mate,Mint 17.3
oldman je napisao/la:Možda malo pomogne
https://forums.linuxmint.com/viewtopic.php?t=163939

EDIT by Vl@do: nije ti radio link dok nisam dodao dvotočku iza "https". :zvizdi


Iz vezanog članka:



TRIM is important for this sole reason: the more LBA entries (or LBA ranges) the FTL map contains, generally speaking, the worse the SSD performs.

Without TRIM, the SSD’s FTL map, over time, will lack any indication of available LBA ranges. This in turn forces garbage collection (a.k.a. GC) to be used instead, which is significantly less efficient than the OS (or application) telling the drive “I’m done with these LBAs”. GC has the major downside of halting all I/O to the drive while its internal calculations/analysis are performed (else risk marking an LBA or LBA region as unused at the same time as the filesystem/OS requesting use of that LBA for a legitimate file). The GC implementation and its behaviour varies between drive models and drive vendors, including some vendors going as far as performing actual filesystem-level analysis on the drive itself (something I feel is extremely risky).


Ukratko, ukoliko ne radite TRIM ili nemate discard , prije ili kasnije će se zapuniti FTL mapa na SSD-u koja govori koji prostor je slobodan, tada će se pokrenuti GC (garbage collector tj. kolektor smeća) koji je bitno neefikasniji te zaustavlja sve diskovne operacije dok ne završi.
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 9895
Moderator
Postovi: 9895
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 158 puta
Primio/la zahvalu: 269 puta
Spol: Y
OS: utuntu 17.04
@ Vlado, hvala !
Avatar
Postovi: 575
Postovi: 575
Pridružen/a: 25 stu 2011, 17:12
Lokacija: vanjski otok
Podijelio/la zahvalu: 5 puta
Primio/la zahvalu: 6 puta
Spol: M
OS: Manjaro Mate,Mint 17.3
shrike je napisao/la:
bertone je napisao/la:Kako je meni lijepo... ja ništa ne osjetim :-D


Da provrtiš fstrim bi osjetio :D Iako, možda ti distra ima cron neki koji to vrti automatski pa misliš da ti ne treba.

Mislim da se od početka ne razumijemo :-D ... tu i tamo (možda jednom mjesečno ili jednom u dva mjeseca) odradim fstrim ručno... moje je pitanje bilo zašto imate potrebu automatskog trima na dnevnoj ili tjednoj bazi i što dobijete time (jel' tolika muka napisati naredbu za trim i opaliti enter) :hmm
[+ Prikaži] Klik
ThinkPad T440p
Intel Core i5-4300M
Intel HD Graphics 4600
16GB DDR3L
1xSanDisk X400 512 GB & 1x240GB Intel 2500 Pro
15.6" FHD IPS anti-glare
6 & 9 cell Li-Ion battery
OS: kako kada
Slika: dio kolekcije

***

ZEN
"Charlie. What are you thinking?"
"I'm thinking about what I want and what I need."
"What do you want?"
"I want a peaceful soul."
"And what do you need?"
"I need a bigger gun."
Avatar
Site Admin
Postovi: 10242
Site Admin
Postovi: 10242
Pridružen/a: 01 kol 2012, 12:39
Podijelio/la zahvalu: 573 puta
Primio/la zahvalu: 747 puta
Spol: M
OS: LinuxMint Cinnamon
bertone je napisao/la:
shrike je napisao/la:
bertone je napisao/la:Kako je meni lijepo... ja ništa ne osjetim :-D


Da provrtiš fstrim bi osjetio :D Iako, možda ti distra ima cron neki koji to vrti automatski pa misliš da ti ne treba.

Mislim da se od početka ne razumijemo :-D ... tu i tamo (možda jednom mjesečno ili jednom u dva mjeseca) odradim fstrim ručno... moje je pitanje bilo zašto imate potrebu automatskog trima na dnevnoj ili tjednoj bazi i što dobijete time (jel' tolika muka napisati naredbu za trim i opaliti enter) :hmm


Ovisi što radiš, ali 1 u 1-2 mjeseca je prerijetko. Drugo, bitnije, sve takve stvari treba automatizirati i ostaviti što je manje moguće da ovisi o sjećanju i navikama.
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 9895
Moderator
Postovi: 9895
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 158 puta
Primio/la zahvalu: 269 puta
Spol: Y
OS: utuntu 17.04
Kaj nema automatike ( bar u zvucnijim distrama ) pa da sa ssdom nemas dodatnih rucnih aktivnosti ?
Avatar
Postovi: 350
Postovi: 350
Pridružen/a: 06 tra 2017, 18:40
Podijelio/la zahvalu: 79 puta
Primio/la zahvalu: 32 puta
Spol: M
OS: Manjaro KDE
Ekipa, možete li mi preporučiti neki pouzdani način kako izvršiti secure erase na ssd disku i tako ga dovesti čim bliže tvorničkom stanju ?

Tražio sam ali nisam našao pouzdani način i najčešće naletim na nekaj ovakvog : Even if you use DBAN to shred the entire disk, you're only shredding the logical blocks. And the SSD spare area has more physical blocks. At some point currently assigned physical blocks will be swapped out to the spare area (with the current content of the block NOT shredded) and a new physical block will be moved from the spare area to currently assigned area.

Only the SSD's firmware secure erase command (if it is actually implemented) does actually securely erase a physical block. Everything else just wastes your time and doesn't actually erase anything, just reassigns a new physical block to that logical block you're trying to erase.
Avatar
Postovi: 350
Postovi: 350
Pridružen/a: 06 tra 2017, 18:40
Podijelio/la zahvalu: 79 puta
Primio/la zahvalu: 32 puta
Spol: M
OS: Manjaro KDE
hah. Uključi hw enkripciju diska. napuni ga 100% sa /dev/urandom, zatim sa hdparmom secure eresaj.
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 9895
Moderator
Postovi: 9895
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 158 puta
Primio/la zahvalu: 269 puta
Spol: Y
OS: utuntu 17.04
@shrike

Hvala, no zasad još gajim nadu da ću naći neki easy way ..

No obeshrabre me ovakvi tekstovi :
SSD flash memory cannot overwrite existing data in a classic manner. In an HDD system, the Operating System can request that new data be written to the same location where data is already stored, and the drive will directly overwrite the old data (magnetically). In an SSD, however, the target area must first be erased before it can be written to locations previously holding data. This is happening because of the internal structure. Flash memory is divided into blocks, sub-divided in pages. Data can be written directly into an empty page, but only whole blocks can be erased. So if you want to erase some of the data in a block, the rest of the data will be copied to another and the initial block will be erased or marked usable/empty.

The process is handled by FTL (flash translation layer) which has to do something like this when you change a very small amount of data: read one whole physical block (which let's say contains 64 pages - it can be up to 256), replace what you edited (let's say 4 pages) while keeping the rest intact (60 pages), erase a new block somewhere on the device and finally write the new set of 64 pages on that block.

TRIM support enables the old blocks to be considered empty, even if they have not been erased yet, which improves endurance.

The result of all that is that physically, some data still exists in marked-as-empty blocks and may be theoretically recovered by special means.

But this also simplifies a lot free space erase. You can just make a self-expanding file to occupy all space or copy any random data just to reach 0 free space and at that point all your previous blocks are practically irreversibly erased.

If you want to completely wipe the drive, you can use any tool supporting ATA Secure Erase, which electrically nullifies all data in the blocks. The tools are vendor specific (Corsair SSD Toolbox, OCZ Toolbox, Intel Solid State Toolbox, Samsung Magician Software). These essentially set all available blocks to the “erase” state (electrically), which is what TRIM uses for garbage collection purposes (and with which erases the blocks with before usage). The blocks remain empty with no information on their initial content.

So, to clean an SSD you just have to follow one rule: use all it's space for something. If a simple copy-a-big-file seems strange, you can always create an encrypted partition taking all the space, copy data there, then erase it and re-create it. But taking all the space with junk data is enough for a complete clean-up.
Avatar
Postovi: 350
Postovi: 350
Pridružen/a: 06 tra 2017, 18:40
Podijelio/la zahvalu: 79 puta
Primio/la zahvalu: 32 puta
Spol: M
OS: Manjaro KDE
Pa moje upute ti rade što i taj tekst koji si citirao i zapravo je jednostavno, ali dd dio traje dugo. Prvo sa parted izbrišeš sve particije:
sudo parted /dev/sdX
rm 1
rm 2
rm 3
..
rm n
mklabel gpt
quit
#########
sudo dd if=/dev/urandom of=/dev/sdX

Znači nakon što sa parted izbrišeš sve particije i postaviš novigpt (sada više nema particija, samo disk), zapuniš čitavi disk sa random podatcima (urandom ti je na linuxu isto što i random, razlika je u blocking/nonblocking, ne i u kvaliteti)
Es gibt keinen Gott, kein Universum, keine menschliche Rasse, kein irdisches Leben, keinen Himmel, keine Hölle. Es ist alles ein Traum - ein grotesker und dummer Traum. Nichts existiert außer dir. Und du bist nur ein Gedanke - ein vagabundierender Gedanke, ein nutzloser Gedanke, ein heimatloser Gedanke, der verloren in der leeren Ewigkeit wandelt!
Avatar
Moderator
Postovi: 9895
Moderator
Postovi: 9895
Pridružen/a: 07 pro 2007, 18:07
Podijelio/la zahvalu: 158 puta
Primio/la zahvalu: 269 puta
Spol: Y
OS: utuntu 17.04

Na mreži
Trenutno korisnika/ca: / i 1 gost.