Jump to content
Zaoane

Ajutor Bootloader Backtrack/Windows

Recommended Posts

grub.ucf-dist

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=4
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="text splash nomodeset vga=791"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

La reboot nu se schimba nimic, ma refer la ordinea SO-urilor in bootloader.

Edited by Zaoane
Link to comment
Share on other sites

Linia de cod pe care ti-am dato

sudo sed -i'.bak' 's/GRUB_DEFAULT=0/GRUB_DEFAULT=4/'  /etc/default/grub.ucf-dist && sudo update-grub

a setat directiva GRUB_DEFAULT cu valoare 4 in fisierul /etc/default/grub.ucf-dist


GRUB_DEFAULT=4

Directiva GRUB_DEFAULT stabileste care ar trebui sa fie prima linie in meu in faza de boot

Avand in vedere faptul ca numaratoarea pleaca de la 0 , valoarea 4 face in asa fel incat linea de default in menu care ar trebui sa fie prima este a 5 linie din fisierul grub.cfg

0 menuentry 'Ubuntu, with Linux 2.6.39.4' --class ubuntu --class gnu-linux --class gnu --class os

1 menuentry 'Ubuntu, with Linux 2.6.39.4 (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os

2 menuentry "Memory test (memtest86+)"

3 menuentry "Memory test (memtest86+, serial console 115200)"

4 menuentry "Windows 7 (loader) (on /dev/sda1)"

In teorie daca fisierul de configurare vine citit de catre grub ar trebui sa afiseze prima linie in menu

4 menuentry "Windows 7 (loader) (on /dev/sda1)"

Nu inteleg ce se intampla la tine in sistem si de ce grub nu reuseste sa preia noile directive in memorie

Pobabil in memorie ramana directiva veche GRUB_DEFAULT=0 si face in asa fel incat Linux sa apara ca primul sistem in menu in faza de boot.

Link to comment
Share on other sites

S-a virusat Linuxu' :D

jojo123 : am incercat, nici o schimbare

Hai sa-l lasam in pace asa cum e, nu cred ca are rost sa ne mai stoarcem creierii.

Deocamdata eu ma bucur ca am invatat unele lucruri noi si ca mi-am refacut bootloaderu.

Multumesc frumos pentru ajutor

PS: Cine a dat rating de 5 stelute la acest topic?

Link to comment
Share on other sites

Zaoane: De curiozitate ce versiune de BackTrack ai instalat?

Eu am facut un test pe un virtual PC (hdd 60GB, partitionat 30GB pentru windows formatat NTFS + ce partitii mai face setup-ul de Windows7, restul 30GB unformatted; din BackTrack 5 R2 instalat cu optiunea use free space) si a mers bootloader-ul fara probleme...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...