Install on USB Flash Drive and Persistant

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Install on USB Flash Drive and Persistant

Postby iTaO on Tue Nov 20, 2007 11:38 am

Hi @ all. Linux Mint Rocks !

I want to install Daryna on my USB Flash Drive (2Gb). I follow this tutorial (thx pendrivelinux). http://www.pendrivelinux.com/2007/10/31/usb-linux-mint-install-from-windows
Install OK but there's no "persistent" boot mode. (Can't save settings). i'm French so for exemple, i just want to have gnome in french...
I can install french package from the "Language Support" but on each reboot, do the same thing is boring.
I tried some things (like reconf syslinux.cfg to add persistent mode, 2 parts on usb flash with a "casper-rw" 2nd partition, to write saves...), but :cry:
So if someone could HELP me Please :?:

Thanks for all :wink:
Last edited by iTaO on Thu Nov 29, 2007 4:05 pm, edited 1 time in total.
iTaO
User avatar
iTaO
Level 1
Level 1
 
Posts: 8
Joined: Tue Nov 20, 2007 11:20 am
Location: Montpellier, France

Linux Mint is funded by ads and donations.
 

Re: Install on USB Flash Drive

Postby iTaO on Wed Nov 21, 2007 11:13 am

problem solved :wink: , if someone want to know how, let me know...
iTaO
User avatar
iTaO
Level 1
Level 1
 
Posts: 8
Joined: Tue Nov 20, 2007 11:20 am
Location: Montpellier, France

Re: Install on USB Flash Drive

Postby khai on Thu Nov 22, 2007 1:42 am

iTaO wrote:problem solved :wink: , if someone want to know how, let me know...


could you tell me how?
User avatar
khai
Level 1
Level 1
 
Posts: 24
Joined: Sat Oct 27, 2007 12:12 am

Re: Install on USB Flash Drive

Postby iTaO on Thu Nov 22, 2007 3:28 am

Works for me:

Must have:
- Ubuntu 7.10 Live CD (or other)
- USB Flash Drive ( at least 1 Go )
- Windows Xp or Vista ( :( )

Insert the CD and your USB flash drive.
Boot on live CD.
Open a terminal window and type "sudo su" ( without quote ).
Type fdisk -l , note your flash drive letter ( sda, sdb, etc... ).
Type umount /dev/sdx1 ( x = your flash drive letter ).
Type fdisk /dev/sdx
type p to show the existing partition and d to delete it
type p again to show any remaining partitions (if partitions exist, repeat the previous step)
type n to make a new partition
type p for primary partition
type 1 to make this the first partition
hit enter to use the default 1st cylinder
type +750M to set the partition size
type a to make this partition active
type 1 to select partition 1
type t to change the partition filesystem
type 6 to select the fat16 file system
type n to make another new partition
type p for primary partition
type 2 to make this the second partition
hit enter to use the default cylinder
hit enter again to use the default last cylinder
type w to write the new partition table
Type umount /dev/sdx1
Type mkfs.vfat -F 32 -n linuxmint /dev/sdx1
Type umount /dev/sdx2
Type mkfs.ext3 -b 4096 -L casper-rw /dev/sdx2
Remove and Re-insert your flash drive.

Reboot your computer, with Windows.

Next, just follow this tutorial from pendrivelinux :arrow: http://www.pendrivelinux.com/2007/10/31/usb-linux-mint-install-from-windows/
Install Mint on FAT 32 Part.
Add "Persistent Mode" to the "syslinux.cfg" like this...
DEFAULT persistent
...
...
LABEL persistent
menu label ^Start Linux Mint in persistent mode
kernel /casper/vmlinuz
append file=/cdrom/preseed/ubuntu.seed boot=casper persistent initrd=/casper/initrd.gz ramdisk_size=1048576 root=/dev/ram rw quiet splash --


Try this... Works for me :wink:

But this tip is just experimental, maybe dev like Clem (French too !) could do something more easy...

Linux Mint on USB Flash Drive rocks ! :P
Last edited by iTaO on Thu Nov 29, 2007 4:14 pm, edited 5 times in total.
iTaO
User avatar
iTaO
Level 1
Level 1
 
Posts: 8
Joined: Tue Nov 20, 2007 11:20 am
Location: Montpellier, France

Re: Install on USB Flash Drive

Postby 900i on Thu Nov 22, 2007 3:40 am

iTaO wrote:Works for me:

Must have:

- Windows Xp or Vista ( :( )


Thats a joke, surely!
Intel i7 3770 LMDE Mate 64
User avatar
900i
Level 6
Level 6
 
Posts: 1014
Joined: Sat Nov 18, 2006 9:30 am
Location: Wakefield, UK

Re: Install on USB Flash Drive

Postby iTaO on Thu Nov 22, 2007 5:10 am

Sorry ! :mrgreen:

When Reboot, no Boot on USB key ? Try this :
sudo apt-get install lilo
lilo -M /dev/sdx
Last edited by iTaO on Thu Nov 29, 2007 4:14 pm, edited 3 times in total.
iTaO
User avatar
iTaO
Level 1
Level 1
 
Posts: 8
Joined: Tue Nov 20, 2007 11:20 am
Location: Montpellier, France

Re: Install on USB Flash Drive

Postby khai on Fri Nov 23, 2007 3:53 pm

thank you iTaO, it really worked.

i'm just wondering, that when i run Mint in persistent mode booting takes muuuuuch longer than "live" and the system is much less responsive than normal live cd.
is it ok?
can it have something to do with a fact that i reduced mint's live partition to 715mb (instead of 750)?
Last edited by khai on Sun Nov 25, 2007 1:03 am, edited 1 time in total.
User avatar
khai
Level 1
Level 1
 
Posts: 24
Joined: Sat Oct 27, 2007 12:12 am

Re: Install on USB Flash Drive

Postby iTaO on Sat Nov 24, 2007 7:25 am

You can try to boot in Ram Mode. "Toram" or other, next reduce FAT32 Part with GParted in su ( sudo su ), you must unmount part first. if unmount failed, "toram" boot option failed ; :wink:

If Mint Developer could try (modify too) & accept that tutorial, i think many people want to use this :wink:

For me boot time in live USB mode is much longer too than live CD, but it really depend your USB Flash Drive Specs. Try for exemple with Corsair Voyager GT, it's an other thing ! :mrgreen:
iTaO
User avatar
iTaO
Level 1
Level 1
 
Posts: 8
Joined: Tue Nov 20, 2007 11:20 am
Location: Montpellier, France

Re: Install on USB Flash Drive

Postby stochastic on Sun Dec 30, 2007 6:52 pm

iTaO wrote:You can try to boot in Ram Mode. "Toram" or other, next reduce FAT32 Part with GParted in su ( sudo su ), you must unmount part first. if unmount failed, "toram" boot option failed ; :wink:

If Mint Developer could try (modify too) & accept that tutorial, i think many people want to use this :wink:

For me boot time in live USB mode is much longer too than live CD, but it really depend your USB Flash Drive Specs. Try for exemple with Corsair Voyager GT, it's an other thing ! :mrgreen:


The persistent USB recipes floating around the web are bogus, and will not provide a usable system over time (including this message thread). It will work a few times, and then you will have a corrupt image. Although there is an amazing number of disk writes and tmp files generated (I've monitored disk access to the key), my memory key does not seem to be corrupted by my experiments (I hope) - but the casper image will always fail to boot after a few days. I've tried the pendrivelinux recipes too, which are all one offs of the same technique everyone else is using just applied to many different distributions (but explained and automated through scripts to make it easy) .

The problem is they are all based on the same flawed method - casper r/w

ask yourself why you need this if you are not running off a small 700 MB CD...

The only viable options I've found are at:
http://wiki.flimzy.com/index.php/Debian_on_USB
http://feraga.com/

I won't reccomend one or the other, but both sites offer methods far superior to the casper nonsense everyone is using
stochastic
 

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: No registered users and 23 guests