Recovering Ubuntu after installing Windows 7

By Krishnamoorthy

For Ubuntu 9.10 ( Grub 2) :

I installed Ubuntu Karmic 9.10 some time back. Recently installed Windows 7.

As expected the Ubuntu GRUB boot loader is lost and I had to recover it. Since Ubuntu Karmic uses GRUB 2, the old procedure will not work.

To restore GRUB 2 after installing Windows use the below procedure:

1) Boot the system with Ubuntu Karmic CD

2) STart the console and enter superuser mode with command “sudo -i”

3) Run command “fdisk -l” , to see the partitions available:

In my system:

fdisk -l

// l is character l, not number 1 (in case of misunderstanding)

 Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
 255 heads, 63 sectors/track, 121601 cylinders
 Units = cylinders of 16065 * 512 = 8225280 bytes
 Disk identifier: 0x000d590b
 Device Boot       Start          End      Blocks   Id  System
/dev/sda1 1        4863     39062016   83  Linux
 /dev/sda2             4864      114277    878867955    f  W95 Ext'd (LBA)
 /dev/sda3   *       114278      120806     52436992    7  HPFS/NTFS
 /dev/sda6            11833       12136      2441848+  82  Linux swap / Solaris
 /dev/sda7            18665       82406    512007583+   7  HPFS/NTFS

Identify the Ubuntu root partition. In my case it was “/dev/sda1”

4) Mount root partition in some location

mkdir /media/root
 mount /dev/sda1 /media/root

Replace “/dev/sda1” with your root partition.

5) Install grub:

sudo grub-install --root-directory=/media/root /dev/sda

If you get BIOS warning use the command:

sudo grub-install --root-directory=/media/root /dev/sda --recheck

Then run :(This was me edit from Krishnamoorthy‘s original post )

sudo update-grub2

Now you should be able to see grub after restart.
In case you need to make changes to boot order, change /etc/grub/grub file, then run again :

sudo update-grub2

that will automatically modify the file: /boot/grub/grub.cfg

For Ubuntu 9.04 and older ( Grub ) :

I just installed Windows 7 RC. I already dual boot with Windows XP and Ubuntu Jaunty Jackalope 9.04. In this case, installed Windows 7 over the XP partition.

As expected , Windows overwrites the boot record and only Windows 7 started, hiding the Ubuntu.

I used the following steps from this guide for recovering my Jaunty.

  • Boot using Ubuntu Live CD. 9.04 version in my case
  • Launch the Terminal
  • Issue the command:
sudo grub

In the grub prompt:

grub>find /boot/grub/stage1

Using this information, set the root device (fill in X,Y with whatever the find command returned):

grub> root (hdX,Y)
 grub> setup (hd0)

Reboot. Now you should see the previous grub and boot into Ubuntu.

Sometimes, Windows 7 may not boot from grub. To fix this :

Edit “/boot/grub/menu.lst” ( after booting in Ubuntu )

Add/Edit the section:

title Windows 7 # You can use any title you wish, this will  appear on your grub boot menu
 rootnoverify (hd0,0)
 makeactive
 chainloader +1

You may have to adjust the “rootnoverify (hd0,0)” to  “rootnoverify (hd0,1)” or “rootnoverify (hd0,2)” or “rootnoverify (hd0,3)” so on till it boots Windows.

918 thoughts on “Recovering Ubuntu after installing Windows 7

  1. medication from mexico pharmacy [url=https://foruspharma.com/#]mexican pharmacy[/url] mexican drugstore online

  2. mexico pharmacies prescription drugs [url=http://foruspharma.com/#]purple pharmacy mexico price list[/url] п»їbest mexican online pharmacies

  3. buying prescription drugs in mexico [url=https://foruspharma.com/#]mexican pharmaceuticals online[/url] purple pharmacy mexico price list

  4. canada cloud pharmacy [url=https://canadapharmast.online/#]onlinepharmaciescanada com[/url] canadian pharmacy online reviews

  5. medicine in mexico pharmacies [url=http://mexicandeliverypharma.com/#]best online pharmacies in mexico[/url] buying prescription drugs in mexico

  6. mexico pharmacies prescription drugs [url=https://mexicandeliverypharma.online/#]mexican online pharmacies prescription drugs[/url] mexico pharmacy

  7. medication from mexico pharmacy [url=http://mexicandeliverypharma.com/#]mexico drug stores pharmacies[/url] best online pharmacies in mexico

  8. buying prescription drugs in mexico online [url=https://mexicandeliverypharma.com/#]mexico pharmacies prescription drugs[/url] mexican pharmacy

  9. п»їbest mexican online pharmacies [url=https://mexicandeliverypharma.online/#]reputable mexican pharmacies online[/url] mexican rx online

  10. mexican mail order pharmacies [url=https://mexicandeliverypharma.com/#]medicine in mexico pharmacies[/url] mexico pharmacy

  11. mexican pharmacy [url=https://mexicandeliverypharma.com/#]mexican pharmaceuticals online[/url] buying prescription drugs in mexico

  12. mexican rx online [url=http://mexicandeliverypharma.com/#]mexican online pharmacies prescription drugs[/url] mexican drugstore online

  13. п»їbest mexican online pharmacies [url=http://mexicandeliverypharma.com/#]buying from online mexican pharmacy[/url] medicine in mexico pharmacies

  14. mexico drug stores pharmacies [url=http://mexicandeliverypharma.com/#]pharmacies in mexico that ship to usa[/url] purple pharmacy mexico price list

  15. buying prescription drugs in mexico online [url=https://mexicandeliverypharma.com/#]mexico pharmacy[/url] buying prescription drugs in mexico

  16. mexican border pharmacies shipping to usa [url=http://mexicandeliverypharma.com/#]mexican mail order pharmacies[/url] mexico drug stores pharmacies

  17. mexican pharmacy [url=https://mexicandeliverypharma.online/#]mexican pharmaceuticals online[/url] medicine in mexico pharmacies

  18. purple pharmacy mexico price list [url=http://mexicandeliverypharma.com/#]reputable mexican pharmacies online[/url] mexican border pharmacies shipping to usa

  19. mexican pharmacy [url=https://mexicandeliverypharma.com/#]mexican online pharmacies prescription drugs[/url] mexican mail order pharmacies

  20. mexican mail order pharmacies [url=http://mexicandeliverypharma.com/#]mexican rx online[/url] pharmacies in mexico that ship to usa

  21. mexico pharmacies prescription drugs [url=https://mexicandeliverypharma.com/#]mexican pharmaceuticals online[/url] best online pharmacies in mexico

  22. purple pharmacy mexico price list [url=http://mexicandeliverypharma.com/#]buying prescription drugs in mexico[/url] mexican rx online

  23. pharmacies in mexico that ship to usa [url=https://mexicandeliverypharma.com/#]purple pharmacy mexico price list[/url] purple pharmacy mexico price list

  24. п»їcytotec pills online [url=https://cytotecbestprice.pro/#]buy cytotec online[/url] cytotec abortion pill

  25. prednisone price south africa [url=https://prednisonebestprice.pro/#]prednisone cream[/url] prednisone for sale online

  26. propecia generics [url=http://propeciabestprice.pro/#]buying generic propecia pills[/url] cost of generic propecia price

  27. canadian pharmacy near me [url=https://easyrxcanada.online/#]safe reliable canadian pharmacy[/url] canadian online pharmacy reviews

  28. vavada казино [url=http://vavada.auction/#]вавада рабочее зеркало[/url] vavada online casino

  29. best online pharmacies in mexico [url=http://mexicopharmacy.cheap/#]best online pharmacies in mexico[/url] mexican mail order pharmacies

  30. buying from online mexican pharmacy [url=https://mexicopharmacy.cheap/#]mexico pharmacies prescription drugs[/url] medication from mexico pharmacy

  31. world pharmacy india [url=https://indianpharmacy.company/#]indian pharmacies safe[/url] reputable indian pharmacies

  32. medication from mexico pharmacy [url=https://mexicopharmacy.cheap/#]mexican online pharmacies prescription drugs[/url] mexico pharmacies prescription drugs

  33. medication from mexico pharmacy [url=https://mexicopharmacy.cheap/#]buying from online mexican pharmacy[/url] mexican pharmaceuticals online

  34. buy medicines online in india [url=https://indianpharmacy.company/#]buy medicines online in india[/url] online shopping pharmacy india

  35. mexican drugstore online [url=http://mexicopharmacy.cheap/#]mexico drug stores pharmacies[/url] mexican mail order pharmacies

  36. mexican border pharmacies shipping to usa [url=http://mexicopharmacy.cheap/#]п»їbest mexican online pharmacies[/url] mexican drugstore online

  37. medicine in mexico pharmacies [url=https://mexicopharmacy.cheap/#]pharmacies in mexico that ship to usa[/url] buying from online mexican pharmacy

  38. pharmacies in mexico that ship to usa [url=https://mexicopharmacy.cheap/#]buying prescription drugs in mexico online[/url] medicine in mexico pharmacies

  39. starz bet giris: starzbet – starz bet giris
    gates of olympus slot [url=http://gatesofolympusoyna.online/#]gates of olympus demo[/url] gates of olympus giris

  40. sildenafilo cinfa sin receta [url=http://sildenafilo.men/#]viagra generico[/url] comprar viagra en espaГ±a envio urgente

  41. comprare farmaci online all’estero [url=http://farmaciait.men/#]Farmacie on line spedizione gratuita[/url] acquisto farmaci con ricetta

  42. farmacia online piГ№ conveniente [url=https://farmaciait.men/#]Farmacie online sicure[/url] Farmacia online piГ№ conveniente

  43. top farmacia online [url=https://tadalafilit.com/#]Cialis generico recensioni[/url] Farmacie on line spedizione gratuita

  44. farmaci senza ricetta elenco [url=https://tadalafilit.com/#]Cialis generico prezzo[/url] farmacia online piГ№ conveniente

  45. farmacia online senza ricetta [url=https://tadalafilit.com/#]Tadalafil generico migliore[/url] comprare farmaci online all’estero

  46. farmacia online piГ№ conveniente [url=https://brufen.pro/#]BRUFEN 600 prezzo in farmacia[/url] acquisto farmaci con ricetta

  47. comprare farmaci online all’estero [url=http://brufen.pro/#]BRUFEN 600 mg 30 compresse prezzo[/url] comprare farmaci online all’estero

  48. viagra ordine telefonico [url=https://sildenafilit.pro/#]viagra senza prescrizione[/url] cialis farmacia senza ricetta

  49. acquisto farmaci con ricetta [url=https://tadalafilit.com/#]Cialis generico prezzo[/url] farmacie online autorizzate elenco

  50. comprare farmaci online all’estero [url=https://farmaciait.men/#]Farmacia online piu conveniente[/url] farmacia online senza ricetta

  51. kamagra senza ricetta in farmacia [url=http://sildenafilit.pro/#]viagra farmacia[/url] viagra originale in 24 ore contrassegno

  52. farmacie online sicure [url=https://brufen.pro/#]Brufen 600 senza ricetta[/url] Farmacie on line spedizione gratuita

  53. migliori farmacie online 2024 [url=https://tadalafilit.com/#]Cialis generico recensioni[/url] farmacie online sicure

  54. farmacie online autorizzate elenco [url=http://farmaciait.men/#]Farmacie on line spedizione gratuita[/url] top farmacia online

  55. canadapharmacyonline [url=http://canadapharma.shop/#]canadian pharmacies[/url] canadian drugs pharmacy

  56. reputable indian online pharmacy [url=http://indiadrugs.pro/#]buy medicines online in india[/url] india online pharmacy

  57. reputable indian online pharmacy [url=https://indiadrugs.pro/#]indian pharmacy[/url] п»їlegitimate online pharmacies india

  58. online pharmacy india [url=https://indiadrugs.pro/#]indian pharmacy[/url] Online medicine home delivery

  59. pharmacie en ligne fiable [url=http://pharmaciepascher.pro/#]pharmacie en ligne pas cher[/url] pharmacie en ligne france livraison internationale

  60. Pharmacie en ligne livraison Europe [url=https://pharmaciepascher.pro/#]Medicaments en ligne livres en 24h[/url] pharmacie en ligne fiable

  61. Viagra sans ordonnance livraison 24h [url=https://vgrsansordonnance.com/#]Acheter du Viagra sans ordonnance[/url] Viagra gГ©nГ©rique sans ordonnance en pharmacie

  62. pharmacies en ligne certifiГ©es [url=https://clssansordonnance.icu/#]Cialis generique achat en ligne[/url] pharmacie en ligne livraison europe

  63. пин ап [url=http://pinupkz.tech/#]пин ап казино вход[/url] пин ап казино онлайн

  64. пин ап вход [url=http://pinupru.site/#]пин ап казино зеркало[/url] pin up казино

  65. minocycline 50 mg para que sirve [url=https://stromectol.agency/#]buy stromectol online[/url] stromectol 15 mg

  66. ivermectin 0.5 [url=https://stromectol.agency/#]minocycline 100 mg for sale[/url] ivermectin 6 mg tablets

  67. where to get amoxicillin over the counter [url=https://amoxil.llc/#]buy amoxil[/url] can you buy amoxicillin over the counter canada

  68. amoxicillin 500 tablet [url=https://amoxil.llc/#]amoxicillin cheapest price[/url] amoxicillin 500 capsule

  69. buy amoxicillin online with paypal [url=https://amoxil.llc/#]cost of amoxicillin 30 capsules[/url] buy amoxicillin online mexico

  70. rybelsus price [url=http://semaglutide.win/#]order Rybelsus for weight loss[/url] Buy compounded semaglutide online

  71. amoxicillin tablets in india [url=https://amoxil.llc/#]amoxicillin 500mg capsules uk[/url] antibiotic amoxicillin

  72. cheapest online pharmacy india [url=http://indianpharmdelivery.com/#]best online pharmacy india[/url] indian pharmacy

  73. buy medications online [url=https://drugs24.pro/#]ed devices[/url] ed meds online without doctor prescription

  74. best india pharmacy [url=http://indianpharmdelivery.com/#]top 10 online pharmacy in india[/url] reputable indian pharmacies

  75. top 10 online pharmacy in india [url=https://indianpharmdelivery.com/#]best india pharmacy[/url] reputable indian online pharmacy

  76. indian pharmacy [url=https://indianpharmdelivery.com/#]buy prescription drugs from india[/url] п»їlegitimate online pharmacies india

  77. mexican mail order pharmacies [url=http://mexicanpharm24.pro/#]mexican rx online[/url] best online pharmacies in mexico

  78. viagra without a doctor prescription walmart [url=https://drugs24.pro/#]ed medicine online[/url] erectyle disfunction

  79. buying prescription drugs in mexico online [url=https://mexicanpharm24.pro/#]п»їbest mexican online pharmacies[/url] best online pharmacies in mexico

  80. cheap plavix antiplatelet drug [url=https://clopidogrel.pro/#]best price on generic[/url] plavix medication

  81. ivermectin goodrx [url=https://stromectol1st.shop/#]cheapest stromectol[/url] minocycline 50 mg para que sirve

  82. пин ап [url=http://1winci.icu/#]пин ап официальный сайт[/url] пин ап вход

  83. medicine in mexico pharmacies [url=http://mexicanpharm1st.com/#]purple pharmacy mexico price list[/url] buying prescription drugs in mexico

  84. india pharmacy mail order [url=http://indianpharm24.pro/#]Pharmacies in India that ship to USA[/url] buy medicines online in india

  85. ed medications over the counter [url=http://pharm24.pro/#]cheap meds[/url] 100mg viagra without a doctor prescription

  86. reputable mexican pharmacies online [url=https://mexicanpharm24.cheap/#]mexican pharmacy[/url] mexico drug stores pharmacies

  87. best online pharmacies in mexico [url=http://mexicanpharm24.cheap/#]mexican pharm 24[/url] pharmacies in mexico that ship to usa

  88. best online pharmacy india [url=https://indianpharm24.pro/#]India pharmacy delivery[/url] pharmacy website india

  89. prescription drugs online without doctor [url=https://pharm24.pro/#]buy drugs[/url] viagra without doctor prescription amazon

  90. indian pharmacy [url=https://indianpharm24.pro/#]India pharmacy delivery[/url] п»їlegitimate online pharmacies india

  91. deneme bonusu veren siteler denemebonusu2026.com [url=https://denemebonusuverensiteler.top/#]deneme bonusu veren siteler mycbet.com[/url] deneme bonusu veren siteler denemebonusu2026.com

  92. deneme bonusu veren siteler betturkey [url=https://denemebonusuverensiteler.top/#]deneme bonusu veren siteler denemebonusu2026.com[/url] deneme bonusu veren siteler yeni

  93. deneme bonusu veren siteler [url=https://denemebonusuverensiteler.top/#]deneme bonusu veren siteler yerliarama.org[/url] deneme bonusu veren siteler

  94. en kazancl? slot oyunlar? [url=https://slot-tr.online/#]slot oyunlar? puf noktalar?[/url] az parayla cok kazandiran slot oyunlar?

  95. over the counter ed medication [url=https://canadiandrugsgate.com/#]canadian pharmacy[/url] over the counter ed

  96. medication from mexico pharmacy [url=https://mexicanpharmgate.com/#]mexican drugstore online[/url] pharmacies in mexico that ship to usa

  97. online pharmacy india [url=https://indianpharmacyeasy.com/#]Online medicine home delivery[/url] п»їlegitimate online pharmacies india

  98. online shopping pharmacy india [url=https://indianpharmacyeasy.com/#]indian pharmacy[/url] best online pharmacy india

  99. how can i get clomid no prescription [url=https://clomidrexpharm.com/#]buy clomid[/url] can i buy clomid without insurance

  100. prednisone tablets india [url=https://prednisoneraypharm.com/#]prednisoneraypharm[/url] buy prednisone from india

  101. purchase amoxicillin 500 mg [url=https://amoxilcompharm.com/#]order amoxicillin 500mg[/url] rexall pharmacy amoxicillin 500mg

  102. prednisone 5084 [url=https://prednisoneraypharm.com/#]Prednisone Without Prescription[/url] how much is prednisone 5mg

Leave a Reply

Your email address will not be published. Required fields are marked *