Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 01-31-2010, 04:01 PM   #1
Registered: Oct 2007
Location: Stockholm Sweden
Distribution: Snow Puppy and Fluppy and Lupu frugal install
Posts: 279

Rep: Reputation: 33
Ubuntu and Linux Mint in frugal install on Vista machine Persistent?

How does one make such a set up to be persistent so it saves changes to the system?

I found one suggestion in pendrivelinux site.

CLI work

# Open a terminal and type sudo su (to become root)
# Type mkdir /projectinit (to make our project directory)
# Type cd /projectinit (to change to the project directory)
# Type gzip -dc /cdrom/casper/initrd.gz | cpio -i (to extract the initrd.gz)
# Type gedit init (to edit the init file)
and so on.

Too advanced for a newbie like me but it shows that it should be possible to save despite being in frugal install.

I have managed to do frugal install of both Linux Mint and Super OS which is a regular Ubuntu with bling bling, codex and three browsers instead of 1 and so on. I like SuperOS very much due to me as newbie usually fail to install things because I either make use of USB or frugal install to not wreck the windoe$.

so I dearly hope somebody that can linux can help me going.

Here is my current neogrub menu.lst

title superos
find --set-root /casper/vmlinuz
kernel /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed boot=casper splash --
initrd /casper/initrd.gz

title Linux Mint
find --set-root /casper/vmlinuz
kernel /casper/vmlinuz file=/cdrom/preseed/mint.seed boot=casper splash --
initrd /casper/initrd.gz
As you can see. Both Ubuntu and Linux Mint can boot from the Neogrub menu.lst

But unfortunately due to them same name of folders one need to find a solution to how to have both going.

I used mint some 7 times and rebooted many times and it survived for some 7 hours.

Then I made it hidded in a subdirectory so boot could not find it and moved the SuperOS ubuntu out of its superdirectory and tested that one this whole day. From 7AM oclock to now 11pm with many reboots to see if it act well shutting down. It works very well but none of them save things.

One can save documents and pictures to the NTFS harddrive but bookmarks of the browser one need to send to email or place in a html file manually or join a bookmarks server online.

So I need help to get this saving to work.

DrG on brainstorm.ubuntu suggested that frugal install should be one of two options wubi and frugal install when people are asked how they want to install Ubuntu without doing partitioning and dual boot on Vista and Win7 machines.

Last edited by nooby; 01-31-2010 at 04:02 PM.
Old 02-01-2010, 09:12 AM   #2
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
you can put many distros on there running persistent frugal
But, you cant put 2 *buntu's on there as they both look for a folder named "casper" at boot

So, maybe pick one?

You also need to make a casper-rw persistent file or partition
and append your kernel boot parametere with "persistent"

title Linux Mint
find --set-root /casper/vmlinuz
kernel /casper/vmlinuz file=/cdrom/preseed/mint.seed persistent boot=casper splash --
initrd /casper/initrd.gz
like that

to make a casper-rw; which MUST be on a different partition
than the OS is booting from.

see here

Bascially, you wanna make a casper-rw file or partition?

Casper-rw file is easy

Using a Loopback File

Instead of using a USB stick, you can use a file on your hard disk to store persistent information. The file must be named casper-rw and must be on the root of a partition. This partition can be any type that can be mounted automatically (e.g. vfat or ext3). (The persistent mode still works, if the file is created on the root partition of an USB stick.)

The following commands assume that a partition is mounted at /media/hda1. You can use any partition; even / will do fine. A file 128 MB in size will be created on this partition. To change the size, modify the count parameter of the "dd" command.

$ dd if=/dev/zero of=/media/hda1/casper-rw bs=1M count=128
128+0 records in
128+0 records out
134217728 bytes transferred in 0.947819 seconds (141606919 bytes/sec)

$ mkfs.ext3 /media/hda1/casper-rw
mke2fs 1.38 (30-Jun-2005)
/media/hda1/casper-rw is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
32768 inodes, 131072 blocks
6553 blocks (5.00%) reserved for the super user
First data block=1
16 block groups
8192 blocks per group, 8192 fragments per group
2048 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.

That's it! You can now boot the Live CD as described below.
Does that help?
Old 02-01-2010, 10:11 AM   #3
Registered: Oct 2007
Location: Stockholm Sweden
Distribution: Snow Puppy and Fluppy and Lupu frugal install
Posts: 279

Original Poster
Rep: Reputation: 33

I am writing now from within frugal install of SuperOS which is the regular Ubuntu with a lot of extras that are propertiary something. So he has to rename it.

I had placed persistent text wrong in menu.lst som maybe it works better now.

that text you linked to also says
It would also be possible to keep the image on a local hard-drive
That is what Wubi does but they do like you create a special kind of loop mounted file that is in other format.

I have one such 1GB there but it failed and now I have a 250MB one there that should work. I most likely describe here if it did work.

The frugal install of SuperOS has survived many reboots now and have been working many hours without crashing. But maybe it crash when the casper-rw get activated.

I tried this program in virtualbox but Firefox crashes when one play streaming video. Maybe hogs too much memory. I only have 2 or 3GB.

Do you get if I have to set priveledge for "live session user" and where can I do that. The only user I find is ubuntu and ubuntu 9.10 but I have no passwords for them.

Last edited by nooby; 02-01-2010 at 10:12 AM.
Old 02-04-2010, 05:46 AM   #4
LQ Newbie
Registered: Dec 2006
Posts: 8

Rep: Reputation: 1
You could try this, not quite what you want but an interesting project?
Old 02-04-2010, 06:08 AM   #5
Registered: Oct 2007
Location: Stockholm Sweden
Distribution: Snow Puppy and Fluppy and Lupu frugal install
Posts: 279

Original Poster
Rep: Reputation: 33
thanks indeed. That solves how to do it on USB. Could one use that on a HDD too?
I have to make a usb and try first and then look at the boot files to see how they do it.

Looks very promising. One don't need to take the iso files apart and that way they would not mix either. But the loading may take much longer time due to extracting from USB.

to extract 1GB take many minutes on slow USB flash memory.

But thanks indeed for reminding me of this multiboot exe thing. Could be the best compromise for me to try just now.

Aah yes I had downloaded that file 2009-12-25 already but failed to understand it so I did not know about it as a help for frugal install so I failed to realize that that one could be a solution for me. I could burn it to a usb and look at how they did it and that way re-use that knowledge to make many frugal installs.

You made my day. I have searched for a solution since December 2008 and renewed my search this December after giving up on it 2008. So this looks hopefull indeed.

Are you using it on an USB yourself? Does one need to use their isos? I want to use SuperOS instead of refular Ubuntu 9.10 and also test out 10.04

this way I wont have problem with grub2 would I?

they explain the fragementation thing

Boot Errors: While trying to run an ISO from USB, If you get a Boot error saying:

Error 60: File for drive emulation must be in one contiguous disk area

You'll need to defragment your ISO using one of the following tools:

contig - Command line tool to defragment ISO files.

wincontig – GUI tool to defragment ISO files.

Last edited by nooby; 02-04-2010 at 08:28 AM.
Old 02-04-2010, 08:25 AM   #6
Registered: Oct 2007
Location: Stockholm Sweden
Distribution: Snow Puppy and Fluppy and Lupu frugal install
Posts: 279

Original Poster
Rep: Reputation: 33
Wow that was working very good on usb.
wonder how one could use same tech on HDD.

the best news. If one use pendrivelinux method to create a casper-rw file then this version does remember changes to the Ubuntu or Super_OS_9.10.iso too.

But how it can know which casper-rw file to use I don't know yet.
It saves bookmarks in Firefox and saves login and passwords too and country settings. First time that works for me using usb drives.

so if I or somebody else can make this work for HDD that would be great.

I've rebooted SuperOS now three times and no crashes so this seems a stable method to use. How it react to updates of the OS I don't know yet.

I now have

Ubuntu 910
and can add as many as the USB have room for.

The program do a Grub4Dos thing and one can edit the menu.lst
with the grub legacy code for such. So maybe it will have problem with grub2?

I know to little to get such but it did load the Super_OS_9.10.iso file that I reedit the menu.lst to accept. Very easy to do.

But I failed on doing Mint due to the iso file getting fragmented. I have to use what they suggest to defragment because error message says that they need to be a consecutive file and not fragmented all over. So I get back and tell if I succeed to defragment it some hour from now

But wow thanks indeed for telling me about this way to do it. SuperOS worked like a charm and Puppy Stardust too and the two ubuntu did not get confused AFAIK.

Edit from within SuperOS on the Miltiboot USB.

It is very important that the iso file on the USB is a consecutive area. One have to defragment it with winconfig or similar linux application program. SuperOS worked and Puppylinux worked but then my 4GB mem stick had not enoough room for a consecutive area to defragment to so I will reformat it and start all over.

Now. I want this to work on the HDD. should not that work?

are there something special about USB or the boot process?

Last edited by nooby; 02-04-2010 at 09:29 AM.
Old 02-04-2010, 10:34 AM   #7
Registered: Oct 2007
Location: Stockholm Sweden
Distribution: Snow Puppy and Fluppy and Lupu frugal install
Posts: 279

Original Poster
Rep: Reputation: 33
Heheh typical of me to not understand enough to make use of this method on HDD.

why does it work on USB but not on HDD?

What happen to the MBR if I tell it to do its thing on the HDD?

It warned that the MBR will be overridden with theGrub4Dos own version of MBR?

That works on the USB apparently but when I try to use the Neogrub menu.lst and write same code into that one then it fails with error that it cannot and 255 heads or something.

So much to write down but if any of you know what it means I try to copy it by hand to paper.

and the Grub4Dos wants it to be LZ instead of GZ as the ending of one file. Why is that different?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] loading ubuntu with mint and vista Jesse W Ubuntu 5 10-14-2009 10:04 PM
PocketWriterLinux PWL, a Frugal Persistent Linux for CD, USB, and HDD! linus72 Debian 1 09-28-2009 07:07 AM
USB Persistent Ubuntu 9.04 installation using vista amd anhlon splittheory Linux - Newbie 4 08-25-2009 11:35 AM
Wubi - can I triple boot Vista/Ubuntu and Mint? dms05 Ubuntu 2 01-22-2009 02:04 AM
unable to install Linux on Vista machine sailend Linux - Newbie 3 05-09-2008 04:27 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:24 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration