[ kvaju @ 22.07.2008. 03:43 ] @
Pozdrav

Instalirao sam Mandrivu, preko Ubuntu 8.04, a XP je ostao nedirnut.
Kada sam završio instalaciju, bila mi je opcija samo za Mandriva i Mandriva Safe, dakle XP-a mi nije bilo.
Uradio sam update-e i sve to, al mi je trebao i XP.
Pokušavao sam u
Code:
    timeout 10
    color black/cyan yellow/cyan
    gfxmenu (hd0,2)/boot/gfxmenu
    default 0

    title linux
    kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=linux root=UUID=98b3822b-e33b-4412-bbd5-55bf1f61d713 resume=/dev/sda4 splash=silent vga=788
    initrd (hd0,2)/boot/initrd.img

    title linux-nonfb
    kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=98b3822b-e33b-4412-bbd5-55bf1f61d713 resume=/dev/sda4
    initrd (hd0,2)/boot/initrd.img

    title failsafe
    kernel (hd0,2)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=98b3822b-e33b-4412-bbd5-55bf1f61d713 failsafe
    initrd (hd0,2)/boot/initrd.img

    title desktop586 2.6.24.4-1mnb
    kernel (hd0,2)/boot/vmlinuz-2.6.24.4-desktop586-1mnb BOOT_IMAGE=desktop586_2.6.24.4-1mnb root=UUID=98b3822b-e33b-4412-bbd5-55bf1f61d713 resume=/dev/sda4 splash=silent vga=788
    initrd (hd0,2)/boot/initrd-2.6.24.4-desktop586-1mnb.img

    title desktop586 2.6.24.5-2mnb
    kernel (hd0,2)/boot/vmlinuz-2.6.24.5-desktop586-2mnb BOOT_IMAGE=desktop586_2.6.24.5-2mnb root=UUID=98b3822b-e33b-4412-bbd5-55bf1f61d713 resume=/dev/sda4 splash=silent vga=788
    initrd (hd0,2)/boot/initrd-2.6.24.5-desktop586-2mnb.img

da dodam
Code:
    title windows
    root (hd0,0)
    savedefault
    makeactive
    chainloader     +1

al ne ide nikako.
Pokušavao sam još neke naredbe, al također XP-a nije bilo
Zatim sam ubacio instalaciski CD Xp-a i išao na Repair i ukucao
Code:
    fixboot i fixmbr

i poslje toga mi nema Mandrive , tj opcije da biram nju.
Samo mi ide direktno u XP.
Pokušavao sam da ubacim Live CD,i ovo uradim
Code:
    CTRL+ALT+F1
    root
    root@localhost ]grub-install
    install_device not specified.
    Usage: grub-install [OPTION] install_device
    Install GRUB on your drive.

      -h, --help              print this message and exit
      -v, --version           print the version information and exit
      --root-directory=DIR    install GRUB images under the directory DIR
                              instead of the root directory
      --grub-shell=FILE       use FILE as the grub shell
      --no-floppy             do not probe any floppy drive
      --force-lba             force GRUB to use LBA mode even for a buggy
                              BIOS
      --recheck               probe a device map even if it already exists
                              This flag is unreliable and its use is
                              strongly discouraged.

    INSTALL_DEVICE can be a GRUB device name or a system device filename.

    grub-install copies GRUB images into the DIR/boot directory specfied by
    --root-directory, and uses the grub shell to install grub into the boot
    sector.

    Report bugs to <[email protected]>.
    [root@localhost ]

al dalje ne znam šta treba.
Moj fdisk -l je bio dok sam na Mandrivi bio ovaj
Code:
    Disk /dev/sda: 82.3 GB, 82348277760 bytes
    255 heads, 63 sectors/track, 10011 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0x0aed0aec

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        2550    20482843+   7  HPFS/NTFS
    /dev/sda2            2551        7649    40957717+   f  W95 Ext'd (LBA)
    /dev/sda3            7650        9594    15623212+  83  Linux
    /dev/sda4            9595       10011     3349552+  82  Linux swap / Solaris
    /dev/sda5            2551        7649    40957686    7  HPFS/NTFS

    Disk /dev/sdb: 1031 MB, 1031798784 bytes
    16 heads, 32 sectors/track, 3936 cylinders
    Units = cylinders of 512 * 512 = 262144 bytes
    Disk identifier: 0x00000000

       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1               1        3936     1007600    b  W95 FAT32

Help ljudi, želim da imam opciju kao na Ubuntu da biram XP ili Linux.
Googlao sam, tražio, sve nešto slično, al nije to to.

Hvala
[ Ixtis @ 23.07.2008. 02:27 ] @
Podigni sistem sa nekog live cd-a. Startuj terminal, i u njemu ukucaj:
# grub
grub>root (sd0,3) --- za tvoj slucaj, ili komandom: find /boot/grub/stage1 --- trebalo bi da ti izbaci odgovor: (sd0,3) ili (hd0,3)
grub>setup (sd0)
grub>quit

Restartuj racunar, i trebalo bi da ti se pojavi i Mandriva u meniju.
[ kvaju @ 23.07.2008. 12:23 ] @
Hvala na odgovoru

Code:
GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub>find /boot/grub/stage1
 (hd0,2)
grub> root (hd0,2)
 Filesystem type is ext2fs, partition type 0x83
grub> setup (hd0,2)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
 Running "embed /boot/grub/e2fs_stage1_5 (hd0,2)"... failed (this is not fatal)
 Running "install /boot/grub/stage1 (hd0,2) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
grub>quit
Probing devices to guess BIOS drives. This may take a long time.   (ovo ne traje ni sekund, znači ništa ne radi)
[root@localhost guest]#


poslje ovoga resetiram, ništa se ne promjeni, XP samo diže bez ikakve opcije biranja

a kada ukucavam ovo tvoje ovo radi
Code:
grub> root (sd0,3)
Error 23: Error while parsing number
grub> root (hd0,3)
Filesystem type unknown, partition type 0x82
grub> setup (hd0,3)

Error 17: Cannot mount selected partition


do čega bi moglo bit?
[ kvaju @ 23.07.2008. 13:22 ] @
Code:
[root@localhost guest]# mkdir /mnt/mojdisk
[root@localhost guest]# mount /dev/sda3 /mnt/mojdisk -t ext3
[root@localhost guest]# chroot /mnt/mojdisk
[root@localhost /]# grub-install /dev/sda
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb


Ovo je rješilo problem, hvala ti Ixtis.
[ Ixtis @ 23.07.2008. 17:10 ] @
Ajde onda ovako:
Podigni sistem startup disketom (win 98), i kucaj: fdisk /mbr
Restartuj sistem, i preko LiveCD-a ponovi radnju koju sam ti napisao:
root (hd0,2)
setup (hd0) ili ako ovo ne uspe probaj (hd0,0)
quit

(hd0)-instalira grub u MBR
(hd0,0)-prvi disk, prva particija, tako nešto.

Uuppsss..., tek sad vidoh da je problem vec resen. Pozdrav

[Ovu poruku je menjao Ixtis dana 23.07.2008. u 22:47 GMT+1]