Linux User Group Castegnato - BS
Non hai eseguito l'accesso.
Ciao a tutti, ho installato l'ultima versione di Ubuntu.
Purtroppo il boot di avvio non mi carica più windows, ma solo Ubuntu.
Qualche suggerimento?
Non in linea
Prova a dare il seguente comando:
sudo update-grub
Se non funziona posta il risultato dei seguenti comandi:
cat /boot/grub/grub.cfg cat /boot/grub/device.map sudo fdisk -l
Che errore ti esce quando grub non riesce a caricare Windows?
Non in linea
In pratica selezionando windows mi da il seguente errore:
error: invalid signature Press and key to continue...
digitando l'update di grub mi ritorna:
diego@diego-desktop:~$ sudo update-grub [sudo] password for diego: Searching for GRUB installation directory ... found: /boot/grub /etc/default/grub: riga 11: GRUB_WINDOWS: comando non trovato
quindi ho poi digitato da terminale i comandi che mi hai detto, questo il risultato:
diego@diego-desktop:~$ cat /boot/grub/grub.cfg # # DO NOT EDIT THIS FILE # # It is automatically generated by /usr/sbin/grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ### BEGIN /etc/grub.d/00_header ### if [ -s /boot/grub/grubenv ]; then have_grubenv=true load_env fi set default="0" if [ ${prev_saved_entry} ]; then saved_entry=${prev_saved_entry} save_env saved_entry prev_saved_entry= save_env prev_saved_entry fi if [ ${recordfail} = 1 ]; then set timeout=-1 else set timeout=10 fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### set menu_color_normal=white/black set menu_color_highlight=black/white ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### menuentry "Ubuntu, Linux 2.6.31-14-generic" { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi set quiet=1 linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sdb6 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic } menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" { recordfail=1 if [ -n ${have_grubenv} ]; then save_env recordfail; fi linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sdb6 ro single initrd /boot/initrd.img-2.6.31-14-generic } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_memtest86+ ### menuentry "Memory test (memtest86+)" { linux16 /boot/memtest86+.bin } menuentry "Memory test (memtest86+, serial console 115200)" { linux16 /boot/memtest86+.bin console=ttyS0,115200n8 } ### END /etc/grub.d/20_memtest86+ ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry "Microsoft Windows XP Home Edition (on /dev/sdb1)" { drivemap -s (hd0) ${root} chainloader +1 } menuentry "Ubuntu 9.10, kernel 2.6.31-14-generic-pae (on /dev/sdb2)" { linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=22c3dff1-b241-4059-ae0d-cb98fa7fb133 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic-pae } menuentry "Ubuntu 9.10, kernel 2.6.31-14-generic-pae (recovery mode) (on /dev/sdb2)" { linux /boot/vmlinuz-2.6.31-14-generic-pae root=UUID=22c3dff1-b241-4059-ae0d-cb98fa7fb133 ro single initrd /boot/initrd.img-2.6.31-14-generic-pae } menuentry "Ubuntu 9.10, kernel 2.6.31-14-generic (on /dev/sdb2)" { linux /boot/vmlinuz-2.6.31-14-generic root=UUID=22c3dff1-b241-4059-ae0d-cb98fa7fb133 ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic } menuentry "Ubuntu 9.10, memtest86+ (on /dev/sdb2)" { linux /boot/memtest86+.bin } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/40_custom ### # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. ### END /etc/grub.d/40_custom ### diego@diego-desktop:~$ cat /boot/grub/device.map (hd0) /dev/sda diego@diego-desktop:~$ sudo fdisk -l Disco /dev/sda: 1000.2 GB, 1000204886016 byte 255 testine, 63 settori/tracce, 121601 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x14e7f4cc Dispositivo Boot Start End Blocks Id System /dev/sda1 2 85853 689606190 b W95 FAT32 /dev/sda2 85854 86901 8418060 83 Linux /dev/sda3 86902 117025 241971030 83 Linux /dev/sda4 117026 121593 36692460 5 Esteso /dev/sda5 117027 117046 160650 82 Linux swap / Solaris /dev/sda6 117048 117067 160650 83 Linux /dev/sda7 117069 121588 36306900 7 HPFS/NTFS Disco /dev/sdb: 200.0 GB, 200049647616 byte 255 testine, 63 settori/tracce, 24321 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x92e892e8 Dispositivo Boot Start End Blocks Id System /dev/sdb1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sdb2 12749 15180 19535040 83 Linux /dev/sdb3 15181 15545 2931862+ 82 Linux swap / Solaris /dev/sdb4 15546 24321 70493220 5 Esteso /dev/sdb5 15546 22585 56548768+ 83 Linux /dev/sdb6 22586 24242 13309821 83 Linux /dev/sdb7 24243 24321 634536 82 Linux swap / Solaris Disco /dev/sdc: 300.1 GB, 300069052416 byte 255 testine, 63 settori/tracce, 36481 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xb02cde84 Dispositivo Boot Start End Blocks Id System /dev/sdc1 * 1 36481 293033601 7 HPFS/NTFS Disco /dev/sdd: 320.1 GB, 320072933376 byte 255 testine, 63 settori/tracce, 38913 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xf42ed889 Dispositivo Boot Start End Blocks Id System /dev/sdd1 * 1 38913 312568641 7 HPFS/NTFS Disco /dev/sde: 120.0 GB, 120034123776 byte 255 testine, 63 settori/tracce, 14593 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x3e62c08a Dispositivo Boot Start End Blocks Id System /dev/sde1 1 14594 117218304 7 HPFS/NTFS diego@diego-desktop:~$
Il problema secondo me sta nel fatto che avendo installato la nuova versione il grub nuovo ha sovrascritto quello vecchio.
Tuttavia nel boot di avvio io visualizzo ancora anche la karmic koala che hoi aggiornato con l'aggiornamento da internet...quella famosa che mi dava problemi....
Non in linea
diegotedo ha scritto:
Tuttavia nel boot di avvio io visualizzo ancora anche la karmic koala che hoi aggiornato con l'aggiornamento da internet...quella famosa che mi dava problemi....
Sembra che hai installato due Ubuntu Karmic, entrambi sull'harddisk da 200GB, l'ultimo che hai installato è nella partizione sdb6, ed è il primo che vedi nel menù di avvio, mentre l'altro, che è quello che avevi installato precedentemente, è installato nella partizione sdb2.
Alcune domande:
1. Che procedura hai usato durante l'installazione per partizionare l'hard disk?
2. Quando hai fatto l'installazione, hai scollegato degli hard disk?
Comunque per avviare Windows prova a fare quanto segue.
Dai il comando:
gksudo gedit /etc/grub.d/40_custom
Ti si aprirà un file di testo. Aggiungi alla fine del file (mi raccomando alla fine) le seguenti righe:
menuentry "Microsoft Windows XP Home Edition (prova)" { insmod ntfs set root=(hd0,1) chainloader +1 }
Quindi salva e chiudi il file. Da riga di comando dai il seguente comando:
sudo update-grub
Riavvia il pc, dovresti trovarti nel menù di avvio la riga "Microsoft Windows XP Home Edition (prova)". Prova ad avviare XP con quella.
Non in linea
per non aprire un ulteriore thread scrivo qui, in quanto il boot è un problema che ho;
mi spiego:
avevo un dual boot grub tra winxp e ubuntu che funzionava perfettamente
il problema si è posto quando ho installato anche mandriva; in pratica devo aver installato l'ultimo bootloader nel posto sbagliato ed ora mandriva e winxp sono ok, ubuntu nn si trova + e per partire sono costretto ad una operazione di reindirizzamento in quanto il mio bios non vede l'hd (il terzo) per l'avviamento.
premesso che formatterò le distro per reinstallarle chiedo un parere ai luminari:
una volta "spianato" e ripristinato l'mbr di windows....è interessante montare un boot manager tipo questo o similari?
Ultima modifica di robycops (09-11-2009 20:25:34)
Non in linea
Rispondo al Gatto...
La procedura che ho utilizzato per il partizionamento è quella guidata (consigliata per dual boot) di Ubuntu e per quanto riguarda gli hard disk, durante l'installazione, era collegato solo quello utilizzato per i sistemi operativi, cioè quello da 200GB.
Ho provato a dare i comandi che mi hai suggerito ma niente da fare, torna lo stesso errore.
Il windows che vedo nella schermata di boot è sempre e solo quello.
Il file di testo salvato è il seguente:
#!/bin/sh exec tail -n +3 $0 # This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change # the 'exec tail' line above. menuentry "Microsoft Windows XP Home Edition (prova)" { insmod ntfs set root=(hd0,1) chainloader +1 }
e il risultato del comando di update è questo:
diego@diego-desktop:~$ sudo update-grub [sudo] password for diego: Searching for GRUB installation directory ... found: /boot/grub /etc/default/grub: riga 11: GRUB_WINDOWS: comando non trovato
Non in linea
Per robycops,
è meglio aprire un'altra discussione per questo problema, altrimenti i post si accavallano con quelli del problema di diegotedo.
Per diegotedo,
posta anche il risultato del seguente comando:
cat /etc/default/grub
Sembra ci sia qualcosa di strano alla riga 11 di questo file di configurazione di grub2.
Non in linea
Ecco il risultato:
diego@diego-desktop:~$ cat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 #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="quiet splash" GRUB_CMDLINE_LINUX="" GRUB_WINDOWS XP # 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 entrys #GRUB_DISABLE_LINUX_RECOVERY="true" diego@diego-desktop:~$
Non in linea
Sembra che la riga 11 "GRUB_WINDOWS XP" non viene riconosciuta da update-grub. In effetti non so da dove salti fuori perchè non è documentata da nessuna parte e, facendo una ricerca in google, praticamente risulta solo questa discussione sul Lug.
Io dirie di cancellarla. Da il seguente comando:
gksudo gedit /etc/default/grub
Cancella la riga 11 e salva.
Quindi dai il comando "sudo update-grub", che questa volta dovrebbe andare a buon fine (posta comunque il risultato).
Riavvia il pc e dovresti trovarti nel menù di avvio la riga "Microsoft Windows XP Home Edition (prova)". Prova ad avviare XP con quella, e anche con la riga per l'avvio di XP originale.
Per me è meglio fare tutto con gli altri hard disk scollegati. Se funziona tutto poi prova a ricollegare gli hard disk.
Non in linea
Dando il comando
gksudo gedit /etc/default/grub
per riga 11 io ho cancellato l'undicesima riga (riga vuota compresa), ed esattamente:
"GRUB_WINDOWS XP", cioè quella che prima appariva sotto il comando GRUB_CMDLINE_LINUX=""
In pratica il file di testo che ho salvato è il seguente:
# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. GRUB_DEFAULT=0 #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="quiet splash" 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 entrys #GRUB_DISABLE_LINUX_RECOVERY="true"
Mentre per quanto riguarda il risultato del comando di update, che stavalta non ha dato errori, è come segue:
diego@diego-desktop:~$ gksudo gedit /etc/default/grub diego@diego-desktop:~$ sudo update-grub Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0 Searching for GRUB installation directory ... found: /boot/grub Testing for an existing GRUB menu.lst file ... Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y Searching for splash image ... none found, skipping ... Found kernel: /boot/memtest86+.bin Found kernel: /boot/vmlinuz-2.6.31-14-generic Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done
Tuttavia nella schermata del boot non mi appare ancora il famoso "Windows XP prova" e quello vecchio mi ritorna lo stesso errore....
Non in linea
Altri comandi di cui dovresti postare il risultato...
dpkg -s grub | head -n 5 dpkg -s grub-pc | head -n 5 grub-install -v update-grub -v mount
Non in linea
Ecco il risultato:
diego@diego-desktop:~$ dpkg -s grub | head -n 5 Package: grub Status: install ok installed Priority: optional Section: admin Installed-Size: 924 diego@diego-desktop:~$ dpkg -s grub-pc | head -n 5 Package: grub-pc Status: deinstall ok config-files Priority: extra Section: admin Installed-Size: 1712 diego@diego-desktop:~$ grub-install -v grub-install (GNU GRUB 0.97) diego@diego-desktop:~$ update-grub -v debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Permesso negato Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst cp: impossibile creare il file regolare "/boot/grub/menu.lst~": Permesso negato diego@diego-desktop:~$ mount /dev/sdb6 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type tmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/diego/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=diego) /dev/sdb1 on /media/1808BB9B08BB75FA type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdc1 on /media/Disco type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdd1 on /media/Disco_ type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sda1 on /media/DISCO type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush)
Non in linea
Hai installato GRUB 1 anzichè GRUB 2. Karmic utilizza GRUB 2, ma facendo l'aggiornamento da Ubuntu 9.04 resta installato GRUB 1.
Con GRUB 1 bisogna modificare il file menu.lst.
Posta il risultato del seguente comando:
cat /boot/grub/menu.lst
Non in linea
Questo il risultato:
diego@diego-desktop:~$ cat /boot/grub/menu.lst # menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ## default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0 ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 3 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) hiddenmenu # Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # # examples # # title Windows 95/98/NT/2000 # root (hd0,0) # makeactive # chainloader +1 # # title Linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro ## default grub root device ## e.g. groot=(hd0,0) # groot=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt= ## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true ## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## title Ubuntu 9.10, kernel 2.6.31-14-generic uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode) uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro single initrd /boot/initrd.img-2.6.31-14-generic title Ubuntu 9.10, memtest86+ uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/memtest86+.bin ### END DEBIAN AUTOMAGIC KERNELS LIST
Non in linea
Alla fine del file devi inserire le seguenti righe:
tilte Windows Xp uuid xxxxxxxxx chainloader +1
Devi sostituire "xxxxxxxx" con l'UUID della partizione su cui hai installato XP. Per saperlo devi dare il comando
ls /dev/disk/by-uuid
Per esempio sul mio PC ho:
gatto@tux:~$ ls -l /dev/disk/by-uuid totale 0 lrwxrwxrwx 1 root root 10 2009-11-14 13:15 20c164f0-6aef-4011-b41c-0b6493919dc6 -> ../../sda5 lrwxrwxrwx 1 root root 10 2009-11-14 13:15 4954f8a4-4d31-418a-9635-8d5039d0faf1 -> ../../sda3 lrwxrwxrwx 1 root root 10 2009-11-14 13:15 54AFE7687667DEF3 -> ../../sda1 lrwxrwxrwx 1 root root 10 2009-11-14 13:15 c7d2970b-3515-41ab-58be-8f4e0a162768 -> ../../sda6 lrwxrwxrwx 1 root root 10 2009-11-14 13:15 FAFC5F30FC5EE703 -> ../../sda2 gatto@tux:~$ ^C
XP è installato sulla partizone sda1 che ha UUID di 54AFE7687667DEF3.
AGGIORNAMENTO: per chi legge, le istruzioni riportate sopra sono sbagliate. Ho fatto alcune prove e sembra che il comando uuid di GRUB 1(legacy) funziona solo con le partizioni ext2/ext3 e non con le partizioni ntfs.
Ultima modifica di gattosilvestro (15-11-2009 09:21:45)
Non in linea
Scusa ma non ho capito dove devo inserire queste righe...
Il codice
ls /dev/disk/by-uuid
mi da questo risultato
diego@diego-desktop:~$ ls /dev/disk/by-uuid 033a96b2-bfeb-46cc-817f-2aefdef16da8 5DF9F2E21D6CE3BC 1808BB9B08BB75FA 6C6069B960698AA2 22c3dff1-b241-4059-ae0d-cb98fa7fb133 824cbd8a-6c1b-4975-b318-b1abbea729d3 3de27be3-c6c0-4b2a-bf5f-a789d9e20e04 b4c69e9b-4713-469c-b0a0-5f81633cb0eb 493E-C430 E8B4F1D1B4F1A26C 4981c618-df0f-44e4-80e8-37faeb3459f4 diego@diego-desktop:~$
perdona la mia ignoranza, ma sinceramente non riesco a capire dove sia istallato XP da questo comando...
Ultima modifica di diegotedo (14-11-2009 16:15:05)
Non in linea
Posta il risultato dei comandi:
ls -l /dev/disk/by-uuid mount sudo fdisk -l
e di dico esattamente come fare. Scusa ma prima avevo dimenticato l'opzione "-l" nel primo comando.
Non in linea
Figurati...
Eccoti il risultato dei comandi:
diego@diego-desktop:~$ ls -l /dev/disk/by-uuid totale 0 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 033a96b2-bfeb-46cc-817f-2aefdef16da8 -> ../../sdb5 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 1808BB9B08BB75FA -> ../../sdb1 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 22c3dff1-b241-4059-ae0d-cb98fa7fb133 -> ../../sdb2 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 3de27be3-c6c0-4b2a-bf5f-a789d9e20e04 -> ../../sda6 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 493E-C430 -> ../../sda1 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 4981c618-df0f-44e4-80e8-37faeb3459f4 -> ../../sdb3 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 5DF9F2E21D6CE3BC -> ../../sda7 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 6C6069B960698AA2 -> ../../sdc1 lrwxrwxrwx 1 root root 10 2009-11-14 18:34 6D13-45B1 -> ../../sdi1 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 824cbd8a-6c1b-4975-b318-b1abbea729d3 -> ../../sdb7 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 b4c69e9b-4713-469c-b0a0-5f81633cb0eb -> ../../sdb6 lrwxrwxrwx 1 root root 10 2009-11-14 17:31 E8B4F1D1B4F1A26C -> ../../sdd1 diego@diego-desktop:~$ mount /dev/sdb6 on / type ext4 (rw,errors=remount-ro) proc on /proc type proc (rw) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type tmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) gvfs-fuse-daemon on /home/diego/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=diego) /dev/sdb1 on /media/1808BB9B08BB75FA type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdc1 on /media/Disco type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sdd1 on /media/Disco_ type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096) /dev/sr1 on /media/U3 System type iso9660 (ro,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500) /dev/sdi1 on /media/6D13-45B1 type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush) /dev/sda1 on /media/DISCO type vfat (rw,nosuid,nodev,uhelper=devkit,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,flush) diego@diego-desktop:~$ sudo fdisk -l [sudo] password for diego: Disco /dev/sda: 1000.2 GB, 1000204886016 byte 255 testine, 63 settori/tracce, 121601 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x14e7f4cc Dispositivo Boot Start End Blocks Id System /dev/sda1 2 85853 689606190 b W95 FAT32 /dev/sda2 85854 86901 8418060 83 Linux /dev/sda3 86902 117025 241971030 83 Linux /dev/sda4 117026 121593 36692460 5 Esteso /dev/sda5 117027 117046 160650 82 Linux swap / Solaris /dev/sda6 117048 117067 160650 83 Linux /dev/sda7 117069 121588 36306900 7 HPFS/NTFS Disco /dev/sdb: 200.0 GB, 200049647616 byte 255 testine, 63 settori/tracce, 24321 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x92e892e8 Dispositivo Boot Start End Blocks Id System /dev/sdb1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sdb2 12749 15180 19535040 83 Linux /dev/sdb3 15181 15545 2931862+ 82 Linux swap / Solaris /dev/sdb4 15546 24321 70493220 5 Esteso /dev/sdb5 15546 22585 56548768+ 83 Linux /dev/sdb6 22586 24242 13309821 83 Linux /dev/sdb7 24243 24321 634536 82 Linux swap / Solaris Disco /dev/sdc: 300.1 GB, 300069052416 byte 255 testine, 63 settori/tracce, 36481 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xb02cde84 Dispositivo Boot Start End Blocks Id System /dev/sdc1 * 1 36481 293033601 7 HPFS/NTFS Disco /dev/sdd: 320.1 GB, 320072933376 byte 255 testine, 63 settori/tracce, 38913 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xf42ed889 Dispositivo Boot Start End Blocks Id System /dev/sdd1 * 1 38913 312568641 7 HPFS/NTFS Disco /dev/sdi: 8029 MB, 8029470208 byte 255 testine, 63 settori/tracce, 976 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x711c3303 Dispositivo Boot Start End Blocks Id System /dev/sdi1 1 976 7839698 b W95 FAT32
Non in linea
Da il comando:
gksudo gedit /boot/grub/menu.lst
e copia alla fine del file le seguenti righe:
title Windows XP root (hd0,0) makeactive chainloader +1
Salva le modifiche e riavvia.
Non in linea
Ancora non parte...ecco il file di boot modificato:
# menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ## default num # Set the default entry to the entry number NUM. Numbering starts from 0, and # the entry number 0 is the default if the command is not used. # # You can specify 'saved' instead of a number. In this case, the default entry # is the entry saved with the command 'savedefault'. # WARNING: If you are using dmraid do not use 'savedefault' or your # array will desync and will not let you boot your system. default 0 ## timeout sec # Set a timeout, in SEC seconds, before automatically booting the default entry # (normally the first entry defined). timeout 3 ## hiddenmenu # Hides the menu by default (press ESC to see the menu) hiddenmenu # Pretty colours #color cyan/blue white/blue ## password ['--md5'] passwd # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ # password topsecret # # examples # # title Windows 95/98/NT/2000 # root (hd0,0) # makeactive # chainloader +1 # # title Linux # root (hd0,1) # kernel /vmlinuz root=/dev/hda2 ro # # # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST ### BEGIN AUTOMAGIC KERNELS LIST ## lines between the AUTOMAGIC KERNELS LIST markers will be modified ## by the debian update-grub script except for the default options below ## DO NOT UNCOMMENT THEM, Just edit them to your needs ## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted. ## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro ## default grub root device ## e.g. groot=(hd0,0) # groot=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ## should update-grub create alternative automagic boot options ## e.g. alternative=true ## alternative=false # alternative=true ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ## lockalternative=false # lockalternative=false ## additional options to use with the default boot option, but not with the ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash ## should update-grub lock old automagic boot options ## e.g. lockold=false ## lockold=true # lockold=false ## Xen hypervisor options to use with the default Xen boot option # xenhopt= ## Xen Linux kernel options to use with the default Xen boot option # xenkopt=console=tty0 ## altoption boot targets option ## multiple altoptions lines are allowed ## e.g. altoptions=(extra menu suffix) extra boot options ## altoptions=(recovery) single # altoptions=(recovery mode) single ## controls how many kernels should be put into the menu.lst ## only counts the first occurence of a kernel, not the ## alternative kernel options ## e.g. howmany=all ## howmany=7 # howmany=all ## specify if running in Xen domU or have grub detect automatically ## update-grub will ignore non-xen kernels when running in domU and vice versa ## e.g. indomU=detect ## indomU=true ## indomU=false # indomU=detect ## should update-grub create memtest86 boot option ## e.g. memtest86=true ## memtest86=false # memtest86=true ## should update-grub adjust the value of the default booted system ## can be true or false # updatedefaultentry=false ## should update-grub add savedefault to the default options ## can be true or false # savedefault=false ## ## End Default Options ## title Ubuntu 9.10, kernel 2.6.31-14-generic uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro quiet splash initrd /boot/initrd.img-2.6.31-14-generic title Ubuntu 9.10, kernel 2.6.31-14-generic (recovery mode) uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/vmlinuz-2.6.31-14-generic root=UUID=b4c69e9b-4713-469c-b0a0-5f81633cb0eb ro single initrd /boot/initrd.img-2.6.31-14-generic title Ubuntu 9.10, memtest86+ uuid b4c69e9b-4713-469c-b0a0-5f81633cb0eb kernel /boot/memtest86+.bin title Windows XP root (hd0,0) makeactive chainloader +1 ### END DEBIAN AUTOMAGIC KERNELS LIST
Mi torna lo stesso errore...
Ultima modifica di diegotedo (15-11-2009 12:14:53)
Non in linea
Prova ad aggiungere anche queste righe:
title Windows XP prova 2 root (hd1,0) makeactive chainloader +1 title Windows XP prova 3 map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd0,0) chainloader +1 makeactive title Windows XP prova 4 map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) chainloader +1 makeactive
Al riavvio nel menu' GRUB ti troverai anche le linee:
Windows XP prova 2
Windows XP prova 3
Windows XP prova 4
Provale tutte e fammi sapere.
Non in linea
Il problema è che non le vedo nella schermata del boot....
Vedo sempre e solo quella vecchia di XP e le 2 di Karmic
Non in linea
Posta il risultato di questo comando, che visualizza le partizioni degli hard disk, ma in modo un po' più leggibile rispetto a "sudo fdisk -l"
sudo parted -l
Poi proviamo a reinstallare GRUB nel MBR. Fai come segue:
1. Scollega tutti gli hard disk tranne quello da 200GB su cui sono installati windows XP e Ubuntu.
2. Dai il comando
sudo fdisk -l
Dal risultato del comando puoi vedere come viene chiamato l'unico hard disk che è rimasto collegato, se /dev/sda o /dev/sdb. Posta comunque il risultato del comando.
3. Se il disco viene chiamato /dev/sda da il seguente comando:
sudo grub-install /dev/sda
Se invece il disco viene chiamato /dev/sdb da il seguente comando:
sudo grub-install /dev/sdb
Questi comandi reinstalleranno GRUB nel Master Boot Record dell'hard disk. Anche in questo caso posta il risultato del comando.
4. Prova a riavviare lasciando sempre scollegati tutti gli hard disk. Le ultime linee del menù di boot dovrebbero essere le voci che avevamo inserito in precedenza nel file menu.lst:
Windows XP
Windows XP prova 2
Windows XP prova 3
Windows XP prova 4
Se non escono copia a mano e posta esattamente tutto quello che c'è scritto nella schermata di boot.
Non in linea
Premesso che staccando tutti gli hard disk eccetto quello da 200GB, stranamente non mi si avvia Ubuntu....e già questa cosa mi lascia completamente spiazzato (se prima iniziavo a capirci un poco, ora sono in alto mare).
La schermata di avvio del boot si presenta come segue:
Ubuntu, Linux 2.6.31-14-generic Ubuntu, Linux 2.6.31-14-generic (recovery mode) Memory test (memtest86+) Memory test (memtest86+, serial consolle 115.200) Microsoft Windows XP Home Edition (on /dev/sdb1) Ubuntu 9.10, kernel 2.6.31-14-generic-pae (on /dev/sdb2) Ubuntu 9.10, kernel 2.6.31-14-generic-pae (recovery mode) (on /dev/sdb2) Ubuntu 9.10, kernel 2.6.31-14-generic (on /dev/sdb2) Ubuntu 9.10, memtest86+ (on /dev/sdb2)
Mentre per quanto riguarda i comandi che mi hai postato eccone i risultati (ovviamente ho dovuto fare il tutto con gli hard disk connessi)
diego@diego-desktop:~$ sudo parted -l [sudo] password for diego: Modello: ATA WDC WD10EACS-00D (scsi) Disco /dev/sda: 1000GB Dimensione del settore (logica/fisica): 512B/512B Tabella delle partizioni: msdos Numero Inizio Fine Dimensione Tipo File system Flag 1 8225kB 706GB 706GB primary fat32 2 706GB 715GB 8620MB primary 3 715GB 963GB 248GB primary 4 963GB 1000GB 37,6GB extended 5 963GB 963GB 165MB logical linux-swap(v1) 6 963GB 963GB 165MB logical ext3 7 963GB 1000GB 37,2GB logical ntfs Modello: ATA WDC WD2000JS-00S (scsi) Disco /dev/sdb: 200GB Dimensione del settore (logica/fisica): 512B/512B Tabella delle partizioni: msdos Numero Inizio Fine Dimensione Tipo File system Flag 1 32,3kB 105GB 105GB primary ntfs avvio 2 105GB 125GB 20,0GB primary ext3 3 125GB 128GB 3002MB primary linux-swap(v1) 4 128GB 200GB 72,2GB extended 5 128GB 186GB 57,9GB logical ext3 6 186GB 199GB 13,6GB logical ext4 7 199GB 200GB 650MB logical linux-swap(v1) Modello: ATA ST3300822AS (scsi) Disco /dev/sdc: 300GB Dimensione del settore (logica/fisica): 512B/512B Tabella delle partizioni: msdos Numero Inizio Fine Dimensione Tipo File system Flag 1 32,3kB 300GB 300GB primary ntfs avvio Modello: ATA MAXTOR STM332062 (scsi) Disco /dev/sdd: 320GB Dimensione del settore (logica/fisica): 512B/512B Tabella delle partizioni: msdos Numero Inizio Fine Dimensione Tipo File system Flag 1 32,3kB 320GB 320GB primary ntfs avvio diego@diego-desktop:~$ sudo fdisk -l [sudo] password for diego: Disco /dev/sda: 1000.2 GB, 1000204886016 byte 255 testine, 63 settori/tracce, 121601 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x14e7f4cc Dispositivo Boot Start End Blocks Id System /dev/sda1 2 85853 689606190 b W95 FAT32 /dev/sda2 85854 86901 8418060 83 Linux /dev/sda3 86902 117025 241971030 83 Linux /dev/sda4 117026 121593 36692460 5 Esteso /dev/sda5 117027 117046 160650 82 Linux swap / Solaris /dev/sda6 117048 117067 160650 83 Linux /dev/sda7 117069 121588 36306900 7 HPFS/NTFS Disco /dev/sdb: 200.0 GB, 200049647616 byte 255 testine, 63 settori/tracce, 24321 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0x92e892e8 Dispositivo Boot Start End Blocks Id System /dev/sdb1 * 1 12748 102398278+ 7 HPFS/NTFS /dev/sdb2 12749 15180 19535040 83 Linux /dev/sdb3 15181 15545 2931862+ 82 Linux swap / Solaris /dev/sdb4 15546 24321 70493220 5 Esteso /dev/sdb5 15546 22585 56548768+ 83 Linux /dev/sdb6 22586 24242 13309821 83 Linux /dev/sdb7 24243 24321 634536 82 Linux swap / Solaris Disco /dev/sdc: 300.1 GB, 300069052416 byte 255 testine, 63 settori/tracce, 36481 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xb02cde84 Dispositivo Boot Start End Blocks Id System /dev/sdc1 * 1 36481 293033601 7 HPFS/NTFS Disco /dev/sdd: 320.1 GB, 320072933376 byte 255 testine, 63 settori/tracce, 38913 cilindri Unità = cilindri di 16065 * 512 = 8225280 byte Identificativo disco: 0xf42ed889 Dispositivo Boot Start End Blocks Id System /dev/sdd1 * 1 38913 312568641 7 HPFS/NTFS diego@diego-desktop:~$ sudo grub-install /dev/sdb /dev/sdb does not have any corresponding BIOS drive.
In pratica pur avendo tutti gli hard disk collegati, mi sembra evidente che il disco su cui viaggiano i sistemi operativi sia il dispositivo nominato come "sdb", tuttavia il sistema fallisce l'installazione del grub....
Non in linea
Io in questa situazione direi di provare a reinstallare Karmic, rifacendo le cose con ordine. Anche perchè non riesco a capire come mai si sia installato GRUB 1 anzichè GRUB 2.
Questo è lo schema di partizionamento del tuo hard disk da 200GB.
Modello: ATA WDC WD2000JS-00S (scsi) Disco /dev/sdb: 200GB Dimensione del settore (logica/fisica): 512B/512B Tabella delle partizioni: msdos Numero Inizio Fine Dimensione Tipo File system Flag 1 32,3kB 105GB 105GB primary ntfs avvio 2 105GB 125GB 20,0GB primary ext3 3 125GB 128GB 3002MB primary linux-swap(v1) 4 128GB 200GB 72,2GB extended 5 128GB 186GB 57,9GB logical ext3 6 186GB 199GB 13,6GB logical ext4 7 199GB 200GB 650MB logical linux-swap(v1)
La partizione numero 6, da quanto mi hai detto, dovrebbe essere quella dove hai eseguito l'installazione da zero di Karmic.
Fai come segue:
1. Fai una copia dei tuoi dati che si trovano sulla partizione 6.
2. Scollega gli hard disk tranne quello da 200GB.
3. Scarica Gparted Live CD da qui. Utilizzalo per rimuovere le partizioni 6 e 7.
4. Installa Ubuntu Karmic. Prima di iniziare l'insatallazione verifica che il CD sia masterizzato correttamente. Quando arrivi alla fase di partizionamento scegli di utilizzare lo spazio libero su disco (sono i 14GB che hai liberato al punto 2 cancellando le partizioni 6 e 7.
5. Riavvia il pc senza ricollegare gli altri hard disk e tutto dovrebbe funzionare.
6. Quando ricolleghi gli altri hard disk vai nel BIOS e controlla che l'hard disk da 200GB sia il primo hard disk nella sequenza di boot.
Non in linea