-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I am currently trying to find out how to trim with my new TP and was wondering about the difference of manual/online trimming.
Here is my setup:
ThinkPad T430s with SSD Samsung 830, 128GB and Xubuntu 12.10, here are some outputs to check if trim will work on my system (got these from here: http://wiki…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I can't figure out what to do to make this work. Here's my code:
char* testStr = " trim this ";
char** pTestStr = &testStr;
trim(pTestStr);
int trim(char** pStr)
{
char* str = *pStr;
while(isspace(*str)) {
(*pStr)++;
str++;
}
if(*str == 0) {
return 0;
}
char…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi guys,
I was writing the String trim method in c and this is the code I came up with. I think it does the job of eliminating leading and trailing whitespaces however, I wish the code could be cleaner. Can you suggest improvements.
void trim(char *String)
{
int i=0;j=0;
char c,lastc;
while(String[i])
{
…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
So I'm attempting to install TRIM using the walkthrough here: How to enable TRIM?
But everytime I attempt to run the hdparm command, I get the following when I try to run it w/ sda:
reading sector 5805056: FAILED: Input/output error
and I get this when running it with sda1:
/dev/sda1:
Device…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I am setting up a notebook for software demo purpose. The machine has a Intel Core i7 CPU, 8GB RAM, a 128GB SSD, and runs Ubuntu 12.04 LTS 64bit desktop. As it is, the SSD is configured to have a single volume group, with /boot, /swap, and / all in their respective logical volumes. They collectively…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I have a non-Linux partition I want to encrypt with LUKS. The goal is to be able to store it by itself on a device without Linux and access it from the device when needed with an Ubuntu Live CD.
I know LUKS can't encrypt partitions in place, so I created another, unformatted partition of the EXACT…
>>> More
-
as seen on Ask Ubuntu
- Search for 'Ask Ubuntu'
I created a 4 drive RAID5 setup using mdadm and upgrading from 2TB drives to the new Hitachi 7200RPM 4TB drives. I can initially open my luks partition, but later can no longer access it.
I can no longer access my LUKS partition even tho I have the right passphrases. It was working and then at an…
>>> More
-
as seen on Super User
- Search for 'Super User'
Hi,
In older versions of Ubuntu, mainly 8.04, I could encrypt en entire partition using LUKS, and mount it as /. the /boot directory was mounted on another partition.
At boot time, I had to enter my password to enable any access to anything other than /boot.
In Kubuntu 9.10, I only have the option…
>>> More
-
as seen on Super User
- Search for 'Super User'
I'm moving over to Linux when the new SSD arrives. SSD gives increased performance, so I thought that I could encrypt everything.
But then I came to think about TRIM, and garbage collection on the drive. Will a LUKS encrypted drive affect the garbage collection system? (TRIM).
>>> More
-
as seen on Super User
- Search for 'Super User'
I'm moving over to linux when the new SSD arrives. SSD gives increased performance, so I thought that I could encrypt everything. But then I came to think about TRIM, and garbage collection on the drive. Will luks encrypted drive effect the garbage collection system? (trim).
>>> More