edenpax.blogg.se

Install linux on usb flash drive
Install linux on usb flash drive






install linux on usb flash drive

Untested advice: I made a swap partition as well a / filesystem partition on my thumbrive, and have even more performance issues (speed) I attribute to this. Note: while this setup may sound good in theory, the read/write speed of a flash drive is slow compared to a normal hard drive, and as such the speed of the debian system will be sometimes crippled, but otherwise completely usable. Make partition(s), tell the installer to install the OS on the one of the partitions you made on the thumbdrive, in my case it was /dev/sdb2. Inserting the thumbdrive late in the installation process like this will make the thumbdrive available to the installer.ĭebian installer will again scan for disks at this point and recognize the thumbdrive as unmounted, which is what we want.

install linux on usb flash drive

THEN, insert your thumb drive (that you want debian installed to) in the machine, choose 'go back' a step in the installer, then 'partition disks' again. Here's the trick: use the installation media (cd, dvd, thumbdrive, whatever) to start your 'debian install.' Go through it like normal until you get to the 'partition disks' screen. I have installed debian 8 (jessie) onto a usb drive. Now you're ready, take the USB wherever you want, start the system from the USB and your Debian system will start. After that, you only need to change your /boot/grub/nf so that the id also points to the one in your USB, but be aware that this will be modified if you update your system so either find what you need to change in your /etc/defaults/grub or wherever that configuration is and modify it to make it permanent. You're almost done now, just run blkid to identify your USB's root/swap/whatever partition ids you created and modify /etc/fstab so that your root/swap/whaever partitions point to the ids in your USB. Once you have done that, start the machine from your HD, mount your USB and mount -bind /dev, /dev/pts, /proc and /sys to those in your usb, then chroot to your USB and grub-install to your USB's /dev/sdX device (being X the letter a, b, c, etc. Start your machine from a live usb/CD and rsync -arv your Debian HD install in your USB. The way I did that was installing Debian on a machine (I think you can't install directly to a USB if you can then that is the way to go, otherwise keep reading).Ĭrate the needed partitions on your USB Stick (for / and swap or whatever you need). Or you can create a the whole system in your USB. It will create a live USB and will let you specify a space for permanent data that will be kept from run to run. You can use a tool called Linux Live USB Creator (this is to create the USB from Windows).








Install linux on usb flash drive