grub> set pager=1 grub> ls (…will list (hd0) (hd0,msdos2) (hd0,msdos1) and similar…) grub> ls (hd0,1) or (hd0,msdos2,1) or whatever-partition (…until you find the partition which contains /bin, /boot, /dev, etc…) grub> set root=(hd0,1) grub> linux /boot/vmlinuz-3.13.0–29-generic root=/dev/sda1 (…substitute your own kernel versions + disk partition, of course…) grub> initrd /boot/initrd.img-3.13.0–29-generic grub> boot Once this routine …
Category: Linux
Why Linux Debian shouldn’t be used for production environment
In my career, I sometime get to work in company who made the mistake to deploy Debian at large for their operations. The funny part, it always have a similar pattern. Some developer created an application / product and at the very beginning of the company, they didn’t have an IT operations team and as …
Discovering new Drive or LUNs on Linux without rebooting
Some discovery about the system When we run on live system, one of our task is to be able to add capacity without impacting production. It is often by adding storage either via a SAN interface or by adding new hard drive (Physical or Virtual) to a server. Unfortunately, once we add a new storage, …
Restore LVM from multipath LUNs after full OS restore
Discovery Find about Fibre Channel status In the below example host0 is showing problems and we cannot detect LUNs from that path. We can detect the problem by looking at the port type and speed that show Unknown *unconfigured*. In this case, it was the Fibre Channel cable that was defect and swapping it fixed …
How to register Clone RHEL to RHN
How to register Clone RHEL to RHN In order to register a Clone RedHat Enteprise to RHN and avoid having duplicate entry, you need to reset the unique SystemID of your Clone RedHat Enterprise. To do so, you will need to remove the file systemid which contain a unique identifier for your machine that RedHat …
Install VMWare Tools on Fedora
Installing VMware Tools on Fedora A freshly installed Fedora 21 guest comes preinstalled with open-vm-tools, an open-source version of the VMware tools for guest operating systems. However, these tools can’t do everything the proprietary version can; at least not on VMware Workstation. So here’s the steps required to swap things out and install VMware Tools on …
Terminator Cheat Sheet
Terminator terminal keyboard shortcuts – Cheat Sheet Quick shortcut useful to use with Terminator terminal in order to be way more efficient while working in a terminal. Here is a list of my favorite Terminator shortcut that I use daily. You can refer to the MAN page for even more shortcut: Splitting Screen: Ctrl-Shift-E: Will …
MySQL Reset root password
Effective way to reset the root password for MySQL server Source: MySQL Documentation B.5.4.1.2 Resetting the Root Password: Unix Systems On Unix, use the following procedure to reset the password for all MySQL root accounts. The instructions assume that you will start the server so that it runs using the Unix login account that you normally …
GlusterFS Algorithms: Replication (present)
GlusterFS Algorithms: Replication (present) March 12th, 2012 Jeff Darcy – originally on http://hekafs.org Replication is the most necessarily complex part of GlusterFS – even more than distribution, which would probably be the most common guess. It’s also one of the things that sets GlusterFS apart from most of its obvious competitors. Many of them simply require …
Gluster / GlusterFS Extended Attribute
GlusterFS Extended Attributes April 26th, 2011 Jeff Darcy – originally on http://hekafs.org Extended attributes are one of the best kept secrets in modern filesystems. Here you have a fully general feature to attach additional information to files, supported by most modern filesystems, and yet hardly anybody seems to use it. As it turns out, though, GlusterFS uses …