After a recent hard drive replacement, I find that I can no longer boot my Ubuntu partition. It seems that Ubuntu set up GRUB to boot using the disk id, which is no longer valid. I've been using the old GRUB for a number of years, and have always used the LABEL= syntax to assure that the correct partition is booted. There is a dire warning in the /boot/grub/grub.cfg file NOT to edit it. With the old grub, it was just a simple matter to change the menu.lst file. What file DOES get edited to make the change for the new drive? Is there an easy way to get GRUB2 to use the LABEL= form that I know and love? Or is it easier just to reinstall Ubuntu when a drive gets changed?
I've read and read & am still no smarter. I've tried to make a persistent partition(one that mounts whenever I boot/login). Either I don't have the right file or syntax, I've given up and need help. Please tell me exactly which file to edit and the proper syntax to put there. The partition on my machine I want to do this for is "sdb2" uuid "02f5852a-c3e2-47e8-b1dd-93592f1f87ee" label "archives"
When ever i open vim, i get the error that the following error: E484: Can't open file/abcd/configFiles/vim/syntax/syntax.vim There was a .vimrc file in my home folder that i have removed.
Still i keep getting the same error. Presently in my home folder there is no .gvimrc or .vimrc file.
But still i keep getting the same error. I am not too sure where this file is mentioned.
Background info: The SHELL has been changed from tcsh to bash Earlier i had created a .vimrc file in tcsh, i have removed the .vimrc in bash SHELL.
I am a Novell (now defunct) CNE tring to learn Linux and am having a lot of trouble finding out where the WB 6-6 is wrong in the syntax for adding local4... the the syslog-ng config file. In the instructions there are discrepancies between commas and simi-comma, they are both in the statements in no particular order. there is no pattern to them. Here is what the book shows:
filter f_local4debug { level(debug) and facility(local4); };
When I try to input this in the Gnome terminal window to try and find out where it goes wrong I get the following: -bash: syntax error near unexpected token "(" If I can get the correct syntax I belive I can use the info to get past the rest of this portion of the lesson. I am desperate to learn Linux as the only jobs out there for a Novell CNE are migrations to MS, which really sucks, since MS really really sucks.
i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again. i cant boot to windows 7.
Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.
sudo fdisk -l Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x3c3a81f5
I went through so many post but I haven't found the proper answer yet hope you have an Idea1. Grub2 saves only Linux OS as last selected no Windows OS2.It is possible to boot into a cdrom (drive)?
When I installed ubuntu on an HD with an existing OS it placed GRUB in the MBR without asking. Maybe there was an option that I missed? How do you I tell the installer to confine itself to the install partition and leave the MBR alone? (I'll use the system BIOS to select the boot partition).
I recently started using remastersys to make distributable copies of my install, but I have a problem: since I chose not to include personal information, it doesn't include my current desktop theme or the AWN dock at the bottom in the finished live CD .iso. How can I change this behavior and keep the dock and my current icon theme, metacity theme, etc. and have it installed and turned on by default?
Every time I do a fresh install, there are a number of manual config things to change. One of them is to modify /etc/hosts to add the local IP addresses to a computer name.Can this be done via the Ubuntu networking somehow ? It would be nice not to have to change some of these config files.
I'm having difficulty installing a MOD for Lpanzer because I can not modify any files in the file system because I'm not the owner. According to permissions Root is the owner. So how do I either tell Ubuntu I'm the owner? Or do I need a utility program to get things going?
Does anyone know if it's possible to specify a screen location when opening a window in gnome? I have created a custom launcher on the top panel in gnome. It launches a bash script that I wrote, but the script requires input that can change. The launcher command is like this:
Code: gnome-terminal -x bash -c "buildit"
The functionality of it works great. What I would like to do however, is control where the gnome-terminal window actually opens. It seems be random and based on other windows that are open. So sometimes it opens on the top-left of the screen, other times it's the bottom-left, etc.
I use Compiz as my window manager (e.g. under System > Preferences > Appearance > Visual Effects I have chosen the "Normal") with an Nvidia 8600GT (driver version is 260.19.06).
Is there some way I can control the screen location (maybe specify the x,y coordinate) of where I want this window to open? Ideally it would be great to force the window to open directly below the icon in my panel. Is this even possible?
Basically I am trying to add a new driver[megasr] into the ISO image, hence performed the following :
1. Mounted the RHEl5.4 ISO image
2. Copied the initrd.img to a temporary directory, performed changes to add the new driver in the modules.cgs, updated the corresponding files and recreated the modules.cgz file module-info modules.alias modules.cgz modules.dep pci.ids
3. Copied back the newly created initrd.img file into the isolinux folder.
I tried to burn the ISO and install it, but it seems that the new driver does not get loaded. I am unaware of any other changes?
How can I become root outside of the terminal? I want to be able to manipulate the file system (i.e. move files, delete files, rename files) in the file viewer GUI (not sure what it's called; I'd say "Windows Explorer" if I were talking about Windows).
Also, how can I manipulate (move, delete, copy, rename) files inside the terminal?
I do understand how to move around (change the working directory) in the terminal, and how to become root in the terminal, and naturally I understand how to move, copy, blah blah blah. I know the basic basics (just letting you know, I'm not the type of person who knows less about computers than a rock does).
I can use hexedit to manually edit one or two hex values in a binary file, but if I want to change many of the, this is impractical. Is there any tool that will take parameters like Code: someTool filename byteNumber replacementByte ?
I installed Fedora 15, which was my first real departure from Debian based Linux OSs. I absolutely love the new Gnome 3, and was able to configure F15 to work as I wanted it to. On rebooting I realized that there was no boot loader screen, that F15 just booted and didn't give me a choice as to which OS I wanted to use. Eventually I was able to configure grub to let me see the boot loader and added my old boot loader as a choice. This worked well, maybe not a perfect solution, but it worked. This weekend I installed LMDE (Linux Mint Debian Edition) to another HDD. LMDE uses grub2 and after the install F15 was not recognized.
Two questions: Is there a way for grub2 to see F15? or Can F15 be installed using grub2? I really don't mind re-installing from scratch.
I use Debian Lenny and iceweasel as my browser on a gnome core desktop. I also use JFOREX (java application) for my trading platform. It works fine. The problem is when I click on portfolio statement in creates an error which states: "Error in launching web browser". I googled the error on the web and read some sites and it says that I should install gconf-editor and modify the URL handlers in order to point to iceweasel.
The problem is I am practically a noob when it comes to gnome and sadly I am not technical enough to understand the values that needs to be changed using gconf-editor.
I am using open suse 11.4 on my dual boot laptop, and am trying to access and modify files that I have on my windows 7 partition, not sure but think they are ntfs directories. I can access and view them but need to be able to modify them.
I'm looking for a way to dynamically modify a fied in the SQL file.
Example,
INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10023,SOMEDATA, SOMEDATA); INSERT INTO `TABLE` VALUES(1AADFDF,DFF33D,10098,SOMEDATA, SOMEDATA);
[code]....
The third field in this SQL file is what needs to change to n+1
"10023" needs to change to "1" "10098" needs to change to "2" "10123" needs to change to "3" "10983" needs to change to "4" etc...
I tried with awk and sed, but since both require the usage of ' (single quote), my variable fails to get updated. I know i can use cut and recreate the sql statememnt, but i believe there should be easier way using sed or awk. Would anyone know of any creative way to get this to work in one-liner? This needs to be a part of the script preferable without making call to external file.
I am writing a program which modifies source IP address of packet before writing this packet to tap interface. I face only one problem with tcp checksum. I have current checksum, to get new checksum, I add new source IP address and add one complement of old source IP address. That is, I update checksum with difference of old and new source IP address. It sounds not bad but does not work.
There is a file called elevator.c. It is written as a module (i.e it has specific init and exit functions). However we are not able to see it in lsmod listing. We are working on a project where we need to modify this file. Compiling every time we change something will be time consuming. Is it possible to compile just this file and insert it as a normal module?
I've implemented a python script in conky that shows my stock portfolio.But, in the output of last updated timestamp, I get a time several hours in the past. The url for fetching stock data is: [URL]This is a norwegian stock, and I also live in norway. So the timestamp is not translated to the stock market of where it came. I can't find any 'localizing' stuff in the url either.Now my question is this: The script puts the time into a variable, the varable now contains ex 11:23 Is there any way I can add 6 hours or so to this variable
what I have: Belkin G Wireless Router Model F5D7234-4. To attempt to get Subsonic working, I changed the port forwarding settings (Belkin calls it Virtual Servers) to forward port 4040 to my desktop computer. I then saved changes, and my wireless disconnected. I waited about 3 minutes, and nothing was happening, so I restarted my router. This left me in the position that I am in now. Even when the router and modem are fully booted, the router does not broadcast my SSID. In addition, a wired connection will not connect to the network through the router. This leaves me completely unable to use wireless, and unable to change any settings in the router.