I'm doing this with VMs. I'm using virtualbox and I made the mistake of creating a server with a dynamic disk. I then proceeded to create another virtual disk, a fixed one, into which I cloned the server OS. This because sda1 would not grow in size as it's supposed to in a dynamic disk, instead creating an extended partition and some other.  Having the server on a fixed disk did not help as sda1 remained the same size, only the extended partition got bigger.  So, I added that disk to a desktop version VM I had so I could comfortably use gparted and make the partition bigger manually.  Now, the extended partition and the other one (sda5) I don't remember the filesystem of, had these key symbols, and even running gparted with root privileges wouldn't let me delete or change those in any way.  So I turned to fdisk. I was able to easily delete sda2 and sda5, and then use gparted to make sda1 bigger. I left 1Mb at the end.  The problem I'm having now comes in here. The server will still say it doesn't have enough space to do this or that, even though it does.  server@ubuntu:~$ df -h Filesystem      Size  Used Avail Use% Mounted on udev            2.5G     0  2.5G   0% /dev tmpfs           508M  7.3M  501M   2% /run /dev/sda1       2.8G  2.7G     0 100% / tmpfs           2.5G     0  2.5G   0% /dev/shm tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           2.5G     0  2.5G   0% /sys/fs/cgroup /dev/sdb1        15G   47M   14G   1% /home/server/sxtngig tmpfs           508M     0  508M   0% /run/user/1000 server@ubuntu:~$ lsblk NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT sda      8:0    0    8G  0 disk └─sda1   8:1    0    8G  0 part / sdb      8:16   0   15G  0 disk └─sdb1   8:17   0   15G  0 part /home/server/sxtngig sr0     11:0    1 1024M  0 rom   As you can see, it has 8Gb but df can't see it. Is there a way I can make the server refresh the disk space? Maybe something in a file I need to change?
I rent a VPS that uses a SSD of 10GB (Debian 7) and I upgraded yesterday to their "second tier" plan that uses a 20GB disk. However, the "one-click-upgrade" process didn't work as I expected and what they did was to move my data to a bigger drive without actually extending the partitions. So now I have 10GB of unallocated space.  I do run around 5 websites on this VPS with mail accounts and all that jazz and I'm very scared to mess up anything so I called their support and they offered to do the job for me for 80 EUR that I find unacceptable since I thought it was included when doing the upgrade. Their older offers from last year used to be just a one click job but the excuse is that "SSD's are different, so it's up to the user".  Anyway, how can I actually do that without screwing things up and is it possible to do that on a "live" system?  I know a couple of commands so here it goes what I could find:  root@vpsxxxxxx:~# df -h Filesystem      Size  Used Avail Use% Mounted on rootfs          9.9G  7.6G  1.8G  81% / udev             10M     0   10M   0% /dev tmpfs           388M  200K  388M   1% /run /dev/vda1       9.9G  7.6G  1.8G  81% / tmpfs           5.0M     0  5.0M   0% /run/lock tmpfs           775M     0  775M   0% /run/shm /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client2/web2/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client1/web3/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client3/web5/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client5/web7/log /dev/vda1       9.9G  7.6G  1.8G  81% /var/www/clients/client4/web6/log  root@vpsxxxxxx:~# fdisk -l  Disk /dev/vda: 21.5 GB, 21474836480 bytes 4 heads, 32 sectors/track, 327680 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000     Device Boot      Start         End      Blocks   Id  System /dev/vda1   *        2048    41943039    20970496   83  Linux  root@vpsxxxxxx:~# sfdisk -l  Disk /dev/vda: 41610 cylinders, 16 heads, 63 sectors/track Warning: The partition table looks like it was made   for C/H/S=*/4/32 (instead of 41610/16/63). For this listing I'll assume that geometry. Units = cylinders of 65536 bytes, blocks of 1024 bytes, counting from 0     Device Boot Start     End   #cyls    #blocks   Id  System /dev/vda1   *     16  327679  327664   20970496   83  Linux /dev/vda2          0       -       0          0    0  Empty /dev/vda3          0       -       0          0    0  Empty /dev/vda4          0       -       0          0    0  Empty
Computer doesn't boot up, shows PXE error and/or "operating system not found", "no bootable device", "insert boot media", or other similar error My computer no longer boots Windows or the installed operating system. Instead, I may get this error:  PXE-E61: Media test failure, check cable -or- Check cable connection!  PXE-M0F: Exiting PXE ROM.   and/or one of the following messages or similar:  Operating System not found  No boot device available- No bootable devices--strike F1 to retry boot, F2 for setup utility  No bootable device -- insert boot disk and press any key  No Boot Device Found. Press any key to reboot the machine  Default Boot Device Missing or Boot Failed  Reboot and Select proper Boot device or Insert Boot Media in selected Boot device   What does this mean and what can I do?     This question comes up often and the answers are usually the same. This post is meant to provide a definitive, canonical answer for this problem. Feel free to edit the answer to add additional details. How can Innodb ibdata1 file grows by 5X even with innodb_file_per_table set? I have innodb_file_per_table set and just today my ibdata1 file jumped from 59M to 323M after I made several changes to an 800M table to reduce it to about 600M. That particular table's .ibd file was reduced but the server's ibdata1 file went crazy. Any ideas? Word to describe using sarcasm or a similar approach to lead someone to recognise their own mistake Finding all functions $ f : \mathbb N^*\to\mathbb N^*$ such that for every $ x , y \in \mathbb N ^ * $, $ f ( x ) + f ( y ) \mid x ^ n + y ^ n $ Let $\mathbb N^*$ be the set of positive integers and $n$ be a fixed positive integer. How many functions $ f : \mathbb N^*\to\mathbb N^*$ are there such that for all positive integers $x$ and $y$, $f(x) + f(y)$ divides $x^n + y^n$? I want to add CaseComment and CaseHistory related list to my visualforce page.   &lt;apex:relatedList list=" " /&gt;  What should be the value for List attribute in the code defined above. When I added   &lt;apex:relatedList list="CaseHistory" /&gt; 'Histories' is also not working   &lt;apex:relatedList list="CaseComment" /&gt; 'CaseComments' is also not working  I get errors saying they are not valid child relationship name for entity Case.  Please help me out on this issue. How do I trim leading/trailing whitespace in a standard way? Is there a clean, preferably standard method of trimming leading and trailing whitespace from a string in C? I'd roll my own, but I would think this is a common problem with an equally common solution. Is there a 'rule of thumb' on the upper limit of how many related records in related objects an object should have to avoid slow page loading? Typically, each record in Salesforce will be 2kb large: .   However, let's say in an extreme example, the Opportunity object is related to 40 custom objects, each which has 100,000 records. The page would load much slower, especially in an older browser version.   1) Is there a 'rule of thumb' as to what the upper limit of how many related records an object should have?   2) Also, , there's an indication that there's some sort of tier-tuning per org based on the volume of data it has. Is that correct? And if so, are the volume ranges and respective tier-tuning capacity available? How can I repeat a command every interval of time , so that it will allow  me to run commands for checking  or monitoring  directories ?   There is no need for a script, i need just a simple command to be executed in terminal. Square roots of integers and cyclotomic fields For every $ N \in \mathbb Z$ there exists an integer $n$ such that $ \sqrt N \in \mathbb Q(\zeta_n)$.   I am struggling where to start this question, please suggest me few hints. $ apt-get install -f -o 'Dpkg::Options::=--force-confmiss --force-all --force-confnew --overwrite-conffiles' --reinstall at-spi2-core Reading package lists... Done Building dependency tree        Reading state information... Done You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies:  kde-workspace-bin : Depends: qdbus but it is not going to be installed  libqt4-dbus : Depends: qdbus (= 4:4.8.5+git192-g085f851+dfsg-2ubuntu4) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).   I don't quite understand "but it is not going to be installed". Why doesn't it install it then?  apt-get -f install does not help, it does nothing:  $ apt-get install -f Reading package lists... Done Building dependency tree        Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. How does HOTP keep in sync? Number of bitstrings with $000$ as substring I have $F_n$ number of bitstrings that have $000$, How would I prove that for $n \ge 4$ , $a_n = a_{n-1} +a_{n-2}+a_{n-3}+ 2^{n-3}$?  Now there are many  ways to go about this but if I choose starting a $n-3$ bit string and append it with $000$ how would I show that? Is it possible to skip releases during an upgrade? Possible Duplicate:          Is it possible to upgrade a 10.04 lucid installation to 11.04 Natty, without upgrading to 10.10 first? What about other versions? How to forbid keyboard shortcut stealing by websites in Firefox Many websites, especially everything involving rich text editing (this site is guilty as well), steal keyboard shortcuts normally used to control Firefox and make them do something else instead. It is totally infuriating when I press something like Cmd-number, Cmd-L, Cmd-T, or Cmd-K and it doesn't do what I want it to. Can I make it stop?  Actually, it would probably be for the best if I could forbid stealing of all Cmd-* shortcuts. I've never seen them used for anything useful. Is it possible? Last minute flight bookings - better to book online or at the airport? We had , which covered ground on what happens to flight prices over the period.  What I'm interested to know is if I had to fly out at short notice, say within 1-2 days, then am I better off booking within that 1-2 day gap online, or am I better off trying my luck directly at the airport (as long as I'm willing to wait at the airport) for a cheaper price? Is there any truth to rumours that airlines sell tickets at cheaper prices at the airport right before flights to fill empty seats or is that a myth? How can I install the Google Apps Package (Play Store, ...) on my Android device? I have recently installed a custom ROM and cannot find the Play Store. It seems like all apps that belong to Google are missing.  How can I install the Google Apps Package (Play Store, ...) on my Android device? ON creating BITMAP INDEX on a table in mysql throws error I have database named "demo_dev" and added a table named "countries".  I wanted to create a bitmap index on a column, say, region as it has fewer unique values, using following query.   CREATE BITMAP INDEX ON countries (region);   It threw an error as shown below:     You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BITMAP INDEX ON countries (region)'   What shoud be done for it to run successfully?  I just refered the following link :   mysql version : 5.5 How to clone ArrayList and also clone its contents? I'm trying to understand an algorithm that tries to map points from a lie group to its lie algebra using the exponential map. The background is the representation of 3d coordinate transformations as a lie group.  I can imagine, how one can map points on a manifold (eg a sphere) to the tangent space (tangent plane) at some point x on the sphere. I can imagine to create the tangent space by computing derivatives at that point x. But I cannot imagine how the exponential of some matrix is giving me that tangent space?  How can I envision the exponential of a matrix? Is there some picture or analogy I can use as intuition? What are the integer solutions to $a^{b^2} = b^a$ with $a, b \ge 2$ I saw this in quora.  What are all the integer solutions to $a^{b^2} = b^a$ with $a, b \ge 2$?  Solutions I have found so far:  $a = 2^4 = 16, b = 2, a^{b^2}  = 2^{4\cdot 4} =2^{16}, b^a = 2^{16} $.  $a = 3^3, b = 3, a^{b^2} = 3^{3\cdot 9} =3^{27}, b^a = 3^{3^3} =3^{27} $.  In the general case, $a$ and $b$ have the same set of prime divisors, so let $a =\prod_P p_i^{a_i}$, $b =\prod_P p_i^{b_i} $ with each $a_i \ge 1, b_i \ge 1$.  $b^a =b^{\prod p_i^{a_i}} =(\prod p_j^{b_j})^{\prod p_i^{a_i}} =\prod p_j^{b_j\prod p_i^{a_i}} $  $a^{b^2} =a^{\prod p_i^{2b_i}} =(\prod p_j^{a_j})^{\prod p_i^{2b_i}} =\prod p_j^{a_j\prod p_i^{2b_i}} $  Therefore, for each $p_j$, $b_j\prod p_i^{a_i} =a_j\prod p_i^{2b_i} $.  I haven't gotten any further than this.  I conjecture that there are no other solutions.