sabato 19 gennaio 2008

Ripristinare MBR di Windows usando Ubuntu Live Cd

http://www.aldolat.it/wp-content/uploads/2007/06/grub-fs.png
Testato su Ubuntu 7.04, Ubuntu 7.10 e Linux Mint 4.0 Live CD
Se desiderate ripristinare il BootLoader di WindowsXP e per qualsiasi ragione non potete utilizzare il CD di installazione, seguite questo tutorial passo per passo.

Boot into your Ubuntu LiveCD on the offending machine. Once Ubuntu starts up, go to System -> Administration -> Software Sources and enable (by checking it off) the Universal repository.

Now, open a terminal session (Applications -> Accessories -> Terminal) and type the following:

sudo apt-get install ms-sys

ms-sys is a program used to write Microsoft compatible boot records.

Now you’ll need to figure out what partition is the one hosting your Windows operating system. Back in the command line, type:

sudo fdisk -l

That will list the available partitions. You’re looking for a partition that says something like

/dev/sda1 1 9327 74919096 83 NTFS

The two important bits are the ‘/dev/sda1‘ which is the partition itself and the ‘NTFS‘ which tells us it’s a Windows formatted partition.

We want to fix the MBR, on /dev/sda1. To do so, type:

sudo ms-sys –mbr /dev/sda1

You’ll want to change the ’sda1′ bit if your results from ‘fdisk -l‘ are different.

Once you do that, reboot the machine, removing the LiveCD from the drive and Windows should come back to you.

Sure, you could do this by inserting the correct Windows CD and booting into repair mode from it - but I find the Ubuntu way a bit faster and I’m more likely to have an Ubuntu LiveCD on me than a Windows CD.



Ultimi post pubblicati categoria "Applicazioni"


RSVP (Raccomandati Se Vi Piacciono)

18/91 - Asterisk@Home diventata Trixbox rilascia la nuova versione 2.4
18/01 - PlayOnLinux, per installare facilmente i giochi
17/01 - Install KDE in Ubuntu 7.10
16/01 - Gelatin per Ubuntu 8.04
15/01 - NetVault utility di backup e ripristino per Linux
14/01 - Installare KDE 4.0 su Ubuntu Gutsy Gibbon
14/01- Ubuntu Multimedia Center
09/01 - Virtual Open Source Edition presente in Ubuntu repository
09/01 - Personal Appliance Backup: backup e ripristino basato su Ubuntu e vmware
09/01 - Browsers internet per Linux
08/01 - Applicazione di backup per KDE
03/01 - Glastree, the GUI (Graphical Use Interface) for Linux

2 commenti:

Andrea Occhi ha detto...

si può fare la stessa cosa con un cd di knoppix, senza doversi collegare a internet!
Dopo il boot, su un terminale scrivere install-mbr /dev/sda (o un altro disco, come hda, o sdg :-)...)
Questo comando (velocissimo, sembra non fare nulla) cancella il boot loader esistente e ne mette uno che esegue il boot dalla prima partizione bootabile.
non è il boot loader di microsoft, ma funziona...
Funziona anche se si usa un adattatore usb.

you can make the same thing using a knoppix cd, without network connection!
Boot with knoppix, and type install-mbr /dev/sda (or any other disk device, such as hda, or sdg :-)..). It will delete (very fastly) the existing mbr and place a new mbr, that boot the first bootable partition.
Ok, it isn't the microsoft boot-loader, but it works!
It works even you use a usb-to-ide adapter!

Rock ha detto...

Ciao a tutti sono disperato, volevo rimuovere l'mbr di Ubuntu ed ho seguito i vari post che riportavano: ho installato ms-sys e poi ms-sys -w /dev/[drive], il problema è che mi dava un asterisco accanto alla partizione del windows e mi diceva (dal terminale) seems to be a local device (o qualcosa del genere) allora ho forzato con -f ma nulla allora con -fz....cmq fatto sta che ora non ho piu l'mbr di windows, o meglio mi compare ma al click mi da errore, posso solo accede a Ubuntu.
(tutta la procedura l'ho fatta con il live cd)
Non ho il cd di windows, devo fare tutto da Ubuntu, se ora faccio fdisk -l la partizione del windows C non mi apare...aAIUTOOOOO

Vota il Post

Linux News

RSVP (Raccomandati Se Vi Piacciono)

Google News Italia

Social Bookmarking
Add to: Mr. Wong Add to: Webnews Add to: Icio Add to: Oneview Add to: Linkarena Add to: Favoriten Add to: Seekxl Add to: Kledy.de Add to: Social Bookmarking Tool Add to: BoniTrust Add to: Power Oldie Add to: Bookmarks.cc Add to: Favit Add to: Newskick Add to: Newsider Add to: Linksilo Add to: Readster Add to: Folkd Add to: Yigg Add to: Digg Add to: Del.icio.us Add to: Reddit Add to: Jumptags Add to: Upchuckr Add to: Simpy Add to: StumbleUpon Add to: Slashdot Add to: Netscape Add to: Furl Add to: Yahoo Add to: Spurl Add to: Google Add to: Blinklist Add to: Blogmarks Add to: Diigo Add to: Technorati Add to: Newsvine Add to: Blinkbits Add to: Ma.Gnolia Add to: Smarking Add to: Netvouz Information

Social Bookmarking

Antipixels & Counters

Add to Technorati Favorites MaxWeb Top 100 tutto blog Aggregatore Directory dei blog italiani Blog360gradi - L’aggregatore di notizie a 360°

 provenienti dal mondo dei blog! BlogItalia.it - La directory italiana dei blog Feed XML offerto da BlogItalia.it Sito preferito Il Bloggatore Italian Bloggers diigo it
visitor stats Programming Blogs - Blog Catalog Blog Directory AddThis Social Bookmark Button Registra il tuo sito nei motori di ricerca

web metrics