Nowe posty

Autor Wątek: LILO  (Przeczytany 2077 razy)

  • Gość
LILO
« dnia: 2007-01-31, 16:04:15 »
Mam windowsa i pustą partycję na linuxa (ubuntu). Pod koniec instalacji pyta się gdzie zainstalować LILO, pisze, że zaleca na głównym uruchomieniowym. Więc tak zrobiłem, od tego czasu nie mogę dostać się na Windowsa, od razu ładuje mi się linux, nie mam żadnej listy wyboru ani nic takiego aby przejść na Windowsa, co robić?

Kaka

  • Gość
LILO
« Odpowiedź #1 dnia: 2007-01-31, 16:20:30 »
Za bardzo nie wiem jak to jest w LILO (mam GRUBa), ale podejrzewam, że będzie trzeba coś pokombinować w /boot w katalogu LILO (tak jest przynajmniej w GRUBie). Innym rozwiązaniem jest odinstalować LILO i zainstalować GRUBa.



localghost

  • Gość
LILO
« Odpowiedź #2 dnia: 2007-01-31, 16:31:09 »
dodaj w /etc/lilo.conf wpis odnosnie partycji na ktorej masz windowsa

other = /dev/
label = windows
table = /dev/

czyli np.

other = /dev/hda1
label = windows
table = /dev/hda

i jako root odpal polecenie 'lilo'

  • Gość
LILO
« Odpowiedź #3 dnia: 2007-01-31, 17:13:38 »
2007-01-31 16:31:09 localghost napisał:

> dodaj w /etc/lilo.conf wpis odnosnie partycji na ktorej masz windowsa
 >
 > other = /dev/
 > label = windows
 > table = /dev/
 >
 > czyli np.
 >
 > other = /dev/hda1
 > label = windows
 > table = /dev/hda
 >
 > i jako root odpal polecenie 'lilo'
 >
Zrobiłem tak jak pisałeś i wyskoczyło mi:
tatar111@dom:~$ sudo gedit /etc/lilo.conf
Password:
tatar111@dom:~$ sudo lilo
Added Linux *
Skipping /vmlinuz.old
Added Windows
Fatal: Duplicate label "windows"

Oto zawartość pliku lilo:

# /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
# ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
#                       and `/usr/share/doc/mbr/'.

# +---------------------------------------------------------------+
# |                        !! Reminder !!                         |
# |                                                               |
# | Don't forget to run `lilo' after you make changes to this     |
# | conffile, `/boot/bootmess.txt' (if you have created it), or   |
# | install a new kernel.  The computer will most likely fail to  |
# | boot if a kernel-image post-install script or you don't       |
# | remember to run `lilo'.                                       |
# |                                                               |
# +---------------------------------------------------------------+

# Specifies the boot device.  This is where Lilo installs its boot
# block.  It can be either a partition, or the raw device, in which
# case it installs in the MBR, and will overwrite the current MBR.
#
boot=/dev/hda

# Specifies the device that should be mounted as root. (`/')
#
root=/dev/hda1

# This option may be needed for some software RAID installs.
#
# raid-extra-boot=mbr-only

# Enable map compaction:
# Tries to merge read requests for adjacent sectors into a single
# read request. This drastically reduces load time and keeps the
# map smaller.  Using `compact' is especially recommended when
# booting from a floppy disk.  It is disabled here by default
# because it doesn't always work.
#
# compact

# Installs the specified file as the new boot sector
# You have the choice between: text, bmp, and menu
# Look in lilo.conf(5) manpage for details
#
#install=menu

# Specifies the location of the map file
#
map=/boot/map

# You can set a password here, and uncomment the `restricted' lines
# in the image definitions below to make it so that a password must
# be typed to boot anything but a default configuration.  If a
# command line is given, other than one specified by an `append'
# statement in `lilo.conf', the password will be required, but a
# standard default boot will not require one.
#
# This will, for instance, prevent anyone with access to the
# console from booting with something like `Linux init=/bin/sh',
# and thus becoming `root' without proper authorization.
#
# Note that if you really need this type of security, you will
# likely also want to use `install-mbr' to reconfigure the MBR
# program, as well as set up your BIOS to disallow booting from
# removable disk or CD-ROM, then put a password on getting into the
# BIOS configuration as well.  Please RTFM `install-mbr(8)'.
#
# password=tatercounter2000

# Specifies the number of deciseconds (0.1 seconds) LILO should
# wait before booting the first image.
#
delay=20

# You can put a customized boot message up if you like.  If you use
# `prompt', and this computer may need to reboot unattended, you
# must specify a `timeout', or it will sit there forever waiting
# for a keypress.  `single-key' goes with the `alias' lines in the
# `image' configurations below.  eg: You can press `1' to boot
# `Linux', `2' to boot `LinuxOLD', if you uncomment the `alias'.
#
# message=/boot/bootmess.txt
#   prompt
#   delay=100
#   timeout=100

# Specifies the VGA text mode at boot time. (normal, extended, ask, )
#
# vga=ask
# vga=9
#


# Kernel command line options that apply to all installed images go
# here.  See: The `boot-prompt-HOWTO' and `kernel-parameters.txt' in
# the Linux kernel `Documentation' directory.
#
# append=""
 
# If you used a serial console to install Ubuntu, this option should be
# enabled by default.
# serial=

#
# Boot up Linux by default.
#
default=Linux

image=/vmlinuz
   label=Linux
   read-only
#   restricted
#   alias=1
    append="locale=pl_PL"
   initrd=/initrd.img

image=/vmlinuz.old
   label=LinuxOLD
   read-only
   optional
#   restricted
#   alias=2
    append="locale=pl_PL"
   initrd=/initrd.img.old


# If you have another OS on this machine to boot, you can uncomment the
# following lines, changing the device name on the `other' line to
# where your other OS' partition is.
#
# other=/dev/hda4
#   label=HURD
#   restricted
#   alias=3
other=/dev/hda3
   label=Windows
#   restricted
#   alias=2

other = /dev/hda3
label = windows
table = /dev/hda

localghost

  • Gość
LILO
« Odpowiedź #4 dnia: 2007-01-31, 17:36:56 »
czyli miales partycje z windowsem dodana ... wywal to co dodales i jeszcze raz odpal 'lilo'
zresetuj kompa i jak ci sie pojawi prompt od LILO wpisz etykiete jaka masz ustawiona dla partycji windows'owej - z twojego pliku wynika ze bedzie to 'Windows' i wcisnij enter
poza tym jak jest napisane w man lilo.conf:  At any time  you  may  hit [Tab] to see a list of kernel/other labels.

  • Gość
LILO
« Odpowiedź #5 dnia: 2007-01-31, 18:54:21 »
2007-01-31 17:36:56 localghost napisał:

> czyli miales partycje z windowsem dodana ... wywal to co dodales i jeszcze raz odpal 'lilo'
 > zresetuj kompa i jak ci sie pojawi prompt od LILO wpisz etykiete jaka masz ustawiona dla
 > partycji windows'owej - z twojego pliku wynika ze bedzie to 'Windows' i wcisnij enter
 > poza tym jak jest napisane w man lilo.conf:  At any time  you  may  hit [Tab] to see a list of
 > kernel/other labels.
No więc tak, wywaliłem to co dodałem, przy uruchamianiu kompa od razu mi wychodzi:
LILO 2.2coś tam Linux Loading.............. (i kropeczki się robią i się ładuje ubuntu)

xavery

  • Gość
LILO
« Odpowiedź #6 dnia: 2007-01-31, 19:09:08 »
> No więc tak, wywaliłem to co dodałem, przy uruchamianiu kompa od razu mi wychodzi:
 > LILO 2.2coś tam Linux Loading.............. (i kropeczki się robią i się ładuje ubuntu)

I jak rozumiem, po wywaleniu wykonałeś lilo?
Masz skonfigurowane oczekiwanie przez 2sek na reakcję użytkownika. Spróbuj wydłużyć ten czas (np. delay=100) i jak wyskoczy napis LILO na spokojnie wpisać nazwę uruchamianego systemu (to co jest w dyrektywie label).

jk33

  • Gość
LILO
« Odpowiedź #7 dnia: 2007-01-31, 19:18:44 »
> #install=menu
 > #prompt
 > #timeout=100
 >
Spróbuj odkomentować te trzy linijki. (i przeładować lilo)
Po tej operacji powinno pojawić się menu wyboru systemu.

Janek.

  • Gość
LILO
« Odpowiedź #8 dnia: 2007-01-31, 21:22:34 »
2007-01-31 19:18:44 jk33 napisał:

>  > #install=menu
 >  > #prompt
 >  > #timeout=100
 >  >
 > Spróbuj odkomentować te trzy linijki. (i przeładować lilo)
 > Po tej operacji powinno pojawić się menu wyboru systemu.
 >
 > Janek.
Zmieniłem system plików na ext3 z indeksowaniem, GRUB'a i działa.