Ubuntu :: Removing Duplicate Entries In Grub2?
Mar 6, 2010
I have made a custom grub2 menu however, both the default and the custom show together. So my grub looks like the list below, the bolded entries are my custom ones. How do I get rid of the duplicates? I have tried apt-get remove and deleting old kernels.
ubuntu,linux ...
ubuntu,linux recovery
memtest
memtest
windows7
windows7
ubuntu linux
ubuntu linux recover
View 7 Replies
ADVERTISEMENT
Mar 23, 2010
I used to be able to resolve this problem by simply opening my sources.list file and doing a search and delete, but now Ubuntu appears to have two completely different methods of handling sources. What is is the simple solution? I would really like to have everything all in one place.
Code:
W: Duplicate sources.list entry http://ppa.launchpad.net karmic/main Packages (/var/lib/apt/lists/ppa.launchpad.net_sunab_ppa_ubuntu_dists_karmic_main_binary-i386_Packages)
W: Duplicate sources.list entry http://ppa.launchpad.net karmic/main Packages (/var/lib/apt/lists/ppa.launchpad.net_mozillateam_firefox-stable_ubuntu_dists_karmic_main_binary-i386_Packages)
W: You may want to run apt-get update to correct these problems
View 2 Replies
View Related
Oct 12, 2010
To start by saying that I am brand new to anything linux. I just installed Ubuntu 10.10 32-bit to dual boot on my Windows 7 32-bit PC. This last time that I booted my pc the grub looked like this:
Ubuntu, Linux 2.6.32-25-generic
Ubuntu, Linux 2.6.32-25-generic (recovery mode)
Ubuntu, Linux 2.6.32-24-generic
Ubuntu, Linux 2.6.32-24-generic (recovery mode)
Windows 7 (loader) (on/dev/sda1)
Windows 7 (loader) (on/dev/sda2)
From what I understand the duplicate for Ubuntu is just an updated Kernal, hence the -24 to -25. What I didn't understand is why there is a duplicate for Windows 7 and what the sda1 and sda2 is? Someone please explain. When I first installed Ubuntu, there was only one listing for Ubuntu and one for Windows 7.
Also, I was wondering what you do to keep up with new kernals and remove old one's. How do you keep the Kernals from piling up? I assume that when another Kernal becomes available, there will then be 3 Ubuntu listings in the grub. One last thing is I would like some suggestions for the best way of going about learning linux. (i.e. terminal commands)
View 7 Replies
View Related
Dec 5, 2010
For the past few weeks I have been using the lastest Ubuntu OS. The following menu pops-up during the boot process.
GNU GRUB version 1.98+20100804-5ubuntu3
Ubuntu, with Linux 2.6.35-22-generic-pae
Ubuntu, with Linux 2.6.35-22-generic-pae (recovery mode)
Memory test (mentest86+)
Memory test (mentest86+, serial console 115200)
Windows 7 (loader) (on /dev/sdb1)
Just recently the menu displays duplicate entries. The first two entries are repeated (see below). What might have caused these duplicate entries to appear and how to correct them? Before this problem occurred I did not issue any sudo commands.
GNU GRUB version 1.98+20100804-5ubuntu3
Ubuntu, with Linux 2.6.35-22-generic-pae
Ubuntu, with Linux 2.6.35-22-generic-pae (recovery mode)
Ubuntu, with Linux 2.6.35-22-generic-pae
Ubuntu, with Linux 2.6.35-22-generic-pae (recovery mode)
Memory test (mentest86+)
Memory test (mentest86+, serial console 115200)
Windows 7 (loader) (on /dev/sdb1)
View 5 Replies
View Related
Apr 2, 2011
I see this posted in several places in the past but no answers. If I use UUID in fstab to mount additional partitions I get duplicate entries for the partitions in the Places Menu. I can solve the problem by mounting the partitions by Label ( /dev/sdb2 /mountpoint ) but half of the time grub2 will not mount the drive correctly using this method and will change the volume ID (sdb2 becomes sdf2) .
View 2 Replies
View Related
Nov 1, 2010
we have a variable LIBS:
LIBS='-lpq -lmysqlclient -lssl -lpthread -lresolv -lssl -lpthread -lresolv'
I'd want to get:
LIBS='-lpq -lmysqlclient -lssl -lpthread -lresolv'
Bear in mind that LIBS can be variable, I mean I need to drop any duplicate and only retain the last one of each different entry. And we must keep the order as is, I must not sort out them.
So, if LIBS is:
LIBS='-lpq -lmysqlclient -lpthread -lresolv -lpthread -lresolv'
I need: LIBS='-lpq -lmysqlclient -lpthread -lresolv'
View 3 Replies
View Related
Nov 22, 2010
I just upgraded from 10.04 to 10.10. I originally had installed the nvidia drivers using the bash script from nvidia's website. This time around I used the ones from synaptic. However now when I go and look in System -> Administration there are 2 entries for "NVIDIA X Server Settings". The first one has the NVIDIA logo, the other one has a grey question mark. Does anyone know why there are 2 entries and how I can remove one of them?
View 1 Replies
View Related
Apr 13, 2011
I'm getting duplicate entries in mysql database when submitting a new item from a form. I initially loaded the database via IMPORT function in phpMyAdmin. This is my input form:
<center>
<br />
<FONT SIZE="5" ><b>Add Item Template</b></FONT>
<br />
[code].....
However, I do need to return the input form in order to keep entering new items into the database.
View 8 Replies
View Related
May 12, 2010
I have a huge (over 10 gb) file with a list of IP's each followed by a corresponding number like this:
Code:
12.32.34.23 10
143.32.34.543 11
232.32.45.65 12
54.23.5.232 13
143.32.34.43 14
and so on..
I'm trying to sort this file numerically and weed out any duplicate IP addresses. How do I do this on bash? I have come up with this but obviously it does'nt work.
Code:
$sort -n myfile.txt | cut -f1 | uniq -u
View 2 Replies
View Related
Mar 12, 2010
Anyone know of a good Linux application that will remove duplicate files interactively? I've recently spent a lot of time (read weeks) pruning my music collection, basically by hand. and now I'm moving on to my family photos. Most of the work with the music was done under Windows XP. As for the photos, I have a fantastic Windows application, D'Peg, that I had actually purchased some years ago. This app rocks for Windows. In my opinion it's so good that I would happily pay double the asking price. However, I'd prefer to use Linux if possible, so, what's out there, anything that is worth it's salt? Currently playing around with Picasa.
View 2 Replies
View Related
Mar 27, 2010
I am thinking the GRUB 2 more functionality was achieved at the price of presenting a user with what I experience as Byzantian mangle of default loaded templates, almost designed to make me give up and leave the defaults.menu.lst is no more - its now /boot/grub/grub.cfg DON'T edit it! /etc/grub.d has the new stuff. These are not just a list of boot-up choices anymore. It requires one to be a programmer.One called 20_memtest86+ is not really to be meddled with. I tried simply making it non-executable.The last choice, 40_custom, allows to add entries only - not quite what we wanted to do.
View 9 Replies
View Related
Jul 8, 2010
Since I've been using Ubuntu, I've noticed that new entries for Ubuntu (the same but with the final number changed) occasionally appear in the Grub 2 boot loader. I'm talking about the first two entries in this picture, compared with the third and fourth entries here:Two questions:1. What are these entries? They appear to simply be the same OS but different versions. Are they generated when Ubuntu updates?
View 3 Replies
View Related
Jul 11, 2010
Intalled GRUB using Live CD. My problem is very similar to these..
Code:
1. sudo grub-install --root-directory=/mnt /dev/sda
2. sudo mount -o bind /dev /mnt/dev
3. sudo mount -t proc none /mnt/proc
[Code]....
View 1 Replies
View Related
Aug 10, 2010
There are 2 osx entries in the grub menu one is 32-bit and the other is 64-bit, how i can get rid of the 32-bit one? i am using ubuntu 10.4 and snow leopard 10.6.3
View 9 Replies
View Related
Jan 10, 2011
I have a couple of MP3s that have duplicate fields in their ID3 tags. Let me show you what I mean: This is causing problems with some media players. Is there a tool that can automatically fix these MP3s in batch? I'd prefer a free Windows or Linux program. I'm not afraid to work on the command line if necessary.
View 2 Replies
View Related
May 2, 2011
I want to find and remove duplicate consecutive words from a text file. I've tried working with array but is very difficult..then i've tried using sed...somebody hint me with this sed :
sed ':f;N;$!bf; s/(.*)
1/1
/g; s/(.*)1/1/g'.
It works fine but if i have 3 consecutive identical words it only remove first one and the last two remain intact.
View 14 Replies
View Related
Jun 6, 2010
I am using ubuntu 10.04 and I would like to keep only the main menu,and i have to disable all the other options including recovery and memtest in the GRUB menu..How to do this..?
View 9 Replies
View Related
Mar 3, 2010
i'm using ubuntu 9.10... i'm working on some projects on L4 microkernel... i want to add it to the grub...i was familiar with the earlier grub, i.e editing the menu.lst...
title = L4Ka:istachio/i586 pingpong
kernel=/boot/kickstart
module=/boot/i586-kernel
module=/boot/sigma0
module=/boot/pingpong
how can i do this in new grub version...? i tried adding the following to /etc/grub.d/40_custom but failed...
menuentry "L4Ka:istachio" {
set root=(hd0,9)
kernel=/boot/kickstart[code ]..........
View 3 Replies
View Related
Jun 10, 2010
grub is giving me six (6!) repetitions of my Ubuntu Lucid install on sda5, five repetitions of my old karmic install on sda1, and I think four of the recovery option.Where have I told it to do that? How do I fix it??The grub choices look like this:
Code:
most recent lucid kernel on sda5
most recent lucid kernel recovery option
[code]....
View 5 Replies
View Related
Jul 14, 2010
I have a dual-boot grub2. On the list, there are Ubuntu 10.04, Memtest x86, and Windows7. I was wondering if it is possible to make Windows 7 first in the grub boot list. At the moment Ubuntu is first, so if it's possible to make windows 7 first.
View 2 Replies
View Related
Feb 7, 2011
I have a file "test.txt" with following data
#1
aaa
#2
bbb
#3
aaa
#4
ddd
I wanted it to be displayed as
#1
aaa
#2
bbb
#4
ddd
I used awk "'!x[$0]++' test.txt > file.new"
,but it deleted #1 also.I tried using uniq command but i didn't work.
Can anyone Please let me know is there any way to do this using shell script.
View 2 Replies
View Related
Jun 22, 2010
i have an entry in grub that i don't use at all "Windows recovey " and i want to know if there is a way to remove it or just hide it i have an other problem is grub confuses some partitions names so is there a way to rename them
View 3 Replies
View Related
Jan 8, 2011
I have been fooling around with some of the new kernels and have ended up with a lot of options in my grub at boot. I have been checking this page:[URL].. ... and it appears hiding the entries in grub2 is not as easy as hashing them out (#) which was the convention in grub.
My problem: I have installed kernel 2.6.36 and 2.6.37 just to fool around. Neither works in anything but low-graphics as it seems the ATI graphics driver is not working in either yet. They both also kill my wireless (don't recognise the card). BUT I don't want to completely uninstall them as I'd like to keep playing around as time goes on and they develop. I'd like to just hide them from the menu.
Is there some easy way of doing this? The link I provide only gives options to make the kernel non-executable (overly complicated process) or remove the kernel completely, neither of which I want to do. This used to be simple in grub, open a file and add or remove a #, and - although overall I prefer grub2 - IMHO this 'improvement' seems a little like a backward step. Sure a million people will disagree, but .
View 9 Replies
View Related
Oct 19, 2009
I recently upgraded my x86_64 system from FC8 to FC10 using Pre-Upgrade. (related blog link) It appears that the upgrade process installed a steaming pile of i386 packages that are duplicates of existing x86_64 packages. I now get update errors because of this package clash. I have searched the fora and the most progress I've been able to make so far is: I apparently had 8 unfinished yum transactions so I did yum-complete-transaction 8 times and have no more incomplete transactions.
The output of package-cleanup --dupes is not very helpful:
Code:
[tim@servy ~]$ sudo package-cleanup --dupes
Setting up yum
Loaded plugins: refresh-packagekit
Yet I still get transaction errors when I run updates via synaptic. It checks dependencies and downloads everything and errs when testing changes. This is the error it gives at the moment:
Code:
Test Transaction Errors: file /etc/gconf/schemas/gweather.schemas from install of libgweather-2.24.2-1.fc10.x86_64 conflicts with file from package gnome-applets-1:2.20.1-1.fc8.i386
[code]...
View 14 Replies
View Related
Oct 5, 2010
I have a Nook. When I plug it into the USB port on my system, a window pops up asking what I want to do with the new device. I can open it and access media/nook and move files into and out of the directory.
There's a button to "Safely dismount Nook" before I unplug it. I use that. Apparently, however, sometimes it doesn't respond. Now I have .hal-mtab-lock in my /media folder, along with Nook Main Memory and Nook Main Memory (1) folders. I can't delete any of them.
How do I a) delete these folders, and b) make sure it actually unmounts the device in the future?
View 6 Replies
View Related
Jan 24, 2010
When I originally installed Ubuntu 9.10 64 bit, I had the following operating systems already installed:
Kubuntu 9.04
Windows 7
Windows XP
Ubuntu automagically created a GRUB2 menu that offered all of these, plus of course itself, which was fine for a while.
Later on, I deleted and reformatted the partitions that had been dedicated to Kubuntu 9.04. GRUB2 has failed to keep up. Despite running "sudo update-grub" multiple times, the GRUB2 menu continues to show entries for Kubuntu 9.04.
How do I get rid of these obsolete entries? The partitions it was on simply do not exist any longer, so I don't know how GRUB2 is picking it up.
I had already edited my fstab file to reflect the new partitioning scheme, so I don't know where GRUB2 is getting the idea that I still have Kubuntu 9.04 installed.
View 9 Replies
View Related
Apr 28, 2010
Now it's:
Ubuntu
Memtest
Windows 7
I want:
Windows 7
Ubuntu
Memtest
How do I go about doing it? Do I rename "30_os-prober" in /etc/grub.d/ to "10_os-prober" and "10_linux" to "30_linux"?
View 9 Replies
View Related
Jun 25, 2010
As it stands right now, Grub2 seems to generate menu entries in this order (for my pc)
Ubuntu 2.6.32-22
Ubuntu 2.6.32-22 (recovery)
Ubuntu 2.6.32-21
Ubuntu 2.6.32-21 (recovery)
Windows XP
How can I make it so that Grub generates entries in this order
Ubuntu 2.6.32-22
Windows XP
Ubuntu 2.6.32-22 (recovery
Ubuntu 2.6.32-21
Ubuntu 2.6.32-21 (recovery)
If you're wondering why I care about the order, its because I just installed Grub with an icon based theme. In that situation, it looks silly to have 4 Ubuntu Icons next to each other, and then the windows one at the end.
View 7 Replies
View Related
Oct 22, 2010
i have been running Kubuntu 10.04 on my primary hard drive, and i have a second 1.5TB HD that i use for storage. so shrunk the secondary HD partition and created a second 50GB partition and i installed Ubuntu 10.10 on it and told it to rewrite the mbr on my primary HD. Where i am at: i took the menu entry from my Kubuntu "grub.cfg" and the entry from my Ubuntu "grub.cfg" and put them in the 40_custom file. so now when i boot-up my computer, it shows both installations at the bottom of Grub2s menu list. with all the menu entries that Grub automatically adds.
What i would like to know is how do i make it so that the Grub2 menu only shows the entries that i add to the 40_Custom file and not the randomly generated list aswell.
View 3 Replies
View Related
Mar 5, 2011
Is it possible to add menu entries for older kernels to boot instead of the latest?
I have tried this in Ubuntu 10.04 and it hasn't worked.
This used to be possible with ease in grub legacy.
I copied the current menu entry from /boot/grub/grub.cfg and pasted it in the /etc/grub.d/ 20_custom file.
Then I changed the kernel number to the older kernel number and the initrd number too. #update-grub puts this entry into 'grub.cfg', but it doesn't work.
I get:
The old kernel is in /boot as well as the respective initrd and config files.
View 1 Replies
View Related