I got stuck when trying to extend the root partition. The partition table ended up broken and I cannot boot into the system.
- download Hiren Boot CD, it will come in .iso format
- install syslinux in the system (
sudo yum install -y syslinux)
| #!/bin/sh | |
| path="/var/log/server-status" | |
| ddd=`date +%Y-%m-%d` | |
| logfile=$path/$ddd/logfile.txt | |
| lockfile=$path/getstatus.running | |
| ### Check if one instance is running, if not create a lockfile and run the script | |
| if [[ -f $lockfile ]] ; then | |
| exit | |
| fi |
| #!/bin/bash | |
| # Taken from https://medium.com/netflix-techblog/linux-performance-analysis-in-60-000-milliseconds-accc10403c55 | |
| # initialize array | |
| COMMANDS=('uptime') | |
| # add systemctl command if it's installed | |
| command -v systemctl >/dev/null && COMMANDS+=('systemctl list-units --state=failed') | |
| # add more commands | |
| COMMANDS+=('dmesg | tail' | |
| 'vmstat 1' |
| wget http://speedtest.fpt.vn/speedtest/random4000x4000.jpg -O /dev/null | |
| wget http://speedtestkv3a.viettel.vn/speedtest/random4000x4000.jpg -O /dev/null | |
| wget http://speedtest3.vtn.com.vn/speedtest/random4000x4000.jpg -O /dev/null |
I got stuck when trying to extend the root partition. The partition table ended up broken and I cannot boot into the system.
sudo yum install -y syslinux)NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.
If you are not into long explanations, see [Paolo Bergantino’s answer][2].
I hereby claim:
To claim this, I am signing this object:
FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.
| " copy all this into a vim buffer, save it, then... | |
| " source the file by typing :so % | |
| " Now the vim buffer acts like a specialized application for mastering vim | |
| " There are two queues, Study and Known. Depending how confident you feel | |
| " about the item you are currently learning, you can move it down several | |
| " positions, all the way to the end of the Study queue, or to the Known | |
| " queue. | |
| " type ,, (that's comma comma) |