linux user group brescia

immagine del castello

Archivio della mailing list

[LugBS] Ripristino dual boot HELP! ----RISOLTO----

iz2fly a alice.it iz2fly a alice.it
Lun 21 Mar 2011 22:07:28 UTC
Ok tutto risolto!!! Mi ha montato la part. sda e così via come sotto.

Grazie di tutto e alla prossima......
Ernesto.

 
  Normal
  0
  14
  
  
  false
  false
  false
  
   
   
   
   
   
  
  MicrosoftInternetExplorer4
 

 
 


 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Tabella normale";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin:0cm;
	mso-para-margin-bottom:.0001pt;
	mso-pagination:widow-orphan;
	font-size:10.0pt;
	font-family:"Times New Roman";
	mso-ansi-language:#0400;
	mso-fareast-language:#0400;
	mso-bidi-language:#0400;}


 

 
  
 

ubuntu a ubuntu:~$ sudo fdisk -l



Disk /dev/sda: 160.0 GB,
160041885696 bytes

255 heads, 63 sectors/track, 19457 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0x3ba83ba7



   Device Boot      Start         End      Blocks  
Id  System

/dev/sda1   *           1       16573  
133122591    7  HPFS/NTFS

/dev/sda2           16574       19457   
23165730    5  Extended

/dev/sda5           16574      
16816     1951866   82 
Linux swap / Solaris

/dev/sda6           16817       19457   
21213801   83  Linux

ubuntu a ubuntu:~$ sudo mount /dev/sda /mnt

mount: /dev/sda already mounted or /mnt busy

ubuntu a ubuntu:~$ sudo mount /dev/sda6 /mnt

ubuntu a ubuntu:~$ sudo mount --bind /dev /mnt/dev

ubuntu a ubuntu:~$ sudo mount --bind /proc /mnt/proc

ubuntu a ubuntu:~$ sudo mount --bind /sys /mnt/sys

ubuntu a ubuntu:~$ sudo chroot /mnt

root a ubuntu:/# mount /dev/sda6 /boot

root a ubuntu:/# grub-install /dev/sda

/dev/sda does not have any corresponding BIOS drive.

root a ubuntu:/# grub-install --recheck /dev/sda

Probing devices to guess BIOS drives. This may take a long time.

Searching for GRUB installation directory ... found: /boot/grub

The file /boot/grub/stage2 not read correctly.

root a ubuntu:/# exit

exit

ubuntu a ubuntu:~$ cd ~

ubuntu a ubuntu:~$ sudo umount /mnt/dev

ubuntu a ubuntu:~$ sudo umount /mnt/proc

ubuntu a ubuntu:~$ sudo umount /mnt/sys

ubuntu a ubuntu:~$ sudo umount /mnt/

umount: /mnt: device is busy.

        (In some cases useful info about
processes that use

         the device is found by lsof(8)
or fuser(1))

ubuntu a ubuntu:~$




Ernesto




----Messaggio originale----

Da: flyingstar16 a gmail.com

Data: 20-mar-2011 13.31

A: "iz2fly a alice.it"<iz2fly a alice.it>, "Linux User Group di Brescia"<lug a lugbs.linux.it>

Ogg: Re: [LugBS] Ripristino dual boot HELP!



Ciao,
sembra che ti manchi il file grub.cfg
Quanto hai lanciato update-grub2 ti ha detto che il programma non esisteva; prova a rifare la procedura e a usare update-grub invece di update-grub2.
Se ti genera il grub.cfg dovresti essere a posto =)



Ciao,
Claudio

2011/3/20 iz2fly a alice.it <iz2fly a alice.it>


 Help!!!!!! non mi si accede più il PC, mi esce la scritta GRUB > con il cursore che lampeggia ......
Seguendo la guida, fortunatamente mi sono annotato tutti i passi, ho così fatto, errori compresi:

ubuntu a ubuntu:~$ sudo fdisk -l



Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk identifier: 0x3ba83ba7

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       16573   133122591    7  HPFS/NTFS
/dev/sdb2           16574       19457    23165730    5  Extended


/dev/sdb5           16574       16816     1951866   82  Linux swap / Solaris
/dev/sdb6           16817       19457    21213801   83  Linux

ubuntu a ubuntu:~$ sudo mount /dev/sdb6 /mnt
ubuntu a ubuntu:~$ sudo mount --bind /dev /mnt/dev


ubuntu a ubuntu:~$ sudo mount --bind /proc /mnt/proc
ubuntu a ubuntu:~$ sudo mount --bind /sys /mnt/sys
ubuntu a ubuntu:~$ sudo chroot /mnt
root a ubuntu:/# grug-install /dev/sdb

Comando "grug-install" non trovato. Forse si intendeva:


 Comando "grub-install" dal pacchetto "lupin-support" (main)
 Comando "grub-install" dal pacchetto "grub-coreboot" (universe)
 Comando "grub-install" dal pacchetto "grub" (main)


 Comando "grub-install" dal pacchetto "grub-efi-ia32" (main)
 Comando "grub-install" dal pacchetto "grub-ieee1275" (universe)
 Comando "grub-install" dal pacchetto "grub-efi-amd64" (main)


 Comando "grub-install" dal pacchetto "grub-pc" (main)
grug-install: comando non trovato

root a ubuntu:/# grub-install /dev/sdb
/dev/sdb does not have any corresponding BIOS drive.
root a ubuntu:/# mount /dev/sdb6 /boot


root a ubuntu:/# grub-install /dev/sdb
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sdb as (hd0)...
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/sdb


root a ubuntu:/# update-grub2
Il programma "update-grub2" può essere trovato nei seguenti pacchetti:
 * grub-efi-amd64
 * grub-efi-ia32
 * grub-pc
 * grub-coreboot
 * grub-ieee1275
Provare: apt-get install <PACCHETTO SELEZIONATO>



root a ubuntu:/# grub-install --recheck /dev/sdb
Probing devices to guess BIOS drives. This may take a long time.
Searching for GRUB installation directory ... found: /boot/grub
Installing GRUB to /dev/sdb as (hd0)...


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/sdb
root a ubuntu:/# exit
exit
ubuntu a ubuntu:~$ cd ~
ubuntu a ubuntu:~$ sudo umount /mnt/dev
ubuntu a ubuntu:~$ sudo umount /mnt/proc
ubuntu a ubuntu:~$ sudo umount/mnt/sys


sudo: umount/mnt/sys: command not found
ubuntu a ubuntu:~$ sudo umount mnt/sys
umount: mnt/sys: not found
ubuntu a ubuntu:~$ sudo umount /mnt/sys
ubuntu a ubuntu:~$ sudo umount /mnt/
umount: /mnt: device is busy.


        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
ubuntu a ubuntu:~$ 


C'è rimedio????????

Vi prego!!!

ERNESTO



----Messaggio originale----

Da: luisa.ravelli a lugbs.linux.it

Data: 17-mar-2011 22.30

A: "iz2fly a alice.it"<iz2fly a alice.it>, "Linux User Group di Brescia"<lug a lugbs.linux.it>



Ogg: Re: [LugBS] Ripristino dual boot



Il giorno 17 marzo 2011 21:40, iz2fly a alice.it <iz2fly a alice.it> ha scritto:


Cosa devo fare, mi raccomando, passo dopo passo, senza mettere per scontato nulla.
L'installazione di xp ha sovrascritto l'mbr, segui questa guida: http://wiki.ubuntu-it.org/AmministrazioneSistema/Grub/Ripristino



Parti da live cd, dovresti riuscire a ripristinare grub, se qualcosa non ti è chiaro o non va come deve facci sapere.

Ciao,Luisa
--

Info/Lamentele/Segnalazioni: andrea.gelmini a gmail.com






-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://lugbs.linux.it/pipermail/lug/attachments/20110321/69887270/attachment.html>


Maggiori informazioni sulla lista Lug