how to get back the ubuntu?

4 views
Skip to first unread message

pujan send

unread,
May 27, 2012, 1:54:37 AM5/27/12
to foss-...@googlegroups.com
hello guys,

I have a dual boot os of ubuntu and the windows...when i reinstalling the windows, i cant use the ubuntu now..
how can i reuse the ubuntu now...coz i have some files in that os as well?
plz reply me step by step as i am new to the ubuntu.


--------------
pujan shrestha

Gaurav Ghimire

unread,
May 27, 2012, 2:02:19 AM5/27/12
to foss-...@googlegroups.com
On a dual boot system,  I am guessing we are talking XP as the windows system here, with vista and later I guess the window's boot loader takes over. After re-installation the windows bootloader overrides grub, you will need to re-initialize your grub loader to be able to get back to both the OSes, I hope the partitions are still intact and you haven't played with any of them.

There are ample posts on the how-to process, search for (grub re-install/re-initialize ) .

Regards,
Gaurav

Avash Mulmi

unread,
May 27, 2012, 2:03:30 AM5/27/12
to foss-...@googlegroups.com
i am pretty sure you windows has eaten your grub menu..
You need to boot from ubuntu live and install grub from that.

I am not in my pc right now to type the commands right now. But you
can find it easily. :)
--
Avash Mulmi
OLPC Volunteer
http://support.laptop.org/

deeps

unread,
May 27, 2012, 2:48:53 AM5/27/12
to foss-...@googlegroups.com
Recovering Ubuntu After Installing Windows
you can find steps here

Shreya Dahal

unread,
May 29, 2012, 11:33:31 AM5/29/12
to foss-...@googlegroups.com
- Boot Ubuntu from USB or DVD.
- Go to terminal. [alt+ctrl+t]
- Type this:
  sudo fdisk -l
- A list like this will be shown:

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc6573e88

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *      206848   163842047    81817600    7  HPFS/NTFS/exFAT
/dev/sda2       163842048   808996863   322577408    7  HPFS/NTFS/exFAT
/dev/sda4       808998910   974997503    82999297    5  Extended
/dev/sda5       968998912   974997503     2999296   82  Linux swap / Solaris
/dev/sda6       965089280   968992767     1951744   82  Linux swap / Solaris
/dev/sda7       808998912   965087231    78044160   83  Linux

Partition table entries are not in disk order

- Find out your disk. Like in the above example its sda (look at the 1st line).
- Reinstall GRUB into this disk by this command:
  sudo grub-install your-disk
  in the above example the command will be: sudo grub-install sda

The GRUB menu should be installed now.


--



--
Shreya Dahal
Reply all
Reply to author
Forward
0 new messages