Install linux mint (or any other) on usb-pendrive "not live"

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
marquiz
Level 1
Level 1
Posts: 44
Joined: Sat Apr 27, 2013 2:12 am

Install linux mint (or any other) on usb-pendrive "not live"

Post by marquiz »

Hi,

anyone has done or know how to install linux on a pendrive, and I mean "not as a live bootable linux" (because you loose all changes from session to session).

I mean installing linux on a usb memory to have exactly the same as if you had it on an internal disk. So you can boot and change passwords to users, create new users, install/configure drivers/devices without loosing all info every time you reboot

I tried it and couldnt do it. My installation failed trying to install grub on the pendrive, somehow it is not possible, is not possible also to install lilo ...

Challenging ??

741cc
Level 3
Level 3
Posts: 158
Joined: Mon Sep 03, 2012 8:00 am

Re: Install linux mint (or any other) on usb-pendrive "not l

Post by 741cc »

Try creating a partition table on the usb stick using gparted
Gparted -> Device -> Create Partition Table.

I've not done it for a long while but it is possible.

RichardH
Level 3
Level 3
Posts: 140
Joined: Tue Jun 17, 2008 10:36 am
Location: Venezuela

Re: Install linux mint (or any other) on usb-pendrive "not l

Post by RichardH »

As mentioned above, it may help if you run gparted first
and create the desired partitions on the USB.

I recently installed LM15-Xfce on a 64 GiB pen drive as follows:
/ ext2 of 20GiB; /DATL ext2 of 39 GiB; and swap of 1 GiB. YMMV.
NOTE: You can format /DATL to fat32, ntfs or whatever you need.

Boot some sort of LiveDVD or a LiveUSB on another stick.
When booted, insert your USB stick for the installation.
It should be recognized. Run the following to see where it is mounted:

Code: Select all

sudo blkid -o list -c /dev/nul
Make a note of the device. Such as /dev/sdc.

Start the installer from the Live media.
Choose to install on /dev/sdc or where ever your USB install device mounted.
Remember to install grub onto the MBR of your USB install device.
Go have a cup of coffee, tea or whatever. Mine took about half an hour
to complete the install on the USB. Sometimes it takes longer.

Once it finishes, you'll need to reboot to try it out.
Press whichever key to get to the boot selection screen.
Choose your USB install and it should boot from the USB.

To prove it, type the following again, as root:

Code: Select all

sudo blkid -o list -c /dev/nul
to see which device is mounted on /.

EDIT: Just saw a link in this thread: http://forums.linuxmint.com/viewtopic.php?f=46&t=146385
which pointed to this more complete walkthrough description:
http://www.muktware.com/2011/05/install-linux-mint-on-usb-drive-and-walk-with-it-portable-linux-mint/1198

RichardH
Level 3
Level 3
Posts: 140
Joined: Tue Jun 17, 2008 10:36 am
Location: Venezuela

Re: Install linux mint (or any other) on usb-pendrive "not l

Post by RichardH »

and just one more thought:
reinstalled using LinuxMint 13 Xfce LTS.
Seems quicker on the USB and hopefully easier to maintain.

NOTE: Didn't work too well for me.
Might just be my equipment?
The process has worked well for me
with Debian, Peppermint, SolydX, & LinuxMint.

Post Reply

Return to “Installation & Boot”