My Server runs "fine", then I type init 6 for rebooting or some cron job initiates Init 6 and my system stops in grub at: GRUB loading stage1.5. Error 18 After another Ctrl+Alt+Del the system boots as if anything happened. this is why I doubt that it's an issue of too big HDD or BIOS.
I successfully installed fedora 12 the other day, got it up and running fine. Yesterday I installed windows 7 on my second partition on the drive (dumbest thing ever, I know). What I forgot is that windows can't handle not being in control, and that it would replace my bootloader (grub). "No problem" I thought. I booted a live usb that had grub-install on it (which has worked for me in the past). The drive which needs grub on it is /dev/sda, sda1 being the partition with /boot on it.
So I do the following in the live usb:
Code: mkdir /media/fedora mount /dev/sda1 /media/fedora grub-install --root-directory=/media/fedora /dev/sda
But after a few seconds I get an error message saying that "stage1 not read correctly". When I go into the drive I can see that there is a file /media/fedora/boot/grub/stage1, and the device.map which grub creates appears to be correct (/dev/sda corresponds to hd0). Going into the grub terminal and running "root (hd0,0)" then "setup" gives a similar result (complains about not being able to find stage1).
On another forum someone mentioned tyring "depmod" before installing grub, but that didn't work for me.
I have a number of questions about the detailed mechanics of Grub. My first question is hopefully simple. Lets say I have a separate /boot partition at (hd0,0), and install Grub's Stage1 to the MBR. The BIOS knows to load and execute the bootloader residing in (hd0,0)'s MBR because the BIOS is configured in CMOS to do so. But then how does the copy of Stage1 that lives in the MBR know to find Stage2 in the /grub partition of (hd0,0)? If Stage1 was written to the MBR of (hd1) and the grub partition was in (hd1,3) my impression is that Grub handles that seamlessly. I would guess that when Stage1 is copied into the MBR by grub or grub-install, it must have a built-in parameter value that essentially says "find Stage2 at /grub/Stage2 in (hd0,0)". But I haven't found an explanation of this in the Grub manual nor in the webpages I've look at so far.
I soon found out that Suse 11.1 would no longer boot from boot.ini (using bootpart) because the boot process now brings up PCLOS (in /dev/sda6) rather than Suse 11.1 sitting in /dev/sda5. No problem, I thought, I'll boot from the Suse install DVD, use repair, and away I go. Wrong. After grinding, it started mentioning about generating something for sda13, which is my last partition. NTFS! So I bailed before it got too far. I even tried "rescue" option on the DVD, command prompt, and grub commands to reinstall via "setup.
Then I tried to use Super Grub Disk (.97xx) to reinstall the PBR, stage 1 and stage 2 loaders. Didn't change a thing. So then I used Grub4DOS and got into my Suse 11.1 installation using this in its menu.lst: title openSUSE 11.1 - 2.6.27.45-0.1
[Code]...
Worked fine, and is now my (only) method of booting to 11.1. So obviously it's bypassing stage 1 and 2 files, using it's native Grub4DOS code. But then I tried Yast-Bootloader to reinstall Grub's files. No difference. Then I used the advanced part to "write bootloader code to disk" No difference. Even tried "propose a new boot scheme" (or whatnot) no difference. After looking at all this, I've come to the conclusion that the PBR code in sda5 is scraunched, and/or stage 1 code (although it's still the original date), or stage 2 (which definitely had a new timestamp of when I committed the fatal error by executing PCLOS's "install.sh".
So my question is this: How do I do a good COMPLETE re-install of Suse's version of the grub files? Because, for sure, grub commands like "setup --stage2=/boot/grub/stage2 (hd0,5), and variations thereof, certainly aren't doing it? My reasoning is that I should make sure that all the boot files get restored/confirmed as "originally installed by Suse".
i am newer to linux.i have a doubt in linux boot process in my machine RHEL5 has installed,in bootig GRUB will load in 3 steps
stage 1--> stage1.5 --->stage2
stage1
1st stage1 of grub is located in the 412 bytes of MBR)
also there is a file /boot/grub/stage1 ( then what is this???)
stage1.5 ( where does stage1.5 file located ? i found certain files in /boot/grub/) like
e2fs_stage1_5
fat_stage1_5
ffs_stage1_5
code....
but my qusetn is GRUB loads from among these files??i removed the above mentioned files from /boot/grub ,but my system is still booting!!!!!!!!!!!!!!!!!!
how it is?then how stage1.5 and stage2 take place??
When I try and boot my Debian computer I get the messages: Grub Loading stage1.5. Grub loading, please wait... Error 15 Is there any way of recovering from this - or is it simply a fresh install? I was attempting an upgrade from Lenny to Squeeze and despite a few hurdles it looked like it was all happening. Got the new kernel loading, and the new grub. It looked as though grub2 was working so I ran the grub-remove-legacy-support command (something like that) and now my computer won't boot grub or Linux.
I'm assuming the MBR on my harddrive is lost, however I don't know what state the partition is in. I'm guessing that maybe this has been lost as well. I tried a few tools from the Ultimate Boot CD but nothing here was able to re-install my grub or boot from any partition or even mount my file-system. I'm fearing the worst but would like it confirmed before I blow it all away with a new install.
I have a system that we ghosted with SGS 2.0.1 (Ghost 11).We ghosted the whole disk, but when we send it out - we plan to be able to restore individual partitions. mainly because it is running VMware server 2, and the partition restores will allow the admins to restore Individual VMs by restoring their partitions - OR - leave the VMs alone and restore just the Red Hat Linux root partition if they mess something up.
Unfortunately, this didn't work correctly right away. When restoring the root partition by itself, the system hangs on the word GRUB.Using the Rescue Disk we can get it running again. Then, after re-ghosting- and then restoring the new ghost partition - it works!I thought it was because we added the "-IB" switch to the ghost executable. This includes the boot info into the image. But maybe it was the rescue disk all along.
I updated the kernel to 2.6.35.10-74.fc14.x86_64 and had to reinstall and rebuild the kernel module for my ATi driver as usual, so I edited the kernel arguments at the grub splash screen so that I could boot into single user mode and install the driver (i.e appending the relevant line with '1'). The interesting thing is, the system booted directly into single user mode as root when the system started up. No password was required.
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).
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 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 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 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?
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
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?