Pages

Showing posts with label Dual boot. Show all posts
Showing posts with label Dual boot. Show all posts

Thursday, January 24, 2013

How to fix GRUB2: customize boot menu

GRUB2 is an upgraded version of GRUB. It has a lot of improvements such as scripting support including conditional statements and functions, dynamic module loading, rescue mode, etc. GRUB2 is the default boot loader and manager since Ubuntu version 9.0 (Karmic Koala).

Here I concretely present how to customize boot menu of GRUB2. First we can edit the file /etc/default/grub. The parameters can be studied from the link as I have just mentioned above. Then we run the command update-grub to update the file /boot/default/grub.cfg
I think that the solution of this issue is not really hard if we understand mechanism and structure of boot manager.

See more details from the following links:

  1. http://www.webupd8.org/2009/12/how-to-recover-grub2-linux.html
  2. http://www.webupd8.org/2011/02/live-cd-to-fix-restore-grub-and-grub2.html
  3. Which partition to install boot loader on?

Thursday, January 17, 2013

Synchronize MySQL databases between Ubuntu and Windows

Solution 1:  Unify the folder data of XAMPP on Ubuntu and Windows. Both of the operating systems point to the same folder. See more details in the following post:
http://stackoverflow.com/questions/4638981/is-it-possible-to-use-the-same-mysql-database-for-windows-xampp-and-linux-mysql/14368403#14368403

Solution 2:  Install a mini Linux distribution such as Slitaz, Alpine, etc.  that plays a role of a dedicated server. Of course, it will operate like a virtual server using VMWare or Oracle VirtualBox. After that, we set up MySQL server into this server. In the case of using SQL Server, Windows XP is a suitable choose. But we must face to the problem of copyright as well as license. See more details in the following link:
http://ubuntuforums.org/showthread.php?t=776077

Solution 3: Run a portable XAMPP on USB or External HD. The problem is that how can we do the same version.

Synchronize data on computers installed more operating systems

This article posted in 2008 but it's till been employed useful in many cases of our life.
http://lifehacker.com/348858/use-a-single-data-store-when-dual-booting

Nowadays browsers Google Chrome and FireFox equiped this feature helps users to synchronize   history, extensions, apps and bookmarks without taking into account other utilities.

Sunday, November 8, 2009

Dual boot Linux and Vista (or XP)

Sau gần vài tiếng đồng hồ thử nghiệm và cấu hình, cuối cùng tôi cùng tìm ra được cách edit GRUB để có thể cài một lúc Ubuntu và Vista (hoặc XP) trên cùng một máy tính.

Cách 1: Chỉnh sửa GRUB bootloader trong Ubuntu.
Cho dù bạn cài Vista hoặc Ubuntu trước, cách này đều hiệu quả.
Dùng đĩa Ubuntu Live CD (nói dễ hiểu là đĩa cài đặt Ubuntu và dĩ nhiên nó phải có tính tự boot được, tiếng anh là bootable) để khởi động hệ thống. Trên menu điều khiển, chọn Try install Ubuntu without.... để chạy trực tiếp Ubuntu trên đĩa CD mà không cần cài đặt. Khi đó, bạn chỉ cần chỉnh sửa GRUB theo bước sau:
  1. Từ Terminal, gõ lệnh: sudo -i để không cần phải gõ lại sudo (vì tất cả các thao tác này đều liên quan đến hệ thống, phải có quyền tương đương với root mới có thể thực hiện được)
  2. Dùng lệnh: fdisk -l để xem danh sách các phân vùng (partitions), xem phân vùng nào cài đặt Ubuntu, phân vùng nào cài đặt Windows (lệnh này chỉ test, không quan trọng).
  3. Gõ: grub
  4. find /boot/grub/stage1 để tìm phân vùng cài đặt Ubuntu, kết quả sẽ là một dòng dạng: hd?,? --> dấu ? thứ nhất là số hiệu của ổ đĩa, nếu máy tính của chúng ta chỉ có duy nhất một ổ đĩa cứng thì dấu hỏi này là số 0, nếu có hai ổ đĩa, mà Ubuntu được cài đặt trên ổ đĩa thứ 2 thì dấu hỏi này là số 1. Nói chung là, dấu ? thứ nhất cho biết ổ đĩa nào cài đặt Ubuntu.
    Dấu hỏi thứ 2 là số hiệu của phân vùng trên một ổ cứng, số hiệu đánh dấu từ 1 trở đi. Nên nếu: hd0,6 nghĩa là Ubuntu đang cài đặt trên ổ đĩa cứng đầu tiên, ở phân vùng thứ 6.
  5. Gõ lệnh: root (hd0,6)
  6. Gõ lệnh: setup (hd0)
  7. Thoát grub: quit, sau đó khởi động lại máy tính bằng lệnh reboot kế tiếp.
Sau đó, hệ thống sẽ hiển thị một menu để bạn chọn lựa hệ điều hành cần khởi động. Và thường theo cách này thì dòng thông báo hệ điều hành Windows Vista sẽ nằm cuối cùng. Chúng ta có thể chỉnh sửa thêm một vài thông số trong file cấu hình này.
Cũng từ Terminal, chúng ta dùng lệnh: gksudo gedit /boot/grub/menu.lst. File menu.lst chứa các thông số để khởi động Ubuntu và Vista.

Cách 2: Chỉnh sửa bootinit.h trong Vista