Ubuntu Installation :: Re-installing The GRUB On MBR?
Oct 6, 2010
I've got a dual boot set up with Windows on my first hard drive and Ubuntu Lucid on my second.Recently I had to Re-install Windows and it replaced GRUB on my master boot record.On a long shot I tried to boot into Ubuntu by going into my boot options from my BIOS and booting into my secondary drive but this just brought up a GRUB command line.So I booted into a Jaunty live cd (the Lucid live disk doesn't seem to like my graphics card) and in terminal I tried to run
Code:
sudo grub
root (hd0,0)
setup (hd0)
after running the final line I get the error: "Error 17: Cannot mount selected partition".I'm pretty certain that sda1 is my MBR so that would translate to (hd0,0) on GRUB right? here is my output of "fdisk -l";
Code:
Disk /dev/sda: 2000.3 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x1aae7bbb
[code]....
View 9 Replies
ADVERTISEMENT
Mar 20, 2016
I had a dual boot with windows 10 and Ubuntu 14.04, and I just decided to move from Ubuntu to Debian, but I didn't unistall Ubuntu. I just deleted it's partitions (/, /home, swap) and used the new allocatable space. When I was doing the partitions I noticed that the installer didn't allow me to choose between logical and primary partitions (not sure if this is important).
When I continued with the installation process, in the GRUB section the installer detected two Windows Vista options and later I selected /dev/sda as the disk for the GRUB (MBR). When I tried to boot, a GRUB command line screen from ubuntu appeared, when I wrote exit a message appeared "Boot succesfull" and then it sent me to the Boot selection from my laptop.
From there I can choose to boot Windows 10 normally or select a disk partition that sends me to the Debian GRUB from where I can boot Debian normally, but the Windows entries that appear (Windows 8.1 and Windows 8 recovery mode) fail to boot. So when I boot the Debian GRUB appears.
View 3 Replies
View Related
Jan 20, 2010
I was thinking of trying to install Window XP in a dual boot fashion but with the purpose of trying to configure wine to use it as it base instead of its normal setup. Only thing is Ubuntu is the sole controller of my laptop here atm and as you know installing XP will remove grub as boot controller. And while I know about SuperGrub I was wondering how, if possible,do I re-install grub from Karmic's LiveCD?
View 2 Replies
View Related
Jun 8, 2010
I am trying to install 10.04 to an external HD (not flash). I ran the live CD, installed to it and all seemed to work fine, but I don't want to use GRUB. I ran 7 repair and did a bootrec /fixmbr and it's booting normal, but I can't boot to USB.I want it to boot normal, unless I hit F12 to boot to removable device. Not much of a Linux person, but I am trying to be.
View 7 Replies
View Related
Dec 14, 2010
I have 10.10 installed on my machine. I'm trying to install 10.4 on another partition. Install completes, but when I reboot, there's no entry in the grub menu for the 10.4 install. I tried adding an entry to 40_custom in /etc/grub.d, but it still doesn't show up. I'm pasting my 40_custom below.
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry 'Ubuntu 10.4' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos10)'
search --no-floppy --fs-uuid --set be888928-a477-4b31-b478-13271009c032
linux/boot/vmlinuz-2.6.32-24-generic root=UUID=be888928-a477-4b31-b478-13271009c032 ro quiet splash
initrd/boot/initrd.img-2.6.32-24-generic
}
View 2 Replies
View Related
Feb 14, 2011
I have just bought a new HDD and installed it in my Ubuntu server. The problem is that when I try to boot, I only receive the message "Grub error 17" and at that point the computer freezes.
In my troubleshooting I found that without the new drive, the computer starts and the hard drives are listed in BIOS as follows:
1. DVD-rom (ide) - Master
2. 80gb disk (with OS installed) (ide) - Master
3. 1tb disk (sata) - Master
In the new setup the disks are listed like this:
1. DVD-rom (ide) - Master
2. 80gb disk (with OS installed) (ide) - Slave
3. 1tb disk (sata) - Master
4. 2tb disk (sata) - Master
May this different listing in BIOS lead to the Grub error?
View 5 Replies
View Related
Jul 6, 2010
I recently installed Ubuntu Studio on my PC, dual-booting it with Vista. Once the installation had finished, and I had rebooted, Grub showed the two Vista options:
Windows Vista (loader)
Windows Recovery Environment (loader)
When I load up "Windows Vista (loader)" it opens my Acer eRecovery Management, but when I load "Windows Recovery Environment (loader)" it opens what looks like a normal version of Vista. Is it possible that on installation, Grub accidentally swapped the two around, or have I probably mucked up my computer?
View 2 Replies
View Related
Sep 30, 2010
After install of Ubuntu 10.04 I cant boot WIN7 from the Grub menu.
root@asus:~# fdisk -l
Disk /dev/sda: 32.0 GB, 32017047552 bytes
255 heads, 63 sectors/track, 3892 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: 0xcb5bd2b2
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3890 31245312 7 HPFS/NTFS
/dev/sda2 3890 3892 16154 ef EFI (FAT-12/16/32)
Disk /dev/sdb: 31.9 GB, 31914983424 bytes
255 heads, 63 sectors/track, 3880 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: 0x0002ac5b
Device Boot Start End Blocks Id System
/dev/sdb1 1 3391 27230840+ c W95 FAT32 (LBA)
/dev/sdb2 3391 3881 3931137 5 Extended
/dev/sdb5 3391 3852 3701760 83 Linux
/dev/sdb6 3852 3881 228352 82 Linux swap / Solaris
View 3 Replies
View Related
Oct 8, 2010
I am currently installing the Ubuntu 10.04 Alternative, as I am having problem with video card. What I know is that I need to edit the Grub file in /etc/default/grub and add i915.modeset=1 for my video card. What I don't know is how to do that in the command line, what application should I use and how to save it? Also, if everything works well, I want to boot to gnome automatically. What I am looking for is a step by step instructions (as I can get lost).
View 8 Replies
View Related
Oct 10, 2010
Got Ubuntu 10.10 amd64 installed.. I've been using Fedora 13 64bit for some time now dual boot with WinXP.. Ubuntu installation to a free Hard drive went well till i rebooted, my Fedora installation was gone , and i thought Ubuntu is much installer friendly than fedora.
View 1 Replies
View Related
Jan 20, 2011
I have windows 7 installed on my copmuter and I ran the alternate disc cause the live disc didn't work for me. So installing was smmoth and I did everything right excpet for the grub part. It asked to be a master loader or something and I said yes. After restarting I see the grub menu but I only see two ubuntus(recovery mode) on the list and 2 test thingys ( memory test) So I go to the ubuntu tab and I get kubuntu ( as ecpected). Right now I am using kubuntu and it is fine but?
View 9 Replies
View Related
Jun 29, 2011
I have a raid 0 setup with 2 x 1TB drives. I have an ASUS P8P67 LE motherboard and am using Interl RST for the Raid setup. I'm utterly ignorant of raid and therefore forgive any mistakes... I already had windows 7 installed and was attempting to dual boot ubuntu.
I installed Ubuntu from CD. The raid was picked up properly as only one drive by ubuntu. So it picked up the windows MBR and the main windows partition. I resized the main partition and used the "install ubuntu and windows 7 side by side" option. Installation went fine but once I restarted the PC I was welcomed by a grub rescue screen with the message: "error: no such device e196.....". Edit: I used the Windows 7 disc to repair the windows bootloader so I can now boot into Windows 7.
Before doing so I used gparted on the live cd to check the partitions on the drives. The only ones present were the MBR and windows one. So ubuntu seemingly didn't install... Although GRUB did... I was advised by someone on the ubuntu IRC chat to avoid trying to reinstall ubuntu at that point just in case there was an error in the partitioning process. I've since checked the state of the partitions from within windows and there's the MBR partiton, the windows partiton AND the partition that I created for ubuntu... 965MB of the partition that I created is listed as used space as well...
View 6 Replies
View Related
Jan 3, 2010
I'm just slightly confused here, but... what the? Why does installing grub-doc remove BOTH grub-pc, and grub-common? So basically it seems like by installing grub-doc, I have uninstalled grub totally (yes, it is still there as the bootloader, but i have no way of updating it now!) from my system. What's the conflict between grub-doc and grub-pc, such that grub-pc has to be removed?
View 5 Replies
View Related
Jan 11, 2010
If I install a totally different Linux distro on my existing Ubuntu 9.10 system, will it break GRUB 2? I was thinking of installing Debian Lenny, but have held off because I do not want to inadvertently wreck the boot arrangement.
I've previously installed Windows after installing Kubuntu, and had to reinstall GRUB as the bootloader as a result. It wasn't a big deal with the old GRUB, but I don't know if it's that easy with GRUB 2.
I am not sure what bootloader Debian Lenny uses. I've been looking but haven't found the answer yet. I guess if it also uses Grub 2, I wouldn't have to fix anything.
I want to try out Lenny because an app I want to use (Teamspeak 3) doesn't play nicely with Pulseaudio. Pulseaudio is integral to Ubuntu 9.10, but I have other options with Debian Lenny. I'd like to see whether the app works better there w/LXDE.
I guess I could also just make a virtual Lenny machine in Virtualbox, but I wouldn't get full use of my hardware, so I wouldn't be able to play Urban Terror (which is why I want to use Teamspeak 3).
View 2 Replies
View Related
Feb 1, 2010
I installed unbuntu 9.10 on a dual partition for alongside windows. Grub failed during installation and now I can not boot to windows or ubuntu. I can not repair with the windows cd, I can not do anything in Windows recovery no format, no fixboot, no chkdsk, no anything, it tells me there is no valid drive when I am in dir C:. In Ubuntu live CD I can see all the files are there on the local disk. What do I need to do to fix this
View 9 Replies
View Related
Feb 19, 2010
I recently installed ubuntu studio 8.04 on a new partition and now ubuntu 9.10 is no longer showing up in the grub boot menu. How can I boot into ubuntu 9.10 and how do I edit the grub menu so it shows up again?
View 5 Replies
View Related
May 21, 2010
I am pretty new to ubuntu, and not sure if this question has been solved by anyone, I tried search this forum, but didn't find enough information. The closest thread I found here was this one:[URL].. Here is my situation, I have installed Ubuntu 9.04 a few days ago with an old Live CD, after running it pretty well, I upgraded it to 9.10 with the online update tool. (I guess this makes sure I was using Grub 1, the legacy Grub). After updated to 9.10, I installed a Windows XP on my hard drive, obviously, it wiped off my Grub from the MBR. So I tried to restore the Grub back to the MBR, but failed, please see below:I first run the fdisk
Code:
ubuntu@ubuntu:~$ sudo fdisk -l
omitting empty partition (5)
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
[Code]...
View 9 Replies
View Related
Jul 15, 2010
The default (graphical) installer did not work on my PC (i7 quadcore 8 GB DDR3). I have installed Ubuntu using the alternative installer (Desktop, 64 bit) on my external USB drive. I installed grub on the MBR of the second drive (/dev/sdb) as I did not want to touch my (first) Windows disk. After reboot (chosing the USB drive as boot device, else Windows is booted) grub reports an error and enters the rescue mode. I tried all possible combinations of "root=(hdX,Y)" in grub.cfg to no avail.
I repeated the whole procedure but now disconnected the internal HD with Windows. Installation went smooth again (Windows disk was not seen this time), but after reboot (the internal drive connected or not) I again get (slightly different this time) grub error: can not find file.
View 9 Replies
View Related
Oct 11, 2010
I used the upgrade manager to update to Ubuntu 10.10. It hung on installing grub. After trying the repairs, the system says it can't find grub_xputs and gives the grub rescue> prompt.
View 5 Replies
View Related
Oct 21, 2010
My dell machine has the following: A raid 0 SAS config with Windows 7 installed in one partition, and ubuntu in the other partition. Then two seperate sata hdd. The raid drive is set as first boot, and Windows views it as disk 0 and boots just fine. When I installed ubuntu 10.04 on the second partition, it viewed the disk as sdc. And when booting off the raid drive,im not given a grub menu to choose ubuntu orwin 7,windows 7 boots all on its own.
View 9 Replies
View Related
Apr 18, 2011
After installing Ubuntu 10.04 on an external HDD (via Live-CD), grub never shows a menu, it only goes to command line.Every time I want to boot, I have to enter these commands:
set prefix=(hd0,1)/boot/grub
set root=(hd0,1)
linux /vmlinuz root=/dev/sda1 ro
[code]....
View 9 Replies
View Related
Jun 6, 2011
I have a HP Compaq 6710b notebook with W7 on it. I want to use Ubuntu for hobby activities, but as this is a company notebook, W7 should remain intact. I decided to install Ubuntu to an external drive.I set BIOS boot order to CD-USB-HDD.I attached a 2.5" 250GB WD Passport usb hard disk and installed Ubuntu to it from the CD.As a result, the clean install doesn't boot, I get a mere grub console (normal, not rescue).
Examining the situation I learned, that during Live CD session the inner hdd is hd0 and usb drive is hd1. Grub.cfg gets compiled to use /dev/sdb.When booting from usb drive, BIOS makes it to be hd0 and inner hdd becomes hd1 so grub tries to load kernel from W7 partition (and can't find it, I wonder why? )How to fix problem? Although grub.cfg is supposed not to be edited, may I change every sdb to sda in it?
View 3 Replies
View Related
Jun 16, 2011
I have a desktop Windows PC with three hard drives. Having successfully installed Ubuntu on a laptop I used the same CD image to boot Ubuntu on my desktop machine. All seemed well so I selected the option to install alongside the existing OS. I left the choice of drive as presented by the installer (it was the largest one) and asked for an 80G partition for Ubuntu. The installation went well but when the machine was restarted it just booted straight into Windows. No sign of the bootloader menu. I'm guessing the BIOS doesn't look at the drive where Ubuntu is installed, and the installer did not put the bootloader on the Windows boot drive. The Windows drive is too small to install Ubuntu there.How do I fix this so that I can dual boot, or alternatively how do I get rid of Ubuntu and reclaim the 80G for Windows?
View 3 Replies
View Related
Dec 11, 2009
I just spend 10 hours tryng to find a way to get my old grub working again after re-installing windows in an emergency, but it is not working...
View 3 Replies
View Related
Dec 20, 2009
I have windows and I installed fedora 12 on a separate partition.
However, I had a problem with my windows XP SP 3 and had to install windows. Which I did on my C drive. However, when I re-boot I on longer get the GRUB loader displayed so cannot boot into fedora.
Is there anything I can do?
View 2 Replies
View Related
Apr 27, 2011
how do i correct my boot loader after installing Win7 on the free space available. i still have my fedora 13 partition intact. but of course, fedora option is not available. how do i re-install grub using the rescue dvd? tried alrerady.
View 1 Replies
View Related
Apr 27, 2009
I will be booting Vista, XP, and then installing Linux with grub. So the Vista boot loader will be setup to boot both Windows, so then when I do install a Linux on the same hard drive, (all on separate partitions) what is the best method to boot up all 3 systems?Should I just allow grub to install on the master boot record, and then chainload XP and Vista. Or I could install grub on the boot sector of what will be my Kubuntu root partition, and then try to add this Linux to the Vista boot loader ?
View 7 Replies
View Related
Apr 1, 2010
I installed a new graphics card (Nvidia GeForce GT240 1 Gb, 128bit DDR3) on my gigabyte VA900M motherboard, with my computer running a dual boot of windows 7 (64 bit) and ubuntu 9.10 (64 bit). The computer would not boot past the memory test stage. To solve this, i flashed the BIOS with the latest upgrade for the motherboard from the Gigabyte website. This still did not work, so, doing the usual "testing hardware combinations by unplugging and replugging", I removed 1 Gb of RAM, which solved the problem of booting past memory test (a case of too much memory?)
Problem: The problem now is, GRUB wont boot from the HD, unless I have the Windows 7 disk (or Ubuntu Live) in the DVD drive. If i dont press a key to boot from the disk, Grub will then load. how to make GRUB boot from the HD? Do I need to redirect/reinstall GRUB? Im pretty sure it is not a BIOS problem.
View 2 Replies
View Related
Jul 1, 2010
I currently have 10.04 installed as my primary OS. I also have windows 7 and Ubuntu 10.10 Alpha installed. I would like to be able to play around with the 10.10 without any risk of damaging my 10.04 install. However, it seems grub2 control was transfered to 10.10. How do I return control to my original distro?
View 2 Replies
View Related
Dec 8, 2009
since FC1 i install Fedora on a seperate HD on my PC without installing GRUB. I always made a bootdisk and since FC4 a boot CD with mkbootdisk. If i try to make a bootdisk via mkbootdisk --iso --device/tmp/bootdisk.$(uname -r).iso $(uname -r) under Fedora 12 i get a kernel panic if i try to start from this disc:Kernel panic: not syncing: VFS: Unable to mount root fs on unknown-block(0,0)PID: 1, comm: swapper Not tainted 2.6.31.5-127.fc12.x86_64 #1Call Trace: then there a some hex values and the message that i should choose a proper root partition. if i start with options linux root=correct_bootpartition i get the same kernel panic with the same message.I found out that it must have something to do with the kernel*.img file. In earlier versions the of fedora it has been copied to the iso image. That's not done anymore.Iso size F11: ~ 8.8mb; Iso size F12: ~3.4MB
View 2 Replies
View Related