[ RISOLTO ] Lilo non avvia Windows 7 / VIsta

Se avete problemi con l'installazione e la configurazione di Slackware postate qui. Non usate questo forum per argomenti generali... per quelli usate Gnu/Linux in genere.

Moderatore: Staff

Regole del forum
1) Citare sempre la versione di Slackware usata, la versione del Kernel e magari anche la versione della libreria coinvolta. Questi dati aiutano le persone che possono rispondere.
2) Per evitare confusione prego inserire in questo forum solo topic che riguardano appunto Slackware, se l'argomento è generale usate il forum Gnu/Linux in genere.
3) Leggere attentamente le risposte ricevute.
4) Scrivere i messaggi con il colore di default, evitare altri colori.
5) Scrivere in Italiano o in Inglese, se possibile grammaticalmente corretto, evitate stili di scrittura poco chiari, quindi nessuna abbreviazione tipo telegramma o scrittura stile SMS o CHAT.
6) Appena registrati è consigliato presentarsi nel forum dedicato.

La non osservanza delle regole porta a provvedimenti di vari tipo da parte dello staff, in particolare la non osservanza della regola 5 porta alla cancellazione del post e alla segnalazione dell'utente. In caso di recidività l'utente rischia il ban temporaneo.
Rispondi
Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

[ RISOLTO ] Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

non riesco a trovare un modo per bootare Windows seven con LILO , ho provato a gestire entrambe le partizioni NTFS ( quella di boot e quella di sistema ) che windows crea ma non riesco proprio ad avviare il sistema , mi si blocca alla solita schermata "NTLDR mancante , premere CTRL+ALT+CANC per riavviare"

qualcuno sa come fare ?
Ultima modifica di freax il ven 13 nov 2009, 14:04, modificato 1 volta in totale.

Avatar utente
Luci0
Staff
Staff
Messaggi: 3591
Iscritto il: lun 27 giu 2005, 0:00
Nome Cognome: Gabriele Santanché
Slackware: 12.2 14.0
Kernel: 2.6.27.46- gen 3.2.29
Desktop: KDE 3.5.10 Xfce
Località: Forte dei Marmi
Contatta:

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da Luci0 »

Qualche informazione sulle partizioni del disco e una copia del lilo.conf credo che siano proprio necessarie !
:-)

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

Luci0 ha scritto:Qualche informazione sulle partizioni del disco e una copia del lilo.conf credo che siano proprio necessarie !
:-)

Codice: Seleziona tutto

fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       10657    85495782    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3           10657       12615    15728640   a6  OpenBSD
Partition 3 does not end on cylinder boundary.
/dev/sda4           12615       14593    15890414+  83  Linux

Codice: Seleziona tutto

cat /etc/lilo.conf                    
# LILO configuration file                                       
# generated by 'liloconfig'                                     
#                                                               
# Start LILO global section                                     
lba32 # Allow booting past 1024th cylinder with a recent BIOS   
# Append any additional kernel parameters:                      
append=" vt.default_utf8=0"                                     
boot = /dev/sda                                                 

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp         
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0                            
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many  
# entries must be in the first column before the next begins to  
# be used. We don't specify it here, as there's just one column. 
bmp-table = 60,6,1,16                                            
# Timer location x, timer location y, foreground color,          
# background color, shadow color.                                
bmp-timer = 65,27,0,255                                          

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:       
#message = /boot/boot_message.txt                  

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):                                 
prompt                                                      
# Timeout before the first entry boots.                     
# This is given in tenths of a second, so 600 for every minute:
timeout = 30                                                   
# Override dangerous defaults that rewrite the partition table:
change-rules                                                   
reset                                                          
# VESA framebuffer console @ 1024x768x256                      
vga = 791                                                      
# Normal VGA console                                           
# vga = normal                                                 
# VESA framebuffer console @ 1024x768x64k                      
# vga=791                                                      
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Windows bootable partition config begins
other = /dev/sda2
label = Windows
table = /dev/sda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda4
label = Linux
read-only
# Linux bootable partition config ends
# BSD starts
other = /dev/sda3
label = OpenBSD
# BSD ends
1 disco , 4 partizioni , le prime 2 per Windows 7 in NTFS ( 7 crea 2 partizioni di default ) , 1 per OpenBSD e l'ultima per slackware .

Avatar utente
tigerwalk
Linux 3.x
Linux 3.x
Messaggi: 895
Iscritto il: lun 25 feb 2008, 22:08
Nome Cognome: Giuliano della Vecchia
Slackware: 13.37-14.2
Kernel: 3.10.17-tiger / 4.4.88-smp
Desktop: kde4/xfce4
Località: Napoli

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da tigerwalk »

NTLDR mancante....
devi rimettere a posto l'MBR di windows e reinstallare lilo (come fare ti è stato già suggerito)

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

tigerwalk ha scritto:NTLDR mancante....
devi rimettere a posto l'MBR di windows e reinstallare lilo (come fare ti è stato già suggerito)
si ma la cosa che non mi torna è : fixata l'mbr di windows lilo dove lo installo ?

Avatar utente
tigerwalk
Linux 3.x
Linux 3.x
Messaggi: 895
Iscritto il: lun 25 feb 2008, 22:08
Nome Cognome: Giuliano della Vecchia
Slackware: 13.37-14.2
Kernel: 3.10.17-tiger / 4.4.88-smp
Desktop: kde4/xfce4
Località: Napoli

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da tigerwalk »

freax ha scritto:
tigerwalk ha scritto:NTLDR mancante....
devi rimettere a posto l'MBR di windows e reinstallare lilo (come fare ti è stato già suggerito)
si ma la cosa che non mi torna è : fixata l'mbr di windows lilo dove lo installo ?
Sull'MBR di sda.
Non è lilo che ti ha corrotto l'MBR ma il cambiamento della tabella delle partizioni.

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

tigerwalk ha scritto:
freax ha scritto:
tigerwalk ha scritto:NTLDR mancante....
devi rimettere a posto l'MBR di windows e reinstallare lilo (come fare ti è stato già suggerito)
si ma la cosa che non mi torna è : fixata l'mbr di windows lilo dove lo installo ?
Sull'MBR di sda.
Non è lilo che ti ha corrotto l'MBR ma il cambiamento della tabella delle partizioni.
... io ancora non mi spiego bene la tecnica della faccenda , ma comunque ...

ho installato ms-sys sulla slackware da disco che adesso funziona , come mi hai consigliato , e ho dato

Codice: Seleziona tutto

ms-sys -7 /dev/sda
( il flag -m era generico per windows perciò ho usato quello per seven ) , ora devo dare solo il comando

Codice: Seleziona tutto

/sbin/lilo
e stop ?

Avatar utente
ZeroUno
Staff
Staff
Messaggi: 5441
Iscritto il: ven 2 giu 2006, 14:52
Nome Cognome: Matteo Rossini
Slackware: current
Kernel: slack-current
Desktop: ktown-latest
Distribuzione: 01000000-current
Località: Roma / Castelli
Contatta:

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da ZeroUno »

Io suggerusco:

1) cd di rescue (o di installazione di windows 7)
2) avviare la procedura di ripristino del boot (quella automatica dovrebbe bastare) in modo da essere sicuri che windows faccia il boot (anche) senza lilo.

3) boot slackware cd huge.s rdinit= root=/dev/sda4 ro
4) configurazione lilo con "boot=/dev/sda4" (ormai metto lilo su mbr solo sui server da parecchio tempo, cioè se non ho problemi di multiboot)
5) lilo -v
6) fdisk /dev/sda; opzioni a 1 a 4 w (rendere attiva la partizione di lilo)

7) reboot



Ciao
01
Packages finder: slakfinder.org | Slackpkg+, per aggiungere repository a slackpkg

Codice: Seleziona tutto

1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

ho avviato il mio sistema facendo il boot con il bootloader del dvd , modifico la riga di lilo.conf e da lilo -v esce questo :

Codice: Seleziona tutto

lilo -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 12:43:17 on Nov 29 2008.

Reading boot sector from /dev/sda4
Warning: Unable to determine video adapter in use in the present system.
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/slack.bmp
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Calling map_insert_file

Boot other: /dev/sda1, on /dev/sda2, loader CHAIN
Warning: Device 0x0800: Inconsistent partition table, 1st entry
  CHS address in PT:  26:3:16  -->  LBA (417894)
  LBA address in PT:  2048  -->  CHS (0:32:33)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)
sembra non mi vada il chainloader con questo lilo.conf

Codice: Seleziona tutto

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda4

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used. We don't specify it here, as there's just one column.
bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 30
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# VESA framebuffer console @ 1024x768x256
vga = 791
# Normal VGA console
# vga = normal
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda2
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/sda4
label = Linux
read-only
# Linux bootable partition config ends
# BSD starts
other = /dev/sda3
label = OpenBSD
# BSD ends
comunque è solo la voce di windows che da problemi , ho provato anche a variare la chainloader tra sda1 e sda2 , mettendo solo sda e sda1 , sda e sda2 , non vuole proprio andare ... :-k
se lascio la voce win commentata lilo va una meraviglia #-o

PS

Codice: Seleziona tutto

fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8f800000

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13       10657    85495782    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3           10657       12615    15728640   a6  OpenBSD
Partition 3 does not end on cylinder boundary.
/dev/sda4   *       12615       14593    15890414+  83  Linux
EDIT
al boot lilo mi dice "MISSING OPERATING SYSTEM" o una roba del genere ...

Avatar utente
ZeroUno
Staff
Staff
Messaggi: 5441
Iscritto il: ven 2 giu 2006, 14:52
Nome Cognome: Matteo Rossini
Slackware: current
Kernel: slack-current
Desktop: ktown-latest
Distribuzione: 01000000-current
Località: Roma / Castelli
Contatta:

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da ZeroUno »

hai una partition table abbastanza confusa:
/dev/sda1 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 10657 85495782 7 HPFS/NTFS
cioè hai le partizioni sovrapposte, il che non è molto bello.
Per curiosità.. così la prima partizione da 100MB NTFS?

freax ha scritto: Boot other: /dev/sda1, on /dev/sda2, loader CHAIN
Warning: Device 0x0800: Inconsistent partition table, 1st entry
CHS address in PT: 26:3:16 --> LBA (417894)
LBA address in PT: 2048 --> CHS (0:32:33)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)
e mi sembra giusto... vedi sotto
sembra non mi vada il chainloader con questo lilo.conf
beh, è normale che non ti va:
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda2
# Windows bootable partition config ends
deve essere

other = /dev/sda2 # perchè suppongo che windows sia quì
label = Windows
table = /dev/sda

la tabella delle partizioni è sda non sda2.. per questo ti dice che non è consistente
per la verità questa riga è facoltativa e io la ometto sempre



comunque è solo la voce di windows che da problemi
appunto

fai la modifica. Prima assicurati che windows parta se escludi lilo (con la procedura che ti dicevo prima)


Ciao
01
Packages finder: slakfinder.org | Slackpkg+, per aggiungere repository a slackpkg

Codice: Seleziona tutto

1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

ZeroUno ha scritto:hai una partition table abbastanza confusa:
/dev/sda1 1 13 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 10657 85495782 7 HPFS/NTFS
cioè hai le partizioni sovrapposte, il che non è molto bello.
Per curiosità.. così la prima partizione da 100MB NTFS?

freax ha scritto: Boot other: /dev/sda1, on /dev/sda2, loader CHAIN
Warning: Device 0x0800: Inconsistent partition table, 1st entry
CHS address in PT: 26:3:16 --> LBA (417894)
LBA address in PT: 2048 --> CHS (0:32:33)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified
If not sure, first try IGNORE-TABLE (-P ignore)
e mi sembra giusto... vedi sotto
sembra non mi vada il chainloader con questo lilo.conf
beh, è normale che non ti va:
# Windows bootable partition config begins
other = /dev/sda1
label = Windows
table = /dev/sda2
# Windows bootable partition config ends
deve essere

other = /dev/sda2 # perchè suppongo che windows sia quì
label = Windows
table = /dev/sda

la tabella delle partizioni è sda non sda2.. per questo ti dice che non è consistente
per la verità questa riga è facoltativa e io la ometto sempre



comunque è solo la voce di windows che da problemi
appunto

fai la modifica. Prima assicurati che windows parta se escludi lilo (con la procedura che ti dicevo prima)


Ciao
01
già fatta la prova con

Codice: Seleziona tutto

other = /dev/sda2 # perchè suppongo che windows sia quì
label = Windows
table = /dev/sda 
e mi diceva NTLDR mancante , infatti Vista e 7 gestiscono il boot e il sistema con 2 partizioni diverse , la prima partizione da 100MB circa che vedi è appunto la partizione di boot di Windows 7 e la seguente è quella di sistema .

adesso faccio qualche prova dando alla fine

Codice: Seleziona tutto

lilo -v -P ignore
ma la cosa mi puzza alquanto , se qualcuno avesse già risolto con Vista e/o con Windows 7 potrebbe postare il suo lilo.conf ? [-o<

Avatar utente
ZeroUno
Staff
Staff
Messaggi: 5441
Iscritto il: ven 2 giu 2006, 14:52
Nome Cognome: Matteo Rossini
Slackware: current
Kernel: slack-current
Desktop: ktown-latest
Distribuzione: 01000000-current
Località: Roma / Castelli
Contatta:

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da ZeroUno »

Codice: Seleziona tutto

# cat lilo.conf
append=" vt.default_utf8=0"                                                  
boot = /dev/sda4                                                             

  bitmap = /boot/slack.bmp
  bmp-colors = 255,0,255,0,255,0
  bmp-table = 60,6,1,16         
  bmp-timer = 65,27,0,255

prompt
timeout = 600
change-rules
  reset
vga = 791

other = /dev/sda2
  label = Vista
  table = /dev/sda

image = /boot/vmlinuz-huge-2.6.31.1
  root = /dev/sda4
  label = Linux-2.6.31.1
  read-only

image = /boot/vmlinuz-huge-2.6.29.6
  root = /dev/sda4
  label = Linux-2.6.29.6
  read-only

other = /dev/sda1
  label = Seven
  table = /dev/sda

Codice: Seleziona tutto

# fdisk -l

Disk /dev/sda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe5637fc8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6374    51199123+   7  HPFS/NTFS
/dev/sda2            6375       25496   153597465    7  HPFS/NTFS
/dev/sda3           25497       25983     3911827+  82  Linux swap
/dev/sda4   *       25984       30401    35487585   83  Linux
Come vedi né vista né seven (che in questa macchina convivono alla perfezione) mi usano una partizione da 100M

qualunque combinazione scegli comunque table=/dev/sda; in effetti other credo che deve essere sda1
La mia tabella delle partizioni non si accavalla.
Non ho capito se il tuo windows senza lilo parte o no.

Eventualmente prova a dare

Codice: Seleziona tutto

# dd if=/dev/sda of=/media/pendrive/sda.mbr count=1
# lilo -v -P fix -t
# lilo -v -P fix
# fdisk -l /dev/sda
se va male distrugge la tabella delle partizioni e tu la ripristini facendo boot da cd, poi

Codice: Seleziona tutto

# mkdir /usb
# mount /dev/sdb1 /usb
# dd if=/usb/sda.mbr of=/dev/sda count=1
# fdisk -l /dev/sda
# fdisk /dev/sda opzione w
# mount /dev/sda4 /mnt
# chroot /mnt
# lilo -v 
o
# lilo -v -P ignore
magari invece di -v mettici -vv


Ciao
01
Packages finder: slakfinder.org | Slackpkg+, per aggiungere repository a slackpkg

Codice: Seleziona tutto

1011010 1100101 1110010 1101111 - 0100000 - 1010101 1101110 1101111

Avatar utente
freax
Linux 1.x
Linux 1.x
Messaggi: 177
Iscritto il: lun 19 gen 2009, 0:29
Slackware: 13
Desktop: kde4

Re: Lilo non avvia Windows 7 / VIsta

Messaggio da freax »

ho risolto , come al solito la soluzione era la più semplice di tutte ...

Codice: Seleziona tutto

# Windows bootable partition config begins
other = /dev/sda1
label = Windows
# Windows bootable partition config ends
e dopo è bastato dare

Codice: Seleziona tutto

lilo
o

Codice: Seleziona tutto

lilo -v
che d'altra parte sono equivalenti per quanto riguarda l'aggiornamento del bootloader

in effetti stando su sda1 il bootloader era da fare così ... :!:

Rispondi