Posts Tagged Ubuntu

Ubuntu tips: grub rescue and apparmor

Installed Ubuntu on Old laptop for testing new thing like Docker. met 2 issue.

Issue 1. Update the disk partition table caused the grub confused.
I have 4 slice of my harddisk, /dev/sda1 for Windows. /dev/sda5 for windows 2nd partition. /dev/sda6 for Ubuntu./dev/sda7 for Ubuntu swap.
when I need more space for linux, I remove /dev/sda5. then /dev/sda6 become /dev/sda5 …. that confused grub. because grub still hold the record /dev/sda6 is the linux partition.

Fix: grub rescue>ls
grub rescue>set
Read the rest of this entry »


No Comments

Grub2: fix dual boot issue

Trying boot from livecd to fix the dual boot issue.
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).

set the /boot/grub path
root@ubuntu:~# mkdir /a; mount /dev/sda1 /a # sda1 is the root you installed linux
root@ubuntu:~# grub-install /dev/sda –boot-directory=/a/boot/grub
Installation finished. No error reported.


No Comments

How to enable apache modules in Debian/Ubuntu-likes

sudo a2enmode rewrite

, ,

No Comments

Install Skype on Ubuntu 9.10

$sudo dpkg -i skype-ubuntu-intrepid_2.1.0.47-1_i386.deb

Now you get the Skype in your Internet Apps is an good place for media players…

No Comments