{"id":867,"date":"2009-11-08T01:45:00","date_gmt":"2009-11-07T23:45:00","guid":{"rendered":"http:\/\/it4bus.vn\/itersdesktop\/2009\/11\/08\/dual-boot-linux-and-vista-or-xp\/"},"modified":"2015-10-10T13:43:09","modified_gmt":"2015-10-10T11:43:09","slug":"dual-boot-linux-and-vista-or-xp","status":"publish","type":"post","link":"https:\/\/www.itersdesktop.com\/fr\/2009\/11\/08\/dual-boot-linux-and-vista-or-xp\/","title":{"rendered":"Dual boot Linux and Vista (or XP)"},"content":{"rendered":"<p>Sau g\u1ea7n v\u00e0i ti\u1ebfng \u0111\u1ed3ng h\u1ed3 th\u1eed nghi\u1ec7m v\u00e0 c\u1ea5u h\u00ecnh, cu\u1ed1i c\u00f9ng t\u00f4i c\u00f9ng t\u00ecm ra \u0111\u01b0\u1ee3c c\u00e1ch edit GRUB \u0111\u1ec3 c\u00f3 th\u1ec3 c\u00e0i m\u1ed9t l\u00fac Ubuntu v\u00e0 Vista (ho\u1eb7c XP) tr\u00ean c\u00f9ng m\u1ed9t m\u00e1y t\u00ednh.<\/p>\n<p>C\u00e1ch 1: Ch\u1ec9nh s\u1eeda GRUB bootloader trong Ubuntu.<br \/>Cho d\u00f9 b\u1ea1n c\u00e0i Vista ho\u1eb7c Ubuntu tr\u01b0\u1edbc, c\u00e1ch n\u00e0y \u0111\u1ec1u hi\u1ec7u qu\u1ea3.<br \/>D\u00f9ng \u0111\u0129a Ubuntu Live CD (n\u00f3i d\u1ec5 hi\u1ec3u l\u00e0 \u0111\u0129a c\u00e0i \u0111\u1eb7t Ubuntu v\u00e0 d\u0129 nhi\u00ean n\u00f3 ph\u1ea3i c\u00f3 t\u00ednh t\u1ef1 boot \u0111\u01b0\u1ee3c, ti\u1ebfng anh l\u00e0 bootable) \u0111\u1ec3 kh\u1edfi \u0111\u1ed9ng h\u1ec7 th\u1ed1ng. Tr\u00ean menu \u0111i\u1ec1u khi\u1ec3n, ch\u1ecdn Try install Ubuntu without&#8230;. \u0111\u1ec3 ch\u1ea1y tr\u1ef1c ti\u1ebfp Ubuntu tr\u00ean \u0111\u0129a CD m\u00e0 kh\u00f4ng c\u1ea7n c\u00e0i \u0111\u1eb7t. Khi \u0111\u00f3, b\u1ea1n ch\u1ec9 c\u1ea7n ch\u1ec9nh s\u1eeda GRUB theo b\u01b0\u1edbc sau:<\/p>\n<ol>\n<li>T\u1eeb Terminal, g\u00f5 l\u1ec7nh: sudo -i \u0111\u1ec3 kh\u00f4ng c\u1ea7n ph\u1ea3i g\u00f5 l\u1ea1i sudo (v\u00ec t\u1ea5t c\u1ea3 c\u00e1c thao t\u00e1c n\u00e0y \u0111\u1ec1u li\u00ean quan \u0111\u1ebfn h\u1ec7 th\u1ed1ng, ph\u1ea3i c\u00f3 quy\u1ec1n t\u01b0\u01a1ng \u0111\u01b0\u01a1ng v\u1edbi root m\u1edbi c\u00f3 th\u1ec3 th\u1ef1c hi\u1ec7n \u0111\u01b0\u1ee3c)<\/li>\n<li>D\u00f9ng l\u1ec7nh: fdisk -l \u0111\u1ec3 xem danh s\u00e1ch c\u00e1c ph\u00e2n v\u00f9ng (partitions), xem ph\u00e2n v\u00f9ng n\u00e0o c\u00e0i \u0111\u1eb7t Ubuntu, ph\u00e2n v\u00f9ng n\u00e0o c\u00e0i \u0111\u1eb7t Windows (l\u1ec7nh n\u00e0y ch\u1ec9 test, kh\u00f4ng quan tr\u1ecdng).<\/li>\n<li>G\u00f5: grub<\/li>\n<li>find \/boot\/grub\/stage1 \u0111\u1ec3 t\u00ecm ph\u00e2n v\u00f9ng c\u00e0i \u0111\u1eb7t Ubuntu, k\u1ebft qu\u1ea3 s\u1ebd l\u00e0 m\u1ed9t d\u00f2ng d\u1ea1ng: hd?,? &#8211;> d\u1ea5u ? th\u1ee9 nh\u1ea5t l\u00e0 s\u1ed1 hi\u1ec7u c\u1ee7a \u1ed5 \u0111\u0129a, n\u1ebfu m\u00e1y t\u00ednh c\u1ee7a ch\u00fang ta ch\u1ec9 c\u00f3 duy nh\u1ea5t m\u1ed9t \u1ed5 \u0111\u0129a c\u1ee9ng th\u00ec d\u1ea5u h\u1ecfi n\u00e0y l\u00e0 s\u1ed1 0, n\u1ebfu c\u00f3 hai \u1ed5 \u0111\u0129a, m\u00e0 Ubuntu \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t tr\u00ean \u1ed5 \u0111\u0129a th\u1ee9 2 th\u00ec d\u1ea5u h\u1ecfi n\u00e0y l\u00e0 s\u1ed1 1. N\u00f3i chung l\u00e0, d\u1ea5u ? th\u1ee9 nh\u1ea5t cho bi\u1ebft \u1ed5 \u0111\u0129a n\u00e0o c\u00e0i \u0111\u1eb7t Ubuntu.<br \/>D\u1ea5u h\u1ecfi th\u1ee9 2 l\u00e0 s\u1ed1 hi\u1ec7u c\u1ee7a ph\u00e2n v\u00f9ng tr\u00ean m\u1ed9t \u1ed5 c\u1ee9ng, s\u1ed1 hi\u1ec7u \u0111\u00e1nh d\u1ea5u t\u1eeb 1 tr\u1edf \u0111i. N\u00ean n\u1ebfu: hd0,6 ngh\u0129a l\u00e0 Ubuntu \u0111ang c\u00e0i \u0111\u1eb7t tr\u00ean \u1ed5 \u0111\u0129a c\u1ee9ng \u0111\u1ea7u ti\u00ean, \u1edf ph\u00e2n v\u00f9ng th\u1ee9 6.<\/li>\n<li>G\u00f5 l\u1ec7nh: root (hd0,6)<\/li>\n<li>G\u00f5 l\u1ec7nh: setup (hd0)<\/li>\n<li>Tho\u00e1t grub: quit, sau \u0111\u00f3 kh\u1edfi \u0111\u1ed9ng l\u1ea1i m\u00e1y t\u00ednh b\u1eb1ng l\u1ec7nh reboot k\u1ebf ti\u1ebfp.<\/li>\n<\/ol>\n<p>Sau \u0111\u00f3, h\u1ec7 th\u1ed1ng s\u1ebd hi\u1ec3n th\u1ecb m\u1ed9t menu \u0111\u1ec3 b\u1ea1n ch\u1ecdn l\u1ef1a h\u1ec7 \u0111i\u1ec1u h\u00e0nh c\u1ea7n kh\u1edfi \u0111\u1ed9ng. V\u00e0 th\u01b0\u1eddng theo c\u00e1ch n\u00e0y th\u00ec d\u00f2ng th\u00f4ng b\u00e1o h\u1ec7 \u0111i\u1ec1u h\u00e0nh Windows Vista s\u1ebd n\u1eb1m cu\u1ed1i c\u00f9ng. Ch\u00fang ta c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda th\u00eam m\u1ed9t v\u00e0i th\u00f4ng s\u1ed1 trong file c\u1ea5u h\u00ecnh n\u00e0y.<br \/>C\u0169ng t\u1eeb Terminal, ch\u00fang ta d\u00f9ng l\u1ec7nh: gksudo gedit \/boot\/grub\/menu.lst. File menu.lst ch\u1ee9a c\u00e1c th\u00f4ng s\u1ed1 \u0111\u1ec3 kh\u1edfi \u0111\u1ed9ng Ubuntu v\u00e0 Vista.<\/p>\n<p>C\u00e1ch 2: Ch\u1ec9nh s\u1eeda bootinit.h trong Vista<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sau g\u1ea7n v\u00e0i ti\u1ebfng \u0111\u1ed3ng h\u1ed3 th\u1eed nghi\u1ec7m v\u00e0 c\u1ea5u h\u00ecnh, cu\u1ed1i c\u00f9ng t\u00f4i c\u00f9ng t\u00ecm ra \u0111\u01b0\u1ee3c c\u00e1ch edit GRUB \u0111\u1ec3 c\u00f3 th\u1ec3 c\u00e0i m\u1ed9t l\u00fac Ubuntu v\u00e0 Vista&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[169,174],"tags":[292,266],"class_list":["post-867","post","type-post","status-publish","format-standard","hentry","category-boot-loader","category-linux","tag-dualboot","tag-vista"],"_links":{"self":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/comments?post=867"}],"version-history":[{"count":1,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/867\/revisions"}],"predecessor-version":[{"id":1198,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/posts\/867\/revisions\/1198"}],"wp:attachment":[{"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/media?parent=867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/categories?post=867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itersdesktop.com\/fr\/wp-json\/wp\/v2\/tags?post=867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}