Ubuntu :: Deleting Grub Line?
May 25, 2010
I upgraded to 2.6.33 and my comp will only run in Low graphics mode so i scroll down one level back to 2.6.32-22 and all is fine.How can i 'erase' the 2.6.33 line (and the associated recovery line)from the grub list so i dont have to deal with it till bugs are removed later on.My Grub header says it is version 1.98-1ubuntu6
View 3 Replies
ADVERTISEMENT
Apr 21, 2010
this script returns me :
sed: -e expression #1, char 2: extra characters after command
sed: -e expression #1, char 2: extra characters after command
Code:
#!/bin/bash
while read line
do
sed -i "$line" 'd' test.txt
done < test.txt
View 12 Replies
View Related
Jun 10, 2010
what would be the syntax to delete a line containg the word "word" from the file "file" i want to delete the whole line and not only the word...
View 6 Replies
View Related
Apr 7, 2011
i have a problem about deleting a line from a text file which contains two specific patterns. i am using "sed -i "/$name/ d" peop.txt" but i must use one more variable which is surname.
"
burak:ak:3242:2342:dsa@a.com
gokhan:an:432:4234:da@a.com
"
and this is the code of text file. and the second question when i use "/$name/ d" it deletes not only the names which are macthing with $name but also all words that contain $name. so how can i fix these problems_?
View 2 Replies
View Related
Sep 3, 2009
I have two text file named 1.txt & 2.txt.
1. txt contains 5 laks of mobile number.
2. txt has 60 laks of mob no.
Situation is that I want to find and delete numbers in 2.txt which already in 1.txt. Any perl or bash script or any other way to get the work done.
I tried the following:
#! /bin/bash
IFS=$'
' for NAME in $(cat one.txt)
do sed -ie "|^$NAME$|d" two.txt done
echo "***DONE***"
It works well with smaller file but it take very very long time even processing 10 thousand numbers.
View 2 Replies
View Related
Jan 20, 2011
I am doing molecular dynamics where I have to edit files. I have looked at tutorials for grep and sed but can't find my solution. The files produced in my simulations look something like this:
ATOM 1825 NE2 GLN 112 113.646 27.895 14.456
ATOM 1826 HE21 GLN 112 114.020 26.957 14.490
ATOM 1827 HE22 GLN 112 112.649 28.039 14.388
[code]...
View 5 Replies
View Related
Nov 20, 2010
my Setup is Fedora 14 x64 + radeon hd 4830 i've downloaded .run package from ati site with latest driver for x64 systems. installed it, but didn't edited grub.conf becouse i didn't understood anything there (probably didn't spent enough time to get things understand) Now i've lost possibility to enter my Fedora system. during boot it lost it's modern blue boot screen (with filling drop), it was replaced by standard old boot screen with triple-color stripe. after this boot screen monitor start blinking going on and off. and on last step i'm getting "Fedora 14 boot bla bla bla something" on screen. nothing works except Ctrl+Alt+Delete. system reboots showing successful daemons shutting sequence. How can i edit grub menu from initial grub screen is it possible to it's own 'e' option or 'c' from grub command line?
View 4 Replies
View Related
Sep 1, 2011
I have a dual boot system which I made from scratch Win7 and then Ubuntu 11.04.After installation all worked fine but each time I have to run Win7starting it from Grub2)when I shut it down and restart the laptop, grub2 is not there anymore and Win7 starts with its bootloader.To get back to Natty I have to go through the Live CD and install Grub + Boot Repair and run it.'m lost. I attach the boot info results.
View 8 Replies
View Related
Apr 26, 2011
I just got an email from google saying my site contained malware. It has a line in it: "<script src='http://whitepix.info/3'></script>". I've noticed its recursively in all my .html and .txt files in my website. Can I make a linux script to run that will go through all my .html and txt files recursively and delete that line from them? I don't know how it got in all of them.
View 6 Replies
View Related
May 3, 2010
I run 3 OS's: Win vista, win 7, and ubuntu. Every month I reinstall windows 7 (because I dont have a key), and everytime I do that it reinstalls the MBR. After that, I cant access ubuntu. I have used live cd's to try and reinstall grub with no sucess.What is the easiest way to achieve this? I was hoping I could make a CD to pop in my computer that could reinstall grub as it should be, or atleast boot me into ubuntu, and work from there. But even if I get into ubuntu, I dont know the commands to reinstall grub with autodetect of the other OS's.
View 6 Replies
View Related
Jan 30, 2011
Ubuntu disappeared from grub menu after I deleted the old kernels.
View 9 Replies
View Related
Jun 2, 2010
I have my laptop NC6910p from HP with windows 7 and Ubuntu lucid as dual boot managed by grub loader.
Yesterday I made a mistake and formated the ubuntu partition as ntfs with a windows media because I needed to do a test in that partition. Now, off course, when I boot the computer is not finding GRUB and naturally not booting to windows.
I tried to boot with ubuntu live cd and did the apt-get install ms-sys but it just does not find the package. I can browse the windows files and all of that.
View 5 Replies
View Related
Oct 16, 2010
I have a major problem with Windows 7's MBR. I deleted Ubuntu's partition last night, and when I restarted, I saw:
Code:
error: no such partition
grub rescue>
I looked it up, put some code into a LiveCD terminal, and I thought it worked. But now, I says that I definitely need to put in a Windows 7 CD and do that MBR fix method. I did not own a Windows 7 CD; my laptop came with it pre-installed, and I have no recovery partition anymore.
View 9 Replies
View Related
Nov 3, 2010
I had dual boot Win Xp and CentOs Linux. I have small harddisk and needed more space, so I removed CentOS linux with partition manager and rebooted. Now I can not boot my XP. All I can see is GRUB prompt. Keyboard do not respond except CTRL ALT DEL. I know I have to fixmbr. But I can not boot from my bootable XP CD. I can boot from CentOS linux DVD and enter into linux rescue mode. From that I typed "grub" entered into grub. Then I tried
root(hd0,0)
makeactive
chainloader --force +1
boot.
But it gives me some error. Can I boot my XP from CentOS DVD rescue mode?
View 4 Replies
View Related
Jun 18, 2010
I have 3 hard drives and have Ubuntu installed on one (sdb), had windows vista installed in the other (sda) and use the other (sdc) as a back up/extra space. I just deleted the windows vista partition and formatted the hard drive (ext4) and now just use Ubuntu, however, in the grub boot, vista and recovery is still showing up. How can I clean the grub up and delete these entries. I've searched all over the place, googled like crazy and all I can find is how to get rid of grub or reinstall the MBR of vista (etc). One more thing, how can I permanently mount the new empty hard drive in Ubuntu so that I have access to it all the time w/out having to mount it.
View 5 Replies
View Related
Sep 30, 2010
Windows 7 x64 was the only install with a separate boot partition which was already on the Dell laptop. I then shrunk the partition to allow me to put opensuse on. Then I made the stupid mistake of deleting the opensuse and boot partitions while in Windows. I was going to do this, copy pictures of my new born baby off then reboot and delete all stuff and redo all the partitions and installs again.Now I just get grub rescue with the following when I do ls command:(hd0) (hd0,1) (hd0,2)I would like advise on how to get the data off, I cannot afford to lose my babies pics as there are no other copies. I will then do a normal install of opensuse first then Windows 7 after it.
View 6 Replies
View Related
Mar 21, 2010
I'm a CS Major that wanted to experiment with Linux more. Great idea right?! Well, long story short, I have a HP Dv9815nr Entertainment Notebook PC with Vista pre-installed. I have 2 local SATA HDDs and installed Vista(250GB) and Fedora 12(160GB)(respectively). In order to make life simple for booting purposes, I partitioned the Vista drive to include a 3GB sector for the Fedora Boot partition, so that Grub would run properly.
I recently discovered Sun's VirtualBox (Open Source Virtualization software) and installed several flavors of linux inside of this application on the Vista Disk. Naturally, I installed Fedora 12 in the Virtual Box and reformatted the Linux drive (160GB + 3GB Boot partition).
Everything was fine and then I rebooted. Now I get a Grub error on boot. "Error 22 : partition not found". I would like to restore the Vista MBR using the Fedora 12 Live cd, but I can't repartition the Vista drive under the live installation.
Also, I extended the Vista partition to include the 3GB previously used for the Fedora Boot Sector.
View 4 Replies
View Related
Jul 3, 2011
use Fedora 15. I had installed driver for my ATI graphic card, as it was written in Fedora guide, then when I rebooted the system the bars and icons appeared with strange, changed colours (purple, green, etc). I've read that this happened because of the bad drivers, so I tried to fix it. Unfortunatelly because I'm Linux newbie and I'm also very nervous I deleted (using Fedora software manager) everything connectedtalyst from my system.Now when I try to start my computer, grub starts in text mode.My question is:What can I do? Do I have to reinstall my system or maybe someone knows how to fix it?I'm quite scared because now I can't launch not only Fedora but also Windows.(I'm writing from another computer
View 4 Replies
View Related
Mar 17, 2011
That is my disk
Code:
fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 3724 29912998+ 83 Linux
/dev/sda2 29256 30401 9205245 7 HPFS/NTFS
/dev/sda3 3725 4271 4393777+ 5 Extended
/dev/sda4 * 4272 12104 62918572+ 83 Linux
/dev/sda5 3725 4271 4393746 82 Linux swap / Solaris
I want ot install a new opensuse 11.4 as yest another OS. Due to the fact that I already have 4 sda partitions, I have to make some changes. What I am thinking about is to copy the sda2 (windows recovery) data to some folder etc (nevermind), then delete the sda2. Then I want to create a new primary partition for the new suse 11.4 and install it. What is worying me is the grub boot menu. I was planning to edit the new one (the opensuse 11.4), with old data.
Code:
###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.2 - 2.6.31.5-0.1
root (hd0,3)
kernel /boot/vmlinuz-2.6.31.5-0.1-desktop root=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080105BB0F00WDHE41DC-part4 resume=/dev/disk/by-id/ata-Hitachi_HTS542525K9SA00_080105$
initrd /boot/initrd-2.6.31.5-0.1-desktop .....
Now my question is will the settings of (hda0,n), change due to the fact that I have deleted the sda2? I have a lot of unused space at the end of my disk and want to create a new "sda2" there.
View 9 Replies
View Related
Jun 2, 2010
Can I use the grub command line to reinstall grub from a ubuntu cd?
View 1 Replies
View Related
Dec 1, 2010
Code:
grub-install -v
grub-install (GNU GRUB 0.97)
I loaded GRUB, and now when I reboot it goes straight into the 'grub>' command line. Initially GRUB had the root as (hd0,2), whereas the boot is on (hd0,1)...(hd0,2) is my '/home' partition, and (hd0,1) is my '/' partition... So on a bootup I ran...
Code:
root (hd0,1)
setup (hd0)
Now when I boot I still get the 'grub>' command line, but now the root is correct.
From 'grub>' I can type...
Code:
grub> configfile /boot/grub/menu.lst
GRUB will then show the menu, and I can click the listings to load them. All's fine, but why doesn't GRUB just load the menu.lst without my prompting? How can I automate this process of typing 'configfile /boot/grub/menu.lst' each time I boot?
View 1 Replies
View Related
Mar 10, 2011
I can only boot fedora and red hat on my pc, I like fedora but Im having acpi problems and need to upgrade BIOS, which should be done from windows I hear. So I deleted fedora partition and plan on re-installing after all this.I've used http://www.ultimatebootcd.com/Iboot loads up but than complains of not finding something with acpiI tried knoppix but i think i was suppose to extract before I burned Ill try again if suggestedany ideas on how to get windows up i've tried many windows disc to no success
View 10 Replies
View Related
Jan 20, 2010
I used the Wubi installer to install the latest version (available from the website) on my second physical HDD. I rebooted my machine and used the Windows 7 bootloader to launch Ubuntu and it launched a GUI install. I wasn't sure how long it was going to take, so I left for about a half hour and when I returned I was back to my Windows 7 logon screen. Naturally, I assumed the install was a success and I rebooted my machine. When I boot again I get the Windows bootloader and I see my options for Windows 7 (which works properly) or Ubuntu. However, if I select Ubuntu I am brought to a command-line and there is an output at the top of the screen stating "Grub bootloader." At this point do I need to type anything to launch the GUI (I'm assuming Gnome) from this? How should I proceed from this point, reinstall?
View 9 Replies
View Related
Aug 30, 2011
I am currently running a dual boot machine with Ubuntu 11.04 and Windows Vista.Is there any way I can delete the Linux partition and Grub boot loader without affecting the Windows partition at all?I would also like to be able to repartition all of the space that was previously occupied by Linux.
View 2 Replies
View Related
Jan 9, 2010
i have successfuly installed ubuntu karmic inside my windows 7. After an update, i restarted it. but it didnt boot ubuntu. instead it shows grub's command line. what should i do? all of my java projects/programs is in there.
View 2 Replies
View Related
Jan 5, 2011
Firstly i was getting error 'grub resque: unknown filesystem'. then i reinstalled GRUB from the live cd, now when i try to boot the grub doesn't load but i get only white line that blinks.
View 6 Replies
View Related
Mar 4, 2011
After installing the 10.10 Maverick Meerkat, I decided to have a new partition and install Windows 7 on it for development purposes. So this is the method I worked with:
Partitioned the hard disk with gparted
Formatted the drive in NTFS
Installed Windows
Booted into Ubuntu 10.10 Live CD and re-installed grub on the MBR Now after restarting the system a grub command line boots up. I was able to boot into ubuntu with the following commands:
Code:
find /vmlinuz
kernel /vmlinuz root=/dev/hda1 (or its equivalent)
initrd /initrd
boot
Is there any way how to load up the grub GUI with the options to boot up Ubuntu or Windows 7 respectively?
View 9 Replies
View Related
Apr 22, 2011
I am starting to learn about the nuts and bolts of Linux and I wanted to have an option in my Grub boot loader to boot up without x window or any services just a log in so I can test changing config files and experience a system that isn't bogged down by all the things that come along with them.
View 2 Replies
View Related
Jun 6, 2011
Can someone please tell me how a second fedora line was added to my grub. I took a look at my /boot/grub/ menu.lst file and noticed it has 2 very similar fedora lines.
View 4 Replies
View Related
Feb 14, 2010
I just booted into Linux and the Update Manager prompted me to restart. After the restart the GRUB interface I expect to see is no longer there and now it is just a command line that says press tab for more options.I have not got a clue with shell language as I have had no time to learn it as of yet. Do I need to uninstall and reinstall Linux or is there a command that can be typed that boots up the operating system.Even better is there something I can do that can return me to seeing the interface like I was used to.
View 3 Replies
View Related