CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

OpenFOAM-dev Live USB DVD, based on kubuntu

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 13, 2010, 08:12
Default update stick
  #21
New Member
 
Hansjoerg Seybold
Join Date: Mar 2009
Posts: 15
Rep Power: 17
hansjoerg is on a distinguished road
Hi,
I just downloaded the kbuntu iso and installed it on a 8GB
pendrive. Everything looks fine, really nice.
When I wanted to update/upgrade:
apt-get update, apt-get upgrade
It failed because of insufficient memory. Looking at the disk partitioning i realized that the virtual / partition
is only 1Gb big.
the whole stick is mounted as /cdrom correctly with >6Gb
free. I looked a bit around but i could not find a description how to increase the virtual partitions on the live stick.

Do you have any hints?
Thanks a lot,
hansjoerg

Last edited by hansjoerg; August 13, 2010 at 15:33.
hansjoerg is offline   Reply With Quote

Old   August 16, 2010, 09:28
Default
  #22
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings hansjoerg,
Quote:
Originally Posted by hansjoerg View Post
When I wanted to update/upgrade:
apt-get update, apt-get upgrade
It failed because of insufficient memory.
Are you sure it failed with insufficient memory? Wasn't it lack of disk space? Because 1GB of swap is more than enough for running apt-get and installing updating packages! It shouldn't be even necessary to hit the swap!
I haven't tested this installation in a USB drive yet, but my guess is that there wasn't any space allocated for working with files! And if /cdrom has the whole 6GB space for itself, it might be defined as read-only.

By my experience with Live Ubuntu's in USB drives, lets try the following commands, and perhaps you can post your results here:
  • Code:
    df -h
    This will give you a detailed space usage per mount, in human readable values (GB, MB, kB)
  • Code:
    mount
    This will list what mounts are active and with which options. This can help us check if /cdrom is read-only or read-write.
  • Code:
    ls -l /cdrom
    With this we can check if it is giving you a list of the contents of the USB drive.
Now, if /cdrom is writable, and has a lot of space available, then you can create a file for storing data in EXT3/4 format. For that, follow these instructions (based on these instructions):
  1. Create the file that will have a 2GB EXT3 file system
    Code:
    dd if=/dev/zero of=/cdrom/ext3file bs=1M count=2048
    mkfs.ext3 /cdrom/ext3file
  2. Mount it in the folder /mnt:
    Code:
    sudo mount -t ext3 /cdrom/ext3file /mnt -o loop
  3. Copy the current /var and /tmp into the mounted file:
    Code:
    sudo cp -r /var /mnt/
    sudo cp -r /tmp /mnt/tmp
  4. Remove the folders and link them to the new ones:
    Code:
    rm -rf /tmp /var
    ln -s /mnt/var /var
    ln -s /mnt/tmp /tmp
And voilá, you now have space for the temporary files, for apt-get to get it's business going. Although, this won't cover the bigger issue: the apparently missing casper-rw file Without it, apt-get won't be able to install the contents of the packages... snap, why did I write all of this above

OK ok... lets go back a few steps... Hansjoerg: how exactly did you install the ISO in the USB drive? Did you install it as a Live CD/DVD/USB or as if you were installing in a hard drive?
For more instructions for Ubuntu's Live USB, see here: https://wiki.ubuntu.com/LiveUsbPendrivePersistent

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   August 16, 2010, 11:02
Default
  #23
New Member
 
Hansjoerg Seybold
Join Date: Mar 2009
Posts: 15
Rep Power: 17
hansjoerg is on a distinguished road
Hi,
Thanks for the detailed instructions. I will try that out.
I installed the iso as a live-cd using the usb-creator which comes with ubuntu and I also tried out UNetbootin
The partitioning of the stick is as follows
ilesystem Size Used Avail Use% Mounted on
aufs 1003M 39M 964M 4% /
none 998M 292K 998M 1% /dev
/dev/sdc1 7.5G 1.6G 6.0G 21% /cdrom
/dev/loop0 1.3G 1.3G 0 100% /rofs
none 1003M 0 1003M 0% /dev/shm
tmpfs 1003M 92K 1003M 1% /tmp
none 1003M 92K 1003M 1% /var/run
none 1003M 0 1003M 0% /var/lock
none 1003M 0 1003M 0% /lib/init/rw

and actually the cdrom was really mounted readonly, but i cannot unmount and
remount it due to the fact that the root file system is on the stick.
I have a casper directory with 1.3 GB big filesystem.squashfs
After the update /tmp is 100% full and dpkg breaks with the error message that it cannot write on device anymore. Then kde hangs up.
Should i make a normal install on the stick to get a "normal" ubuntu installation.
This definitely then would require much more space on the stick, but if it is too
complicated to create a "rw" live image, then i can also go this way

thanks hj






best hansjoerg

Last edited by hansjoerg; August 17, 2010 at 08:07. Reason: update information
hansjoerg is offline   Reply With Quote

Old   August 17, 2010, 20:03
Default
  #24
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi hansjoerg,
Quote:
Originally Posted by hansjoerg View Post
(...)
usb-creator which comes with ubuntu
(...)
After the update /tmp is 100% full and dpkg breaks with the error message that it cannot write on device anymore. Then kde hangs up.
It's as I figured... you only have temporary memory activated. In other words, the 1GB of RAM is used for both memory and disk space.

Attached is a picture with notes in red, indicating where you should define casper-rw file to be active. Pull the slider to the extreme right... it should give you 2 or 4GB of workspace. The slider will only be available after picking the USB drive and ISO... both of which I didn't do for the picture Then write again to the USB drive and you should be ready to go!

But since you want to do a lot of upgrades to the Live DVD, then you better follow these instructions for installing Ubuntu (while taking into account that you are using KUbuntu) directly on an USB drive: How To: Install Portable Linux Ubuntu on a bootable USB Flash Drive from SUN VirtualBox

Best regards,
Bruno
Attached Images
File Type: png casper-rw.PNG (55.5 KB, 17 views)
__________________
wyldckat is offline   Reply With Quote

Old   October 6, 2010, 05:56
Default
  #25
New Member
 
CFD user
Join Date: Apr 2010
Location: Germany
Posts: 28
Rep Power: 15
subhkirti is on a distinguished road
Hello Henrick,

I am trying to install the tgz version of OpenFOAM Workshop-USB-Stick but I am having a problem. I downloaded the .tgz file on to my laptop, and then extracted the compressed file in the USB stick. Then, I ran the boot/bootinst.sh and it said that the drive is bootable now. However, when i change my boot preference and boot my device from the USB stick, it gives me the following message :

No default or UI configuration directive found.
boot :/

I have no clue as to how to solve this problem. Can you help me out with the installation
__________________
Thanks,
subhkirti is offline   Reply With Quote

Old   December 17, 2012, 06:31
Default Boot Options
  #26
New Member
 
Fluids Guy
Join Date: Dec 2012
Location: USA.
Posts: 1
Rep Power: 0
amhines is on a distinguished road
Henrik,
The USB iso is a fantastic idea. I have successfully loaded my 8Gb drive with the iso image. But I am not getting happy yet. First I tried it on my IBM T-60.

Not a 64 bit machine - failed. (IS THERE A 32 BIT VERSION?)

Then I put it in my W520 from work. I get a Welcome screen with 5 options. The first is "live - boot the Live System"

This sounds good, so I go for it. But it thinks and thinks and eventually says it can't find any media with a live System. ???

There is also a "start the installer directly", but won't this try to write to my (sacred company's) hard drive?

Thanks.

Albert
amhines is offline   Reply With Quote

Old   October 11, 2013, 11:48
Default live usb files still available?
  #27
New Member
 
Join Date: May 2013
Posts: 11
Rep Power: 12
peppino is on a distinguished road
hi,
i wanted to download the file for the live usb from:
http://sourceforge.net/projects/openfoam-extend/files/
but I could't find them. have they been removed?
peppino is offline   Reply With Quote

Old   October 11, 2013, 14:36
Default
  #28
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Quote:
Originally Posted by peppino View Post
hi,
i wanted to download the file for the live usb from:
http://sourceforge.net/projects/openfoam-extend/files/
but I could't find them. have they been removed?
Yes, they have been removed.

Those live images were containing some files we could not longer distribute. So we had to remove them.

Martin
mbeaudoin is offline   Reply With Quote

Old   October 11, 2013, 21:26
Default
  #29
New Member
 
Join Date: May 2013
Posts: 11
Rep Power: 12
peppino is on a distinguished road
Martin, thank you for the answer.
such a sin for the live usb. is there any plans for a new distributable version?
peppino is offline   Reply With Quote

Old   October 11, 2013, 22:09
Default
  #30
Senior Member
 
Martin Beaudoin
Join Date: Mar 2009
Posts: 332
Rep Power: 22
mbeaudoin will become famous soon enough
Quote:
Originally Posted by peppino View Post
Martin, thank you for the answer.
such a sin for the live usb. is there any plans for a new distributable version?
I don't know.

In previous years, live-usb images were created as support material for the Workshop's training, and quite often distributed pre-installed on USB sticks to the Workshop participants.

So I would not be surprise if a new live-usb version will pop up just before OFW9...

Martin
mbeaudoin is offline   Reply With Quote

Old   January 24, 2020, 11:25
Default OpenFOAM v7 on live usb
  #31
New Member
 
ShreeJeeth
Join Date: Sep 2019
Location: Chennai
Posts: 2
Rep Power: 0
ShreeJeeth is on a distinguished road
I was wondering whether a live sub has been created for OpenFOAM v7 now as a live usb created last time was for the version 5 and as it was so helpful for everyone without a linux operating system installed, it would be great if anyone shared their knowledge regarding this topic.
ShreeJeeth is offline   Reply With Quote

Reply


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 On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM-dev Live USB CD, SLAX based hellorishi OpenFOAM Installation 34 May 31, 2010 01:18
OpenFOAM Live USB based on openSUSE 11.1 created with SUSE Studio alberto OpenFOAM 40 May 23, 2010 16:15
OpenFOAM 1.5 dev LVDH OpenFOAM 98 May 5, 2010 17:01
[OpenFOAM] Paraview/Parafoam in OpenFoam 1.5 dev titio ParaView 0 December 9, 2009 12:12
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56


All times are GMT -4. The time now is 02:31.