Have you ever wanted the Ubuntu LiveCD to have a ToRAM feature like knoppix? I know I have. Looking around online, a HOWTO that focuses on this exact topic is [url] . [url] hasn't been updated since Ubuntu 9.10 was released however, and some things it mentions no longer work as it describes (especially things dealing with the bootloader). It also isn't the easiest HOWTO to follow (maybe that's just me) mainly because of the multiple things that need to be mounted and kept track of. This is why I spent a few days developing a script that will take an Ubuntu ISO, and add a ToRAM feature to it. I used [url]and [url]as my two main sources of information so thanks to the authors of both those pages for making this script possible.
What is a ToRAM feature?
A ToRAM feature is something that copies the entire CD to RAM before running the live environment. I first saw this done by knoppix, one of the first linux distributions I've ever tried, and now this can be done with Ubuntu as well.
Why do this?
There are several reasons:
Speed: A LiveCD environment is usually considered to be slower than a regular install of Ubuntu. This is because instead of running from the hard drive, the LiveCD runs right from your CD, and since CDs are slower than hard drives, this results in a slower Ubuntu then you may be used to. A ToRAM feature addresses this issue. This is because when the LiveCD environment runs from your RAM, it is not only faster than a regular hard drive install (due to RAM's insane speeds), it is also faster than any SSD.
Getting your CD Drive back: If you boot into a LiveCD environment from a CD, Ubuntu needs that CD to operate. If you have a single CD drive (like most of us do), you can no longer use that drive. If this is a problem for you, the ToRAM feature addresses this as well since it doesn't need the Ubuntu CD to operate, allowing you to remove it and replaces it with any other CD.
Fast Install: Although Ubuntu's install process is fast, it can still take a while before it finishes. If you install Ubuntu often, and don't have the patience to wait for it to finish every time, you can speed up the process by using the ToRAM feature. As an added bonus, if you are installing Ubuntu on many machines at once (like in a library or a computer room), the ToRAM feature allows you to do this in parallel since you won't need the CD for 99% of the installation (only to start it).
What will this work on?
This should work for Ubuntu 10.10 x86 or amd64, but keep in mind:
Quote:
Originally Posted by [url]
The architecture (Amd64 or i386) to be stored on the LiveCD should be the same as the architecture used to perform the customization, or the LiveCD may not run. It is not trivial to customize an AMD64 LiveCD using an i386 operating system, for example.
Word of Warning
Although I try to build safeguards into any script I upload to the internet to keep them from doing anything unexpected, including this one, you may want to run this script in a VM where it's safe. You could also try running it from a live CD where, if it goes rouge for some reason, it won't kill anything.
I've just created a bootdisk (ssd) with multiples Squasfs images I can choose to boot at the Grub2 menu.No I tried to put the sqfs-images into a ramdisk. Therefore I edited the script '/usr/share/initramfstools/ scripts/ casper'. I used the 'dirty hacks'in the ubuntuforums.org/boottoram howto but I suited them for my needs.Now the Systems stops after the kernel and doesn't find a root system.
The sqfs-image without the modification of the 'casper'-script still boots but doesn't load into ram completely.
No matter what I do, the SWAP usage remains zero all the time. Is there anything I am missing? In the following case (see attached screenshot) I am running make on the kernel that I downloaded. The CPU usage is understandable. But what is the use of Swap when its never used. [URL]. I am on Kubuntu natty. My partitions are as follows:
I am using malloc and frees a lot in my program. It shows its allocated but when i remove it doesnt show as the memory is removed(I am using the top command to view VIRT memory usage). If this continously grows what would happen to my program (Will it go out of memory?)
I have a computer with 16GB of ram. At the moment, top shows all the RAM is taken, (NOT by cache), but the RAM used by the various processes is very far from 16GB.I have seen this problem several times, but I don't understand what is happening.My only remedy so far has been to reboot the machine.
This is my first post in these forums. I'm still quite new to Linux (using Mint 9) so please bear with my not-very-articulate question(s)When I boot up and open up a tty terminal I get a message saying "Memory corruption detected in low memory." I've done an extensive google search about the issue and it seems not uncommon. I ran a memtest with no errors returned, so I'm sure that there's nothing really wrong with the memory; apparently it's a bug in the kernel that's causing this.
I found from command 'top' that 8GB memory are used. However, using command 'ps' with some options to grep the running processes and then summing up the memory used by the running processes are less than 2 GB. Where has the used memory gone ?
This is my first day with Debian, I have used other distros, and am a long time linux user. My HP D 1600 series is recognized, but when I try to print a test msg. it says sent, but the printer remains idle. I have tried everything I know. When I run the trouble shooter I get this. /// /usr/lib/cups/backend/hp failed////
In the past when having a printer problem I have installed HPLIP-gui and removed the printer then re-installed it. That has not worked and I cannot even remove the printer.
When I boot without the AC cable plugged in the Power Applet says I am on AC power (but the notebook is of course running on battery power). Which is bad because I don't know how much battery time still remains. Strangely, when I boot on AC Power and then remove the AC cable both the fact that battery power is used and the remaining battery time is shown correctly. Also when I boot into battery power and then plug in the AC cable it correctly shows that the battery is charging and how long it takes until fully charged. I use Ubuntu 10.10, 32bit on an Acer Aspire One 751 if that helps. The problem has also existed in Ubuntu 10.04 and I hoped the update would solve it but it did not.
after an update i cannot my pc remains in the log on screen. I insert my password then the screen goesn and of and after 4 secondit goes back in the logon screen. I run the following
I have a problem with my Debian squeeze system. After I have run some CPU-intensive application for a while the system becomes sluggish. Ok, maybe one would expect that. But. The system remains sluggish even after that process has been killed and then top shows high cpu usage from unrelated processes and a high %sy percentage as well. I don't really know where to begin solving this problem except I've checked that this is specifically related to (at least) CPU use as opposed to heavy memory use or IO (by running an application with low mem/no io but high cpu use). I am running the latest standard kernel from squeeze, 2.6.32-5-686. Also, thing is, I remember having similar problems with other Linux distros before, where for example gzipping a large file would cause the same. I did not have similar problems on {Net,Open}BSD, so a hardware fault seems an unlikely reason to me.
When I boot, apparently any Linux (Ubuntu and CloneZilla), I see the letters Code: ^]]B scroll pass, over and over again. This represents the down key as when I try to do anything the down key is held down. This occurs during boot on Ubuntu (once I get to the login screen it stops and does not happen). This does not happen at the GRUB screen or in Windows. It also occurs during the entire CloneZilla process and Ubuntu alternative install process (making both of these impossible)
I can't find any reason for this to happen and have been using both CloneZilla and Ubuntu for a long time before this happened. Does anyone know what I could try to fix this.
I installed ubuntu via virtualbox one day for fun, just to test it out. I didn't really need it, so i deleted the partition it was on and resized my hard drive. Thing is, when i startup my computer, ubuntu is still listed as an operating system, but whenever i go to choose it, my computer says "this file is missing or corrupt." I was just wondering if i make it so Ubuntu is not even shown on the screen anymore.
I used this command on Fedora11 for panning on my Acer Aspire One 150 it works but the next time that i restart the OS i have to issue the command again!
I'm having a problem with krusader. When I open and close it, it remains with a sleep status. This can be verified by the system monitor and by the "ps aux". The krusader only go away if I use killall. This is occurring in more than one machine. I'm using squeeze gnome 64 bits.
I had Fedora 7 and Windows-XP dual operating system. Few weeks ago, there was GRUB error. Now I want to install Fedora 14, but before it I want to back up all data in one external hard drive. I used Fedora 13 live-CD I could access all the drive formatted as NTFS, but I couldn't access /home and the drive formatted (ext2) and owned by the user-name.
Please, inform if there is any idea to copy my files that remains in the home folder. (I can see them but copying is prevented)
I have two queries,when am using skype e.g and I close it,it remains running in the background however I cant maximise it again.(have to kill it and then start it again).ALT+ TAB brings the other processes but not skype.It's still running and I can see notifications.2.In firefox,when am scrolling down a page,the text gets mingled into each other,i have tried to edit options in firefox (autoscrolling and smooth scrolling) but no positive change.
I reclaimed the hard drive space on my hard drive entirely for Windows 7 with the intention of installing another hard drive solely for Ubuntu. When I reboot my computer it still gives me the option to choose Windows or Ubuntu. I tried Ubuntu just to see what happens and all that came up was some error and an option to type in help for a list of commands. And if it makes a difference I was running Ubuntu 11.04.
So I'm pretty awful at keeping Debian up to date, I guess. I'm using cron-apt to fetch updates every night, then apply them whenever I get around to it. Well, I neglected that last part for a month or two, and after some routine downtime to clear the case of dust, I decided it was time to upgrade. So I ran the command, everything checked out fine, and I was on my merry way. Until a half-hour ago when I accidentally shutdown the computer (I use the same zsh prompt on each computer, so I got them confused.) I turned it back on, only to be greeted with a black screen after all the services started up.
Everything works: ircd, MPD, etc. EXCEPT, of course, X. At first I thought the update broke SLIM, but after checking htop and doing a killall slim, it doesn't appear to be running (the screen remains black.) I hit Control-Alt-f2 to get to get back to a terminal, then tried doing startx, which freezes the computer entirely. All the network services stop, I can't SSH in, etc. It's dead. If I'm not mistaken, Xorg.0.log should say something, but I'm not a huge expert on it. The last line isn't an error, I can tell you that. So what's the deal here? apt-get remove xorg and start over?
I recently came to Debian. As I have an ati card, I tried the proprietary drivers first, but then came back to radeon (open-source). In the process, I think I may have broke my xorg.conf . Sometimes, when the monitor goes into sleep mode, when I came back, the screen remains black (sometimes I see just the cursor).
Here is my xorg.conf # NOXORGCONFEXISTED: No X.org configuration file existed when this backup was created.
Also, I have lots of backups in my X11 folder, like xorg.conf.fglrx-3, xorg.conf.original-1, or backup.xorg.conf. Is it safe to remove them? What should I do about the main xorg.conf?
I use my system as my stereo. It's the only thing I listen to. For quite some time now though, I have had a problem with audio not being properly played. What I get is what sounds like reverberation in the audio feed. I found that increasing the amount of time for the feeds to be buffered helps, but only partially.
I also installed another parallel system in this very same computer (on a different disk) which initially didn't have this problem. But then I did an upgrade and the problem became apparent on that system also. However after having done a couple of reboots, I noticed the problem disappeared. Now that system running is running clean as it was initially.
This may be an issue with my nVidia drivers. I'm not sure. Because I noticed problems on the second parallel system after attempting to install the proprietary nVidia graphics driver, which had numerous unpleasant side effects. So I removed it. But the problem didn't go away immediately. Only after I had rebooted a number of times did the sound begin to play as it would normally be expected to.
My primary system, the one from which I am now posting this runs KDE. But on the parallel system, due to a much smaller disk space, I am running XFCE. So this isn't a KDE-only issue.
I am looking to buy some memory for my netbook. Currently I have 1 GB of DDR3 memory. However, the specification says that 2 GB of memory is the max. However, when I do the following it says that 4GB is the max:
I am looking for free database that has low memory usage and innodb and memory like engins that has C API and support trigger and client/server support for using in embedded linux systems.
I am new to C and linux. My code below does arbitary writes but I cant figure out where or how it does it.
I am calling the insertNode() function with seq = 'MISSISSPPI$' and alphabets = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ$'
Code:
Weird behaviour I should mention is that when I check for NULL pointer in node->child[index], the unassigned values are not null anymore, they point to arbitary memory.
we found that if we use 'top' to show the memory usage of a server (SuSe Linux 10), we can get virtual memory usage as well as 'Resident memory' usage. For virtual mem or a particular process, it is around 1.1GB, which is large but for resident memory, it only consumes 300MB. Are there anyone who knows what the differences are? I would also like to know whether the difference (1.1GB - 300MB) = 800MB are actually available for use by other applications in the system.