1

Topic: backtrack 4 khởi động kép ?

Ngày trước em cài backtrack 2, 3 dualboot ngon lành. Nhưng bây giờ đến backtrack 4 beta làm sao để cấu hình multiboot khó quá.
Em cài backtrack 4 lên hdd theo hướng dẫn ở :
wiki.remote-exploit.org/backtrack/
em cài backtrack lên 2 phân vùng :  /dev/sdb4 làm  bt boot, /dev/sda3 làm phân vùng root, /dev/sdb3 dùng làm swap

   sdb5                 Logical  Linux ReiserFS                13588.17
                        Logical  Free Space                    32317.13
   sdb3                 Primary  Linux swap                    10528.36
   sdb4                 Primary  Linux ext2     [btboot]       13102.88
   sda2                 Primary  Linux ReiserFS                33649.63
   sda3       Boot      Primary  Linux ReiserFS                25555.95
   sda5       Boot      Logical  Linux ReiserF [ubuntusvr]     13867.83

lấy backtrack grub entry ở:

http://forum.remote-exploit.org/showthread.php?t=20134
http://forum.remote-exploit.org/showthread.php?t=20205

và đây là toàn bộ entry trong ubuntu grub, em cài ubuntu sau cùng, grub cài đè lên mbr:

## ## End Default Options ##

title        Ubuntu 9.04, kernel 2.6.28-11-server
uuid        e49c19a5-e25c-4405-9648-09d694293385
kernel        /boot/vmlinuz-2.6.28-11-server root=UUID=e49c19a5-e25c-4405-9648-09d694293385 ro quiet splash 
initrd        /boot/initrd.img-2.6.28-11-server
quiet

title        Ubuntu 9.04, kernel 2.6.28-11-server (recovery mode)
uuid        e49c19a5-e25c-4405-9648-09d694293385
kernel        /boot/vmlinuz-2.6.28-11-server root=UUID=e49c19a5-e25c-4405-9648-09d694293385 ro  single
initrd        /boot/initrd.img-2.6.28-11-server

title        Ubuntu 9.04, memtest86+
uuid        e49c19a5-e25c-4405-9648-09d694293385
kernel        /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title        Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title        Windows NT/2000/XP
rootnoverify    (hd1,0)
savedefault
makeactive
map        (hd0) (hd1)
map        (hd1) (hd0)
chainloader    +1


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title        Slackware Linux (Slackware 12.2.0) (on /dev/sdb5)
root        (hd1,4)
kernel        /boot/vmlinuz-generic-2.6.27.7 root=/dev/sdb5 
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title        Slackware Linux (Slackware 12.2.0) (on /dev/sdb5)
root        (hd1,4)
kernel        /boot/vmlinuz-generic-smp-2.6.27.7-smp root=/dev/sdb5 
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title        Slackware Linux (Slackware 12.2.0) (on /dev/sdb5)
root        (hd1,4)
kernel        /boot/vmlinuz-huge-2.6.27.7 root=/dev/sdb5 
savedefault
boot

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb5.
title        Slackware Linux (Slackware 12.2.0) (on /dev/sdb5)
root        (hd1,4)
kernel        /boot/vmlinuz-huge-smp-2.6.27.7-smp root=/dev/sdb5 
savedefault
boot
# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb4.
title        Ubuntu 8.10 (8.10) (on /dev/sdb4)
root        (hd1,3)
kernel        /boot/vmlinuz root=/dev/sdb4 
initrd        /initrd.gz
savedefault
boot


# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title        Ubuntu 8.10 (8.10) (on /dev/sda3)
root        (hd0,2)
kernel        /boot/vmlinuz root=/dev/sda3/
initrd        /initrd.gz
savedefault
boot

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sdb4.
title        BT4 (on /dev/sdb4)
root        (hd1,3)
kernel        /boot/vmlinuz root=/dev/sdb4 ro vga = 773 
savedefault
boot

# This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda3.
title           Backtrack 4
root            (hd0,2)
kernel          (hd0,2)/boot/vmlinuz rw root=/dev/sda3
initrd          (hd0,2)/boot/splash.initrd
chainloader +1
savedefault
boot

mặc dù em đã  sửa đi sửa lại cái entry này rồi vẫn k0 vào được backtrack. Em đã nhiều lần cài backtrack lên 1 phân vùng /ext2 hay ext3 rồi nhưng vẫn k0 dualboot được. backtrack 3 thì dualboot ngon lành.

backtrack 4 được phát triển trên nền debian nhưng goolgle "debian grub entry" ra :

title debian3.0 
root (hd1,4) 
kernel (hd1,4)/boot/vmlinuz-2.4.18-k7 root=/dev/hdb5   
hdd=ide-scsi
vga=791 
initrd (hd1,4)/boot/initrd.img-2.4.18-k7 

nhưng k0 biết phải nạp vào grub như thế nào đây ?

Last edited by spice_butterfly (29/04/2009 16:29)

Mọi ổ khoá đều có nhiều hơn 1 cái chìa
SKYPE: mattroixuongnui1

2

Re: backtrack 4 khởi động kép ?

thêm lilo entry của backtrack 4:

lba32
boot=/dev/sdb4
root=/dev/sda3

# bitmap=/boot/sarge.bmp
# bmp-colors=1,,0,2,,0
# bmp-table=120p,173p,1,15,17
# bmp-timer=254p,432p,1,0,0
# install=bmp

# delay=20

prompt
timeout=50

# map=/boot/map

vga=0x317

image=/boot/vmlinuz
    label="BT4"
    read-only
    initrd=/boot/splash.initrd
    append=quiet
Mọi ổ khoá đều có nhiều hơn 1 cái chìa
SKYPE: mattroixuongnui1

3

Re: backtrack 4 khởi động kép ?

Thứ nhất, chuyện boot cái Backtrack thì bạn cung cấp 2 cái entries trong /boot/grub/menu.lst mà liên quan đến nó là được, cần gì phải đem nguyên cái tập tin đó đem lên làm gì? Như vậy làm bài viết vừa dài khó đọc.
Thứ nhì, có vẻ bạn chưa rõ lắm về nội dung trong /boot/grub/menu.lst của Grub phải không? Tốt nhất là bạn hãy khoan google hay tìm kiếm, đi hỏi cách boot Backtrack vội. Bạn cần đọc hết cái này trước:
http://www.gnu.org/software/grub/manual/grub.html

Thân mến

SaigonLUG is not defunct... yet. It will come back soon.
Saigon GNU/Linux User Group - SaigonLUG.org

4

Re: backtrack 4 khởi động kép ?

hix, ôi đúng là trường giang sóng sau đùa sóng trước rồi big_smile. Bạn chẩn bệnh tớ khá lắm. Đúng là lâu rồi k0 đọc về grub, quen đọc trên user guide rồi.  Tớ nghĩ cách này nhanh hơn
Cám ơn bạn smile

Mọi ổ khoá đều có nhiều hơn 1 cái chìa
SKYPE: mattroixuongnui1

5

Re: backtrack 4 khởi động kép ?

Bà con cho hỏi làm sao cấu hình grub để nó nhận diện backtrack 4 (có phân vùng /boot cài riêng) đây. Từ trước giờ em chưa bao giờ cài linux với /boot nằm trên vùng khác gốc / cả. Em đọc kĩ grub và hướng dẫn cài rồi mà vẫn k0 cách cấu hình multiboot với 1 HDH có 2-3 phân vùng quan trọng (swap, root, boot)
Cám ơn bà con nhiều smile

Mọi ổ khoá đều có nhiều hơn 1 cái chìa
SKYPE: mattroixuongnui1

6

Re: backtrack 4 khởi động kép ?

các bác ơi cứu em. em cài backtrack 4 final lên hhd ko được. em làm theo các pac pro hướng dẫn tạo 2 phân vùng  1 cái  linux ext2 5G, 1 cái linux swap 521MB ma ko nhận dạng được  2 fân vùng này. em paj làm sao bg??????/////