How does the bootloader pick up the command after a “restarting system with command”?
location: linuxexchange.com - date: March 5, 2012
Looking in the android source for the reboot command we find the following line:
__reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, \
LINUX_REBOOT_CMD_RESTART2, argv[optind]);
Which is the standard Linux system call to reboot the system with a specific command, see Unix System Call Reboot.
In Android this command is used to tell the bootloader to start either the kernel in recovery mode or to go to the fastboot mode within the bootloader.
My question is: How does the bootloader pick up the command? And is this functionality implemented in U-Boot? (I am unable to find it searching either through Google or in the U-Boot source.)
Additionally it seems this is not specific to Android, but is the way Linux performs a "reboot with a command". Any information on how this is "normally" handled/used in Linux?
vector<string> does not clear memory after out of scope
location: linuxexchange.com - date: July 26, 2013
i've encountered the following problem, and i'm not really sure whether i am wrong or its a really weird bug. I fill a huge array of strings and want it to be cleared at a certain point. Here's a minimal example
#include <string>
#include <vector>
#include <unistd.h> //sleep
#include <iostream>
int main(){
{
std::vector<std::string> strvec;
for(long i = 0; i < 1000000; ++i){
std::string out = "This is gonna be a long string just to fill up the memory used by this fucking pthread\n";
strvec.push_back(out);
}
std::cout << "finished loading 1st\n";
sleep(10); // to monitor any changes
}
std::cout << "out of scope\n";
sleep(10);
return 0;
}
My Problem is, if i monitor memory usage with 'top', the memory usage decreases just by a very small amount (i think its probably the vector overhead), but the most seems not freed. How comes? I tested the same scenari
How does a 7 or 35pass erase work? Why would one use these methods?
location: linuxexchange.com - date: December 3, 2008
How and why do 7- and 35-pass erases work?
Shouldn't a simple rewrite with all zeroes be enough?
How to clear cache memory in RHEL4?
location: linuxquestions.com - date: October 20, 2008
Hi All,
I am using RHEL4. When I give the free command. It gives following output.
total used free shared buffers cached
Mem: 32710352 6168032 26542320 0 144216 5464628
-/+ buffers/cache: 559188 32151164
Swap: 2040212 0 2040212
Here it seems cache memory occupies 5GB of memory.
Can anyone tell me how to clear this cache memory?
Regards,
Thamizh
Ubuntu Server Software Raid 5 How does the system boot if one drive goes down?
location: linuxquestions.com - date: April 18, 2014
Hello,
I am thinking of doing a raid 5 on an ubuntu server 14.04 system with 3 x 3TB drives and have a few questions...
1. How would the system boot if one of the drives goes down?
2. Is the boot loader installed on each drive?
3. If I pulled out a drive and put in a new drive, would it auto-rebuild or do I need hardware raid for that feature?
-Thanks
[SOLVED] How can one install Ubuntu 12.04 in spite of "internal error" during first install?
location: linuxquestions.com - date: June 20, 2012
I tried several times to install ubuntu 12.04 on my PC (specs see in my signature). I could determine the layout of the partitions, then format them and start the installations proper. After 53% - 57% of files copied I get a popup like so: "An internal error occurred. Possibly more information can be found in /var/log/messages".
/var/log/messages is not (yet) there, it is a multiboot installation with two openSuSEs and Fedora, thus I can check. This happens with 32 and 64 bit ubuntu from two different (download)-sources. I could install 12.04 on my Acer Aspire One 722 netbook from the same stick.
So up to now I stay behind with no clue at all . I could install 11.10 some time ago on the PC. Any ideas how to proceed from here?
“ALERT /dev/sda1 does not exist dropping to shell” after Ubuntu 10.10 install reboot
location: ubuntuforums.com - date: March 28, 2011
Hi. I am attempting to install Ubuntu 10.10 desktop on a Dell T7500 with two SAS drives in hardware RAID 0. Running from the CD works fine. The install process works fine. I have configured several different filesystems for /, /usr, /home, etc. The problem is that upon reboot after install, during initrd the system complains "ALERT /dev/sda1 does not exist dropping to shell". From within the initramfs shell I am able to mount all partitions successfully. Can anyone tell me what might be wrong or how to diagnose this?
How does Ubuntu 13.04 mount iso automatically in /media on single click?
location: ubuntuforums.com - date: August 26, 2013
How does Ubuntu 13.04 mount iso automatically in /media on single click?
I want to know the package(s) used for this functionality.
Thanks You
How does QEMU shuts down a Guest OS.
location: linuxquestions.com - date: June 3, 2011
Hi,
I am trying to understand the internals of the shutdown procedure in a virtual machine.
The aim is to understand:
1) How does the QEMU process, shuts down the Guest OS gracefully.
Any pointers in this regard would be useful
Thanks,
Alphonse
How does MySQL store stuff?
location: linuxquestions.com - date: January 15, 2013
.... I *trust* that if I have fields in a database, and they are empty for a particular line, it does NOT take up that amount of space on the disk?
please wait...
Page: 1 2 3 4 5 6 7 8 9 10