PKILL-9

Wayno’s sojourn and solutions through Linux

  • Home
  • About

16

Jul

Recovering Ubuntu/Debian Linux after a Windows Install/Hiccup

Posted by admin  Published in grub

Courtesy Jordan-U from #ubuntu (freenode.net)

Dual booting (Windows/Linux) can cause some unique situations. Windows will try to assert itself as the only game in town, which can cause grub to go into an endless boot loop. Here’s an easy way to fix grub after a Windows Install/Hiccup.

1. First boot off of a livecd You can get one here.

2. Go to a terminal window. Let’s first mount the Linux Partition.

First do:


sudo blkid

You will see output that looks like:

ny@Px:~$ sudo blkid
/dev/sda1: UUID=”C2B0DA3DB0DA379D” TYPE=”ntfs”
/dev/sda2: UUID=”0408bd37-4a4d-4dac-a27e-408816aecd1e” TYPE=”swap”
/dev/sda3: LABEL=”waynolnx” UUID=”338b39c2-dd06-4aab-905c-98d9d01a3240″ TYPE=”ext4″

NOTE: If you are running of the livecd, then you will need the sudo infront!

So we’re looking for /dev/sda3

NOTE: YMMV APPLIES! (Your Mileage May Vary). Mine happens to be sda3, yours might be different! Your’s might be sda5.


sudo mount /dev/sda3 /mnt

3. We are going to mount major Linux access points lets do them one at a time. First the Linux Devices Files. The –bind allows us to mount a subtree somewhere else, so it’s available in both places.


sudo mount --bind /dev/ /mnt/dev

4. Now the proc files. The proc system allows files to be generated dymanically.


sudo mount --bind /proc/ /mnt/proc

5. Now let’s mount /sys. /sys exports information from the kernel to the user space.


sudo mount --bind /sys /mnt/sys

6. Chroot to the device that we earlier mounted. Chroot (change root) changes the Linux root to be the device we mounted earlier. Note the mount point: /mnt


sudo chroot /mnt

The prompt MAY change to an # (octothorpe) — no cause for alarm.

7. Finally re-install grub into the MBR (Master Boot Record)


sudo grub-install /dev/sda

Reboot and all the operating systems, Linux and Windows should be available.

no comment

25

Feb

Bootup Start Manager

Posted by admin  Published in grub

I thought this Bootup Start Manager Gui was pretty kewl!

Easily select what operating system boots first, timeout periods, etc.

Wayno

no comment

Search

About

PKILL-9

Categories

  • apt-get (3)
  • Audio (4)
  • Browsers (4)
  • Compiling Source Code (2)
  • Deposit @ Home (1)
  • DVD (4)
  • filesharing (2)
  • fstab (1)
  • ftp (1)
  • gnome (4)
  • grub (2)
  • Internet Connection Sharing (1)
  • Joe (2)
  • loni (3)
  • Music (3)
  • netbook (1)
  • samba (2)
  • sound (2)
  • ssh (1)
  • Thunderbird (1)
  • Uncategorized (26)
  • ups (1)
  • video (3)
  • wireless (1)
  • word processors (2)
  • X11 (1)

Archives

  • September 2010 (1)
  • July 2010 (7)
  • April 2010 (5)
  • March 2010 (3)
  • February 2010 (7)
  • January 2010 (1)
  • December 2009 (1)
  • October 2009 (4)
  • September 2009 (1)
  • July 2009 (1)
  • June 2009 (3)
  • May 2009 (5)
  • April 2009 (6)
  • March 2009 (3)
  • February 2009 (6)

Blogroll

  • Dynamic Designz - Linux Help Site
  • Plugins

Pages

  • About

Meta

  • Log in
  • Main Entries Rss
  • Comments Rss
September 2010
M T W T F S S
« Jul    
 12345
6789101112
13141516171819
20212223242526
27282930  

Recent Posts

  • Recording/Capturing your desktop in Ubuntu/Debian
  • Forcing a Web Browser to Save a File instead of Streaming it
  • Getting Ubuntu 10.04 Video/Audio to work with an Intel 82815 Chipset
  • Recovering Ubuntu/Debian Linux after a Windows Install/Hiccup
  • How to configure Samba in Ubuntu using a gui
  • Removable USB devices and fstab settings
  • Fixing gnome-typing-monitor in Ubuntu 10.04 (lucid lynx)
  • Sorting Bookmarks (alphabetically) in Firefox
  • installing ubuntu-restricted-extras under wubi
  • How to do Certificate Based ssh Authentication

Recent Comments

  • admin in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • Erick in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • admin in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • Erick in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • terry in Getting Ubuntu 10.04 Video/Audio to work with an I…
  • admin in Changing Default Language for Abiword
  • PKILL-9 » Post Topic » … in Recovering after hosing /etc/fstab
  • tux in How to do Certificate Based ssh Authentication
  • tux in How to do Certificate Based ssh Authentication
  • lornix in Thunderbird 3.X Performance Enhancement
© 2007 PKILL-9



Theme by WebRehash | Free WordPress Templates | Valid XHTML | Valid CSS 3.0 | Powered by Wordpress, Installed by Installatron.