Ubuntu :: Fixing / Replacing The Bootloader Files?
May 26, 2011
I am having problems with either my boot list (/boot/grub/grub.cfg) or my Master Boot Record. It is possible that something else in this area is causing the problem, however.
Configuration overview:
Machine:Sony Vaio VGN-NS140E laptop
Systems: Dual-booting Vista and Ubuntu
Partitions:Vista Recovery (NTFS)
Vista OS
[code]....
Below is some information on how I believe I created this problem and an overview of steps I took while trying to fix the problem. Several days ago, I ran GParted off of an Ubuntu Natty Narwhal (11.04) LiveUSB to remove an older, broken linux partition containing either the Maverick Meerkat (10.10) or the Lucid Lynx (10.04) release.
That partition had been my original linux partition for this machine. For reference, the partition originally had Intrepid Ibex (8.10) installed. I was unable to load it properly after downgrading from Maverick Meerkat to Lucid Lynx. Maverick had some glaring functionality issues with my laptop model.I needed to remove the partition in a Live session because it was located within an extended partition alongside my currently used Ubuntu partition.
After deleting this partition and rebooting the laptop, it was either the Grub Loader menu or a grub-rescue prompt that appeared. I'm pretty sure that it was the grub-rescue prompt at this point. Unable to move forward from this prompt, I turned off the computer and re-inserted my USB drive to boot into a Live session again. Booting into a Live session worked successfully.
At this point I was able to browse the web for possible solutions. I read somewhere that I should run sudo update-grub from the terminal. After doing this and rebooting the computer, I was taken to the Grub Loader menu. Unfortunately, all of the entries I tried to boot from brought me to the grub-rescue prompt. There were 3 error lines above the prompt, but I don't remember all of them at the moment. I know that one of them did say "Error: You need to load the kernel first."
At the time, I was hoping this could be a fairly easy fix. I had the idea to simply create a new Ubuntu partition where the old one had been. I installed Natty Narwhal to a new partition within my extended partition. When I restarted my computer after the install had been completed, I did not have the results I'd expected or hoped for. The grub-rescue prompt still came up when I attempted to boot into any of the entries listed in the Grub Loader. Also, the new install I had created was not available in the list.
I tried to get information from various commands in either the grub or grub-rescue prompt. Somehow, I was able to determine the kernel name I needed and edited the boot command (the screen accessed when you press 'e' on the Grub Loader) to include it. This was no help at the time. I again restarted the computer and booted into a Live session. I re-installed Natty Narwhal on top of the install I just created, thinking that there may have been a problem with it. After restarting the computer, I was still having the same problems as with the first installation attempt. I ran another Live session.
By looking at other user's Boot Info Script RESULTS.txt files on this forum and following some links, I was able to gain a better understanding of the Grub boot command. With this information and some more experimentation in the grub-rescue prompt, I was able to determine the UUID of my Natty Narwhal partition, edit the boot command mentioned two paragraphs ago, and boot into Ubuntu with only one error. In this new Ubuntu installation, I ran sudo update-grub in the terminal. The command returned entries that matched with those I saw in GParted, but I still had the same problems and incorrect entries when I restarted the computer.
While it is possible that I could determine all of the necessary start-up boot commands to manually enter each of my bootable partitions, this is really rather inconvenient. I want to know how I can permanently fix the Grub or other necessary files so that my bootloader can take back responsibility for this task. It would also be nice to get back into my Lucid Lynx partition because Natty is a bit buggier than I'm okay with. Fixing my problems with Natty is a topic for another post, however.
Code:
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos6)/boot/grub on this drive.
[code]....
View 1 Replies
ADVERTISEMENT
May 26, 2011
I am having problems with either my boot list (/boot/grub/grub.cfg) or my Master Boot Record. It is possible that something else in this area is causing the problem, however.
Computer overview:Make/Model/Type: Sony Vaio/VGN-NS140E/laptop
Operating Systems: Dual-booting Vista and Ubuntu
Partitions: Vista Recovery
Vista OS
Data Files (for sharing between Vista and Ubuntu partitions)
Extended partition containing:Ubuntu 10.04.2 LTS
Ubuntu 11.04
Swap
Note: Vista is 32-bit and Ubuntu is 64-bit
Below is some information on how I believe I created this problem and an overview of steps I took while trying to fix the problem.
Several days ago, I ran GParted off of an Ubuntu Natty Narwhal (11.04) LiveUSB to remove an older, broken linux partition containing either the Maverick Meerkat (10.10) or the Lucid Lynx (10.04) release. That partition had been my original linux partition for this machine. For reference, the partition originally had Intrepid Ibex (8.10) installed. I was unable to load it properly after downgrading from Maverick Meerkat to Lucid Lynx. Maverick had some glaring functionality issues with my laptop model.
I needed to remove the partition in a Live session because it was located within an extended partition alongside my currently used Ubuntu partition.
After deleting this partition and rebooting the laptop, it was either the Grub Loader menu or a grub-rescue prompt that appeared. I'm pretty sure that it was the grub-rescue prompt at this point. Unable to move forward from this prompt, I turned off the computer and re-inserted my USB drive to boot into a Live session again. Booting into a Live session worked successfully.
At this point I was able to browse the web for possible solutions. I read somewhere that I should run sudo update-grub from the terminal. After doing this and rebooting the computer, I was taken to the Grub Loader menu. Unfortunately, all of the entries I tried to boot from brought me to the grub-rescue prompt. There were 3 error lines above the prompt, but I don't remember all of them at the moment. I know that one of them did say "Error: You need to load the kernel first."
At the time, I was hoping this could be a fairly easy fix. I had the idea to simply create a new Ubuntu partition where the old one had been. I installed Natty Narwhal to a new partition within my extended partition. When I restarted my computer after the install had been completed, I did not have the results I'd expected or hoped for. The grub-rescue prompt still came up when I attempted to boot into any of the entries listed in the Grub Loader. Also, the new install I had created was not available in the list.
I tried to get information from various commands in either the grub or grub-rescue prompt. Somehow, I was able to determine the kernel name I needed and edited the boot command (the screen accessed when you press 'e' on the Grub Loader) to include it. This was no help at the time.
I again restarted the computer and booted into a Live session. I re-installed Natty Narwhal on top of the install I just created, thinking that there may have been a problem with it. After restarting the computer, I was still having the same problems as with the first installation attempt. I ran another Live session.
By looking at other user's Boot Info Script RESULTS.txt files on this forum and following some links, I was able to gain a better understanding of the Grub boot command. With this information and some more experimentation in the grub-rescue prompt, I was able to determine the UUID of my Natty Narwhal partition, edit the boot command mentioned two paragraphs ago, and boot into Ubuntu with only one error.
In this new Ubuntu installation, I ran sudo update-grub in the terminal. The command returned entries that matched with those I saw in GParted, but I still had the same problems and incorrect entries when I restarted the computer.
While it is possible that I could determine all of the necessary start-up boot commands to manually enter each of my bootable partitions, this is really rather inconvenient. I want to know how I can permanently fix the Grub or other necessary files so that my bootloader can take back responsibility for this task. It would also be nice to get back into my Lucid Lynx partition because Natty is a bit buggier than I'm okay with. Fixing my problems with Natty is a topic for another post, however.
I am attaching RESULTS.txt from Boot Info Script. Please let me know if you need any other reports of this nature.
Code:
Boot Info Summary:
View 5 Replies
View Related
Jun 21, 2011
I have many pdf files which contain "%" sign also in the name. I want to rename that all files by replacing "%" to "-" Its hierarchy of many files and folders. Is there any solution to do this at one time? OR any script for this?
View 7 Replies
View Related
Jan 30, 2010
Is there any working commandline alternative to # find /some/dir -group xxx -user yyy | chown xxxxx:yyyyyThe main purpose is to replace ownership and goup of certain files in subdirectories. Or nevertheless I need to write shell script for that simple operation ?
View 5 Replies
View Related
Mar 26, 2010
I cannot boot into by Ubuntu 9.1 machine.... Trying either GUI or rescue mode gives me the following error messages (which i copied by hand since they were in cli)
Code: mount : mounting /dev/disk/by-uuid/64e5cb0d-058a-4a4c-af4b-7afb6427a72e3 on root failed : invalid argument
mount : mounting /sys on /root/sys failed : no such file or directory
mount : mounting /dev on /root/dev failed : no such file or directory
mount : mounting /proc on /root/proc failed : no such file or directory
Target doesnt have /sbin/init The only thing i remember doing before this is deleting some bootloader files... but they were on another disk so I didn't think that it would affect my ubuntu install. Guess I was wrong how I can recover my system?
View 2 Replies
View Related
Feb 16, 2010
I have extracted the files from a bootable CD to /dev/sdc2/bootable/winpwrec with the hope of booting from the hard drive. I have read the grub.cfg file and a couple of guides here and I'm still not sure what I'm doing. Is there any chance someone can tell me what I need to add to the grub.cfg file to add this to the boot menu? I am pretty well-versed in computers but I'm new to Linux and I'm still trying to get acquainted with the OS, terminology, and the boot loader. I'm using Ubuntu 9.10, if that matters.
files in the folder:
BOOT.CAT;1 ISOLINUX.BIN;1 SCSI.CGZ;1
BOOT.MSG;1 ISOLINUX.CFG;1 SYSLINUX.CFG;1 VMLINUZ.;1
INITRD.CGZ;1 README.TXT;1 SYSLINUX.EXE;1
isolinux.cfg
Code:
#serial 0 19200
View 3 Replies
View Related
Jul 29, 2010
I want to search and replace strings in a file with strings in other files/i need to do it with big strings(string1 is big) and i want to use a txt file for this.But this code not working :
View 14 Replies
View Related
Oct 27, 2010
I recently come across some bug reporting things. I know what is bug but don't know how to use bug information that i got . can anybody explain it for me .
View 3 Replies
View Related
Jan 15, 2011
having problems loading any OS because of bad sectors. will only load off live cd 9.10
View 1 Replies
View Related
Aug 17, 2011
without thinking, reinstalled my windows installation after already having the dual-boot set up and it wrote over the GRUB with Windows MBR. I let my girlfriend's friend borrow the disc before this and decided to just wait it out. Then, when getting the disc back, I carelessly forgot it at their house and have never been able to retrieve it, nor do I think that I ever will.
At this point my only live discs either only have GRUB1 or are corrupted. My only tools now are a netbook with a wubi installation of Xubuntu(no CD drive) and a 1GB flash drive, it seems. Any suggestions on how to access my ubuntu installation?
View 5 Replies
View Related
Aug 9, 2010
Ahm my question is, how can i adjust or redo the size of my hard disk in ubuntu? i mean i have the windowsXP OS then decided to install ubuntu 10.04 so i install it inside windows... i forgot to adjust the size or something?? because every time i boot ubuntu my free storage was 5 gb... but the real size of my HDD is 112gb in HOST directory but when im looking in home directory/home folder its shows that 5gb remaining, so what am i going to do? And what is my mistake?
View 2 Replies
View Related
Dec 3, 2010
I had installed 10.10 on another partition, and then I wiped it, so I need to reinstall grub on my 9.10 partition. I have tried a few methods, including one that had worked for me in the past.But every time I boot my computer, it just says "GRUB loading.", and hangs. How should I fix this?
View 7 Replies
View Related
May 27, 2011
I accidentally killed the dhclient processes. I am unable to access the Internet wirelessly or with Ethernet. It's a little irritating because now I have to post this using my phone. I'm looking for a way to reformat the network files to how they looked when I first installed ubuntu. I don't know quite what these are, or really anything about it.
The /etc/network/interfaces file has the following information:
I'm pretty sure there's supposed to be more.
iwconfig typed into the terminal gives me this:
According to lshw, the logical name for my Ethernet interface is eth1. I think it used to be eth0. It's an 88E8055 PCI-E Gigabit Ethernet Controller.
The wireless interface has logical name wlan1. I think this used to be wlan0. It's a PRO/Wireless 3945ABG [Golan] Network Connection. The driver is iwl3945 - [phy0]
View 3 Replies
View Related
Jun 22, 2011
Was running 10.10 64-bit on Thinkpad X201. I mistakenly clicked on upgrade this morning (really meant to just do a plain old update)... I tried to stop the process, but nothing that I did could get me out of the upgrade loop... so I eventually was forced to go ahead. Machine boots into 11.04; however, keyboard and mouse doesn't work. I have an external keyboard/mouse combo and that will intermittently work, but questionable. I was able to turnoff Unity; however, Classic doesn't seem to work with either external keyboard or laptop builtin.
My root and home are on separate partitions. I have a very fresh copy of home backed up on a separate drive. I don't have a recent backup of root. If I could get Natty working with Classic (including minimize/maximize) I'd be OK...I'd be also OK with going back to 10.10 if I could do it without too much pain. Meanwhile, I'm using another machine with Windows 7 so that I can at least do some work and come back to resurrecting my machine after I've had a bit of a timeout..
View 2 Replies
View Related
Jun 23, 2011
I have Googled. I have searched these forums and others. I have ripped my hair out in frustration. As many are aware, custom resolutions- "What the hell" by "that's just messed up" or "Jesus Christ" by "you've got to be kidding"- are very hard to set under the new "xorg.conf isn't really used" paradigm. This should not be. Many Ubuntu users are running the OS on displays with either nonstandard display resolutions or devices which overscan the display but do not offer a 1:1 pixel display setting- such as myself, on my 50" Samsung 1080p DLP television, connected via its HDMI port.
After more than a year trying to find a hard-and-fast process for fixing this overscan problem (note that I did not say "a hard-and-fast FIX for this problem"), I have decided to turn to the collective wisdom of the Ubuntu user community in an effort to put this issue to bed for good. To that end, I create this thread.
Recent research via the web has led me to believe that the problem lies in the X server not being aware of any sort of valid modeline for my- or your- nonstandard resolution. I am well-aware that each solution for each user will be different; if you're reading this, you're probably a geek like me in the first place, and your chops are more than sufficient to tackle both biting off this huge issue and chewing it.
My question to the community is this: How do I determine the correct modeline to add to xorg.conf, how do I make it available to the X server, what do I need to do to format the modeline in a valid way in xorg.conf (if necessary), and how do I make it appear in the list of valid resolutions when I run nvidia-settings (or whatever the command is)?
Keep in mind, I'm more interested in establishing the correct pipeline for fixing the problem and allowing arbitrary resolutions to the limit of the given device's capacity, rather than an exact solution for my particular hardware. In other words, I don't want an exact answer for my situation; what I'm looking for is a method for finding the proper solution given situations similar to mine.
View 1 Replies
View Related
Oct 9, 2010
Been living with apt-get not working for a while now, don't know how it broke but i'm running a 2.6.26.8 kernel for vmware and maybe thats it?
Code:
The following extra packages will be installed:
The following packages will be upgraded:
View 10 Replies
View Related
May 30, 2010
I do not like the new volume and battery notifications in the notification area of the panel in Ubuntu 10.04. I found out how to add back the old volume control by adding gnome-volume-control-applet to the startup applications. It is much nicer to use. I just stop on it (step 1) and scroll my mouse wheel up and down (step 2) and it shows me what is going on. With the default one for 10.04 I have to stop on it (step 1), then click it (step 2), then run up to the slider (step 3), then stop on the slider (step 4), then run my mouse wheel to adjust the volume (step 5), then click some were else to make it go away (step 6).
So now that I have the old volume controller back I would like to remove the new dysfunctional one from the notification area. It seems that I should right click and choose add and remove notifications, but I do not see any thing like that. I found a command to remove the envelop from the notification area (something else I never use). Does someone know a way to remove the volume controller from the notification area?Also, does someone know how to put the old battery monitor back on the panel. With the old one I could just stop on it to see how much battery was left. With the new one I have stop on it, then click to see it, then click to hid it? Finally, does anyone know how to remove the battery form the notification area?
View 2 Replies
View Related
Nov 7, 2010
I have a major problem installing opensuse 11.3 on my computer( hp pavilion dv6).I downloaded openSUSE-11.3-GNOME-LiveCD-x86_64 from software.opensuse.org: Download openSUSE 11.3 and made a live usb.I'm a newbie at using linux infact i never used another operating system beside windows.Now i have installed windows 7 (on c disk 100gb).My first problem when i am trying to install opensuse is that he dosn't automatic choose to make my partitions so i have to do it manualy.I was searching how to make it the best way so i desited to make 4 partitons one for ' /boot' one for ' / 'one for '/home' and a swap partition/In windows7 i made 4 new partitons
3:10 gb for /boot
4:10 gb for/
5:70 gb for /user
6:10 gb for /swap
My first question is :Is this right to make 4 paritions in windows (opensuse can't format or resize my partitions it just can edit it ) so it's my only way to make partitions( If this is wrong how can i make partitions then)
My second question is how to change the bootloader configurtation because everytime when ii try to install opensuse it stops at about 96% and it says to reconfigure the bootloader options.
If i skip this i get the folowing message
=== System Checking ===
Checking for /usr/bin/chroot binary... Passed
Checking for chroot directory /mnt... Passed
Checking for chroot directory content (bin
boot
Checking for binary /mnt/bin/ls... Passed
Trying to chroot... Failed
This is worth reporting a bug at url.
View 9 Replies
View Related
Nov 17, 2010
I'm running Debian Squeeze 32-bit with KDE 4. I've got a BenQ T2200HD monitor, and no matter how i try to configure it, fonts will always look crappy. after looking around a bit, I found some patch that is called David Turner's LCD ClearType-like patch. I found the packages- [URL]
View 10 Replies
View Related
May 23, 2010
I currently have Xubuntu and Mac OS X on my PowerBook G4, however, I recently got a netbook and use Ubuntu via USB on it and now would prefer to have only OS X on my powerbook. I would like to use Gparted to restore/fix my partitions and don't exactly know what I need/don't need and also how to resize my os x HSF+ partition back to full size? An image below shows my current setup (kinda messed up I think.) What steps should I take in Gparted to delete the unnecessary partitions and give OS X it's full size?
View 3 Replies
View Related
May 4, 2010
We are currently transferring data from a proprietary DB to Postgresql. All of the data is in text files, each approx 125,000 lines long.I have a problem with 2 of the files.One of the columns contains a numeric which should be in the format 00000.00 or be 0.00 -unfortunately approx 25% of the records contain a null.I can use cut to 'slice' the file into 3 sections but my problem is : how do I keep the values and only replace the nulls with 0.00
View 11 Replies
View Related
Jun 23, 2010
Some how, my /boot has been deleted. So can this machine be recovered ?
View 3 Replies
View Related
May 12, 2010
I have the joyous task of having to find and fix a bug in a large opensource project for an assignment. Fixing the bug should only take about 4 hours according to the lecturer. I would prefer the source language of the project to be Java, since my C++ is quite rusty.
So, does anyone have some experience in this type of thing, and can you give me advice about which projects would not be nasty to an ignorant student? Also, which tools did you use to make it easier for you? I want to learn how to do this,but I'm just a bit clueless at present.
View 5 Replies
View Related
Nov 20, 2009
I've read that you can fix lilo after a bad edit by booting from install cd1 and entering: Code:boot: bare.i root=/dev/hda X noinitrd ro at the boot prompt. Can someone confirm this or suggest a better way? I'm using slackware 13.
View 3 Replies
View Related
Jan 27, 2010
I erased my partition table. Can anyone recommend a good method of reconstructing it? And if this is impossible, can anyone recommend a good method of data recovery? I had an ntfs partition with windows 7 and a larger ext3 partition that ran Debian.
I'm running Test-disk on the SystemRescueCD at the moment (cross your fingers).
View 1 Replies
View Related
Feb 9, 2010
I have been using Ubuntu Live CD to get forensic (can't be modified in any way) images off of drives, but on dirty filesystems it does some type of fix on dirty Windows filesystems.
It has the message: File system wasn't safely closed on Windows fixing
How do I turn that off?
I create my own live CD, so I can modify what ever. Where is it? Initrd?
View 3 Replies
View Related
May 3, 2010
I just installed Ubuntu 10.04 LTS on an external hard drive (USB connected) and I can no longer boot my Windows XP(SP3) from my internal C Drive. Grub gives me the list of boot choices, but when I choose the C drive, I just get these error messages:
GEOM ERROR
For Realtek RTL8139(X)/8130/810X PCI fast ethernet controller v2.13 (020326)
Client MAC ADDR: 00 13 D3 07 FD F5 GUID: FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF
PXE-E53: No boot filename received
PXE-NOF: Exiting PXE ROM
(The version of Grub is 1.98-lubuntu5). I don't have a Windows System CD to boot from, but is there something I can do from within Ubuntu itself?
View 9 Replies
View Related
Sep 21, 2010
I followed the instructions given at http://linuxhub.net/2010/06/fix-big-and-ugly-plymouth-in-ubuntu-10-04-lucid-lynx/ for fixing my ugly plymouth screen after installing Nvidia drivers. All worked as expected. However I made some modifications in the instructions as I required.
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset video=uvesafb:mode_option=1280x1024-24,mtrr=3,scroll=ywrap
I used 1366*768 instead of 1280*1024.
[Code]...
View 3 Replies
View Related
Jan 9, 2011
After fixing an issue with sleep mode, my WiFi is automatically disabled on my Ubuntu installation on boot while the switch is on. For some reason, it seems that Ubuntu has an issue communicating with my BIOS. As a fix to this problem: I disabled the C4 sleep state. My Ubuntu installation now boots up fine but the LED on the WiFi indicator glows orange, indicating that it's off; while in Windows it glows blue, indicating that it's on.
View 2 Replies
View Related
Nov 10, 2015
I installed Debian 8.2 first, then Windows 10 over it (I know, backwards, but I didn't wish to lose my customizations on Debian up to that point, and didn't realize until later that I wanted to Dual Boot). Running from a LiveCD of Debian 8.2:
Code: Select allsudo fdisk -l
Device - Start - End - Sectors - Size - Type
/dev/sda1 - 2048 - 116211711 - 116209664 - 55.4G - Linux filesystem
/dev/sda2 - 116211712 - 116244479 - 32768 - 16M - Microsoft reserved
/dev/sda3 - 116244480 - 232421375 - 116176896 - 55.4G - Microsoft basic data
/dev/sda4 - 232421376 - 234440703 - 2019328 - 986M - EFI System
[code]...
That's where I am stuck. I'm a bit new to Debian & Linux still and I've never dabbled with Grub2, I imagine I can't mount /dev/sda4 because in chrooted into /dev/sda1 and it can't see /dev/sda4 at this point (what I'm thinking anyway). So I try:
Code: Select allroot@debian:/# fdisk -l
fdisk: cannot open /proc/partitions: No such file or directory/I imagine that's what it is, but I don't know a way around that. I want to dual boot Windows 10 & Debian 8.2 on a UEFI (or EFI?) system with a GPT Disk. No guide I have found for fixing Grub2 or getting Dual Booting working with Debian then Windows installed have covered both things at the same time. I just have to be special I guess.
View 1 Replies
View Related