install a full Trisquel on a USB flash drive

16 risposte [Ultimo contenuto]
alimiracle
Offline
Iscritto: 01/18/2014

hi
can I install a full Trisquel on a USB flash drive?

lembas
Offline
Iscritto: 05/13/2010

Yes you can. It might shorten the life of you USB though. You'll want to minimize writes to the USB, e.g. don't swap on it.

kokomo_joe

I am a member!

Offline
Iscritto: 07/16/2011

I've heard of this but have never tried it. How do you do this?

Are you disabling swap in that case?

lembas
Offline
Iscritto: 05/13/2010

I haven't done it. Just install like normally but choose the USB as target instead of HDD.

If there is a swap on the local HDD you could use that unless there currently is a hibernation image on it. The installer might not be flexible enough to do this setup but in that case you can install without swap and define the swap manually later by editing /etc/fstab.

alimiracle
Offline
Iscritto: 01/18/2014

Thanks
Installation has been successfully
But when I type free Tell me.
That there swap
Where it came from?
how can I disabling swap????
I want to use this method to share the system
with my friends

Greetings and respect
ali abdul ghani

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

The default install (no "custom partitioning") comes with a swap partition. If you want to suspend-to-disk (hibernate), it is necessary. If you do not want any swap partition (RAM should then always suffice), you can boot the live media again, insert your USB key with the installed system and use GParted (present on the live media) to remove the swap partition and extend an adjacent partition, typically the one mounted on /home. The line in /etc/fstab (that of the installed system) with "swap" in the third column should then be removed.

If you want to keep the swap partition but have it disabled by default, you must edit that same line of /etc/fstab (with root permissions) and turn the fourth column, "sw", into "sw,noauto". Whenever you need the swap partition, you fire 'sudo swapon' followed by the swap partition. For instance, if it is /dev/sda5:
$ sudo swapon /dev/sda5
And, to turn the swap off:
$ sudo swapoff /dev/sda5

You can also read about swap files if do not want any swap partition but still want to swap on occasion (the file is allocated with 'fallocate' and can have any size you want).

alimiracle
Offline
Iscritto: 01/18/2014

I dont want make life USB
i want install a full Trisquel on a USB

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

That is what lembas is talking about.

TheJennings
Offline
Iscritto: 09/01/2014

I'm having an issue with installing. I am using a Mac Book.
I have created my USB and everything is installed successfully but when I reset holding down the Alt key I'm only being given the option to select my Mac HD and not the USB.
Could you give me an easy guide on how to fix this?

Jabjabs
Offline
Iscritto: 07/05/2014

Did you get the i386 version or the AMD64? The i386 version (32bit) will not boot as it does not have the EFI boot loader.

TheJennings
Offline
Iscritto: 09/01/2014

I downloaded the Trisquel 700MB CD iso image, 64 bit

Chris

I am a member!

Offline
Iscritto: 04/23/2011

An installed copy of Trisquel on a flash drive under any condition (disabling swap, using special filesystems, including read-only) is going to be terribly unreliable and slow. It'll work at first (although be very slow, but not long term, or even short term for that matter).

Anybody who has done significant testing in real world conditions knows it just doesn't work. Once you start applying security updates (by temporarily booting into a read-write mode) and such and the constant removal to and from the USB port will result in the drive being killed off. It's one thing to plug and unplug a USB drive once or twice a week for years, but try doing that a few times every day and you won't have a functioning drive a month from now. I'd give it six months max in real world conditions if your taking all the right precautions and rarely using it.

davidnotcoulthard (non verificato)
davidnotcoulthard

Here's my suggeston: Get a USB Hard Drive and install there instead.

I've never tried that, though. Is it less risky, Chris?

Chris

I am a member!

Offline
Iscritto: 04/23/2011

I'm unsure what the exact objective is, but if you need something to be fairly reliable I'd stick with a 2.5" 5400 or 7200 RPM drive + USB case. If the USB part goes you can replace it and the hard disk part won't wear out like a USB flash drive does. If the hard disk part dies it'll probably be years later (if you get a decent drive anyway). If the USB part goes you can just replace the case.

I wish I had a better solution, but even doing something like a raid setup with flash drives isn't that reliable. What you end up with is having to replace one or the other flash drives frequently and the syncing of the new drive is unbearably slow.

oshanz
Offline
Iscritto: 02/12/2012

use non Journaling file system like ext2.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Better: F2FS, a filesystem specifically designed for Flash memories.

https://en.wikipedia.org/wiki/F2FS

hosh
Offline
Iscritto: 09/04/2014

many people have been using the live-usb method for years, with distributions like Puppy Linux. I have not had a usb wear out or become unusable so far. I was thinking to try Trisquel using this method, but according to Chris, this is not practical, both in terms of speed and in terms of wear and tear on the usb drive. Does Trisquel run entirely in RAM? If so, how much RAM does it use? (Trisquel is not listed in the Wikipedia page on this topic - https://en.wikipedia.org/wiki/List_of_Linux_distributions_that_run_from_RAM)

Note: with Puppy I use a Sandisk Cruzer Fit running in ext2 or 3 (I forget) and just leave it in my eeepc Netbook all the time, so there isn't a question of plugging and unplugging it all the time. But if I want to use it in another computer, I can, and all my settings are saved. For file storage I use Dropbox and Google Drive on the permanent disk, and go over to Windows once in while to sync files. If the distribution supported it better, I could do this without leaving Linux. (I'm aware that I could also use one of the libre cloud systems and may do so in the future.)