rvndmnmt
December 20th, 2012, 08:44 AM
Personal project I am working on. Got bit by the USB bug when I was messing with Puppy but definitely don't like messing with slackware. They have a Debian compatible version but it is a bit problematic.
So, to start, I did a lubuntu-core x32 install off of the 12.04 minimal disk. I'm working with a limited amount of space, I need the greatest cross platform compatibility I can get, and I don't like to repeat myself. Lubuntu was chosen for it's light weigh. LTS builds have some downsides as you're not getting bleeding edge features and technology, but there are also some obvious advantages such as 3 years of support and stability. I really shouldn't care for something that may or may not burn out in 6 months but that is just the beginning of this.
I wanted it to run well, but if possible I would like to use it longer than six months. I did a little brain storming and decided to treat this thing for what it was closest to. I cracked my knuckles and went to work.
USB's have something like 100,000 read/writes, so like an earlier SSD I am going to do what I can to make sure that it doesn't write any more than it has to. I cracked open the CLI and added a few entries to the /etc/fstab file. I disabled file access time stamping with noatime and enabled trim with a discard command. I set up /tmp /spool /and log files on a ram drive as well as the browser cache. Most of the machines I am going to be using this on have at least 2-3 gig of ram so this shouldn't be to terribly much of an inconvenience.
I know USB's don't have trim, they do have a crude form of wear leveling but just not that. Well that I know of. I don't think it's cost effective but one day, who knows? Besides, if it's not used it's simply ignored. No harm, no foul.
I set the scheduler for deadline, used for an SSD without TRIM, and called it a day after a few other tweaks to the system here and there. A curious thing happened though, I experienced random freezes. No good reason, I would be tooling along and, by my best guess, I didn't say "swiper no swiping" or something to that effect. Did a little homework and, of course, the USB drive isn't compatible with LinuxNCQ or something to that effect. So I disabled NCQ in GRUB and haven't experienced any further problems. On a side note I created a liveCD and loaded it on another 8 gig USB drive and enabled NCQ and haven't run into any problems so this might be drive specific. I really don't know.
I have it working, mostly. Still have to map in certain commands i.e. ctrl-alt-del pulling up gnome-system-monitor instead of lxtask and a few other things but this is what I have.
http://www.youtube.com/watch?v=5oA5Gf75bE4
I spent so much time on, hopefully, extending the USB drive life. I just need a fresh pair of eyes to take a look at it and give me some recommendations on what else I can do to clean it up. I'm not trying to create something for public consumption. With great power comes great responsibility and all. I'm just trying to make something that is going to serve me well. I don't feel like doing the job halfway, I'm just burned out on it right now.
I could also use some help somehow cloning it into a distributional format and uploading it. Never really done that before.
So, to start, I did a lubuntu-core x32 install off of the 12.04 minimal disk. I'm working with a limited amount of space, I need the greatest cross platform compatibility I can get, and I don't like to repeat myself. Lubuntu was chosen for it's light weigh. LTS builds have some downsides as you're not getting bleeding edge features and technology, but there are also some obvious advantages such as 3 years of support and stability. I really shouldn't care for something that may or may not burn out in 6 months but that is just the beginning of this.
I wanted it to run well, but if possible I would like to use it longer than six months. I did a little brain storming and decided to treat this thing for what it was closest to. I cracked my knuckles and went to work.
USB's have something like 100,000 read/writes, so like an earlier SSD I am going to do what I can to make sure that it doesn't write any more than it has to. I cracked open the CLI and added a few entries to the /etc/fstab file. I disabled file access time stamping with noatime and enabled trim with a discard command. I set up /tmp /spool /and log files on a ram drive as well as the browser cache. Most of the machines I am going to be using this on have at least 2-3 gig of ram so this shouldn't be to terribly much of an inconvenience.
I know USB's don't have trim, they do have a crude form of wear leveling but just not that. Well that I know of. I don't think it's cost effective but one day, who knows? Besides, if it's not used it's simply ignored. No harm, no foul.
I set the scheduler for deadline, used for an SSD without TRIM, and called it a day after a few other tweaks to the system here and there. A curious thing happened though, I experienced random freezes. No good reason, I would be tooling along and, by my best guess, I didn't say "swiper no swiping" or something to that effect. Did a little homework and, of course, the USB drive isn't compatible with LinuxNCQ or something to that effect. So I disabled NCQ in GRUB and haven't experienced any further problems. On a side note I created a liveCD and loaded it on another 8 gig USB drive and enabled NCQ and haven't run into any problems so this might be drive specific. I really don't know.
I have it working, mostly. Still have to map in certain commands i.e. ctrl-alt-del pulling up gnome-system-monitor instead of lxtask and a few other things but this is what I have.
http://www.youtube.com/watch?v=5oA5Gf75bE4
I spent so much time on, hopefully, extending the USB drive life. I just need a fresh pair of eyes to take a look at it and give me some recommendations on what else I can do to clean it up. I'm not trying to create something for public consumption. With great power comes great responsibility and all. I'm just trying to make something that is going to serve me well. I don't feel like doing the job halfway, I'm just burned out on it right now.
I could also use some help somehow cloning it into a distributional format and uploading it. Never really done that before.