🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.raspberry-pi
Article #151

Re: RPi desktop on a Acer Aspire TC-780 - any gotya's ?

#151
From: Daniel James
Date: Mon, 23 Nov 2026 14:06
50 lines
3875 bytes
On 20/11/2026 17:29, R.Wieser wrote:
>> If you leave parts unpartitioned but still containing data from
>> the last time it was used, the SSD is still contractually obliged
>> to keep the data in case you need it another time
>
> That doesn't make any sense.  The data in blocks not part of any partition
> (or file!) needs to be kept ?  For what reason ?

It's complicated. The SSD controller maintains a mapping between the 
physical blocks of flash memory and the logical block addresses used by 
the (e.g. SATA) interface. It also keeps a record of which blocks 
contain data and which do not.

[The situation is further complicated by the fact that the logical and 
physical blocks are different sizes, and that physical blocks may not be 
erasable individually -- but I'm ignoring that for simplicity.]

A block contains data if it has ever been written to, unless it has 
since been identified as unused using the TRIM command.

The controller doesn't know anything about filesystems or partitioning. 
If a block has been written to and the disk has then been repartitioned 
so that that block lies outside any partition the controller will still 
remember it as a "used" block (and as it lies outside any current 
partition the filesystem will never TRIM it).

So, it's not that there is any reason to keep the data in those blocks, 
just that there is no way to tell that there is no reason.

>> but also zeroing the SSD and then leaving 10% (or whatever)
>> unpartitioned works too.
> 
> Again, I do not understand.  The blocks in the unpartitioned area might be 
> zeroed out, but the moment the wear-leveling mechanism swaps such a block 
> out with one inside a partition that swapped-out block now in the 
> unpartitioned area is going to contain data.

Remember the mapping between the actual physical flash blocks and the 
logical sector numbers used by the interface. That mapping is dynamic: 
There is no permanent 1:1 correspondence between the logical and 
physical addresses.

When a block is written the controller will select the least-used free 
block available, regardless of its address, and map that to the logical 
block that the OS/filesystem has asked for. The logical address remains 
within the partition as it has always been.

-- 
Cheers,
  Daniel.
Technical Details
Message-ID: <11e1h9d$1u6ss$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11dp2c3$313lh$1@dont-email.me> <nmaiv7Fnc6nU1@mid.individual.net> <nmak4iFnhn4U1@mid.individual.net> <11dpane$344nu$2@dont-email.me> <5uC*MpbWA@news.chiark.greenend.org.uk> <11dpmj3$38nku$1@dont-email.me> <4uC*nLbWA@news.chiark.greenend.org.uk> <11dpphn$39vc2$1@dont-email.me> <6uC*EYbWA@news.chiark.greenend.org.uk> <11dq02p$3cr0b$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Daniel James <daniel@me.invalid>
Newsgroups: alt.os.linux,comp.sys.raspberry-pi
Subject: Re: RPi desktop on a Acer Aspire TC-780 - any gotya's ?
Date: Mon, 23 Nov 2026 14:06:36 +0000
Organization: Daniel James
Lines: 50
Message-ID: <11e1h9d$1u6ss$1@dont-email.me>
References: <11dp2c3$313lh$1@dont-email.me> <nmaiv7Fnc6nU1@mid.individual.net>
 <nmak4iFnhn4U1@mid.individual.net> <11dpane$344nu$2@dont-email.me>
 <5uC*MpbWA@news.chiark.greenend.org.uk> <11dpmj3$38nku$1@dont-email.me>
 <4uC*nLbWA@news.chiark.greenend.org.uk> <11dpphn$39vc2$1@dont-email.me>
 <6uC*EYbWA@news.chiark.greenend.org.uk> <11dq02p$3cr0b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 23 Nov 2026 14:06:37 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2038684"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1979Cbebwp2FRkzh07dUnxM"; posting-host="b46c5f28a5932355f7a77c5e08ca53d6"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:D0txfq7vrB0BLOU+qCfcPPASSt0= sha256:dpPg/yyG7Ha39uYTlMX2i4QSodlEQgtx9qsK5ROGnSw=
	sha1:hAaysbU29gOL992B+0fCA9o+a5s= sha256:e6Ooy4943L/i87qYtaZ0nUSiAXekrCgmgDmGVfLDdRk=
In-Reply-To: <11dq02p$3cr0b$1@dont-email.me>
Content-Language: en-GB