Click to See Complete Forum and Search --> : Damn someone in this board !!!!!!!! help !
alkalinelito
10-13-2001, 10:00 PM
Ok, agggggggggg
The other day i saw someone mean signature "fdisk /MBR" . Ok ok, i used fdisk for the partition stuff, and MBR, is the master boot record . ok,ok . I'm dual Booting Win98 /RedHat 7.1 since 2 months, im using LILO as boot manager . I have been really happy with linux, and im still always learning. Anyyyyyyyywayy , the point is, i dont know , i just was on the MS-DOS command promt, and remember and decided to try fidsk /MBR, thinking "oh , maybe this will show me what i have in the MBR (this should be LILO)", after i run that, nothing happen, and i started thinking the worse , so I decided to reboot my computer, and yeah! f*** !!!! i was right !!, that command -apparentaly- deleted what i had in the MBR , aggg, now my computer goes directly to Win98 !!!!, agggggggggggg, HEllllllllpppppp
Hey you! the one that had "fdisk /MBR" mean people !!!! . Anyone can helping , what i have to do, to put lilo again in the MBR ???
Thanks in advance.
scanez
10-13-2001, 10:17 PM
Well yes, fdisk /mbr will indeed rewrite your mbr. Just one of the reasons why some suggest putting lilo into the root partition instead of the mbr. Anyway, you made a bootdisk right? If so, boot with that and then once in linux run /sbin/lilo to reinstall lilo into the mbr. If not, then you can still boot off of the cd you used to install linux. Boot into linux with that and then run /sbin/lilo as well. No cd? Go to the RedHat website and get into their ftp directory for 7.1 and somewhere they will have images for bootdisks. Download the right one and create a boot disk with that.
Lessons learned: either don't install lilo into the mbr or make sure you have a boot disk.
Come back with any questions.
Good luck
SC
X_console
10-13-2001, 10:22 PM
Word of advice, don't follow everything you see on someone's signature. Sometimes it's a prank. Following scanez's advice should fix your problem.
alkalinelito
10-13-2001, 10:35 PM
Hello, it's me again,
i tried to boot with the CD, but that just took me to the installation process. SO i guess i need to make a boot disk. I think i can do it with rawrite or something like that ?
scanez
10-13-2001, 11:00 PM
Originally posted by alkalinelito:
<STRONG>Hello, it's me again,
i tried to boot with the CD, but that just took me to the installation process. SO i guess i need to make a boot disk. I think i can do it with rawrite or something like that ?</STRONG>
Hmmm. I just booted off of a RedHat 7.0 CD I had lying around and it has the option to boot into rescue mode by typing
linux rescue
at the prompt. Does your boot screen have that option? If so, choose that. It will boot into linux from which you can run /sbin/lilo and then reboot afterwards. If not, then yes, rawrite is what you would use to create the boot floppies in windows.
SC
[ 13 October 2001: Message edited by: scanez ]
alkalinelito
10-13-2001, 11:21 PM
I just created a boot disk , using /images/boot.img is on the red hat cd , using rawrite, i dont know if it is the right thing to do. And yes, it does have the linux rescue thing, im going to try the linux rescue thing first . Thanks.
alkalinelito
10-13-2001, 11:41 PM
ok, i tried to run /sbin/lilo , and is said "no file or directory found" then i did " /sbin/ls -a " but lilo wasnt there , then i just run " lilo " and it said " /etc/lilo.config not found " , what can i do !!! help !
alkalinelito
10-14-2001, 12:03 AM
oh well, im going bed. i'll check tomorrow for answers. goodnight.
Linuxcool
10-14-2001, 12:18 AM
When you boot into rescue mode off of the cdrom, do an ' ls ' and see if there is a directory named ' /sysimage '. If there is, then do an ' ls /sysimage' and see if the contents of your root ' / ' directory is there. If root's ' / ' contents are there, then do a ' /sysimage/sbin/lilo -r /sysimage '. That should fix it.
Nailz
10-14-2001, 12:53 AM
Let me get this right...
You saw "fdisk /mbr" in someone's sig and thought, "Hey, Wonder what that does?"
And you actually ran it? Sorry to say this but it serves you right. Maybe I should change my sig to read "rm -rf *" Wonder if that will have any ill effects on your linux install.
Dark Ninja
10-14-2001, 01:23 AM
Ah ha! But you cannot foil me with your little 'rm' command scheme. Uh uh. I added 'rm -i' to my aliases. I am now INVINCIBLE.
(BTW - For a good time, try 'format c:\' under any DOS prompt. It offers a very good time.) :D
Dark Ninja
nathaniel
10-14-2001, 01:44 AM
just because u have a rm -i in your profile doesn't mean a rm -Rf / will not question you if u want to remove dirs and files! The R means recursively or directories in a nutshell, the f means by force, no asking if u would like to or not. sign, 6 beers does alot to a guy in 1 hour, got to rest, my advice, get into RH, pop in hte 1 cd and cd into /mnt/cdrom/RedHat/RPMS/ and do a rpm -Uvh lilo <hit the tab button> and let lilo reinstall it's self.
GL and good night
NB
alkalinelito
10-14-2001, 12:46 PM
Originally posted by Linuxcool:
<STRONG>When you boot into rescue mode off of the cdrom, do an ' ls ' and see if there is a directory named ' /sysimage '. If there is, then do an ' ls /sysimage' and see if the contents of your root ' / ' directory is there. If root's ' / ' contents are there, then do a ' /sysimage/sbin/lilo -r /sysimage '. That should fix it.</STRONG>
No is not working, My system is mounted in ' /mnt/sysimage ' yep, so i try to do a '/mnt/sysimage/sbin/lilo -r /mnt/sysimage' and deosn't work (it says lilo file/direcotry does not exist) , I also tried '/mnt/sysimage/sbin/lilo ' and says the same, I also tried '/mnt/sysimage/sbin/lilo -r /sysimage' and still doesn't work. Any help ?
alkalinelito
10-14-2001, 12:49 PM
Originally posted by nathaniel:
<STRONG>just because u have a rm -i in your profile doesn't mean a rm -Rf / will not question you if u want to remove dirs and files! The R means recursively or directories in a nutshell, the f means by force, no asking if u would like to or not. sign, 6 beers does alot to a guy in 1 hour, got to rest, my advice, get into RH, pop in hte 1 cd and cd into /mnt/cdrom/RedHat/RPMS/ and do a rpm -Uvh lilo <hit the tab button> and let lilo reinstall it's self.
GL and good night
NB</STRONG>
Thanks, but i still don't know what to do , I need to mount the Cdrom , how do I mount it ?
alkalinelito
10-14-2001, 12:52 PM
to the other guys, i know what rm , format c: does..... . Little correction, format c: does not have effect in "any dos promt" , if you do it under any Win 9x , will say you can't do it there. cause you are running windows , bla bla bla .
alkalinelito
10-14-2001, 01:31 PM
I don't know what's wrong with my computer, i tried to do it again, and it worked, I did:
' /mnt/sysimage/sbin/lilo -r /mnt/sysimage '
Thanks everyone who heleped .
I would appreciete is someone explain what i did, ha what ' /mnt/sysimage/sbin/lilo -r /mnt/sysimage ' means .
rikky
10-14-2001, 03:02 PM
A simpler way to boot into linux : From your RH 7.1 CD, search for and copy the files named "loadlin.exe" and "vmlinuz" to your c:\ directory
Then make a file in your c:\ driectory name "linux.bat" with the following line in it
c:\loadlin.exe vmlinuz root=/dev/hdax
(where x is the partition no. of the linux root drive)(get your partition no. from the partition table where hda refers to the 1st hard drive on your system and x refers to the partition no. on the hard disk which you get from fdisk under linux
for example if you have one primary partition and rest is in extended partition, and the D: is the first partition in this extended partition, it should be /dev/hda5 . Make sure you have the correct partition no. REASON : The first partition (C: ) will be /dev/hda1 and after the first four primary partitions, the numbering starts for the extended partition.. so /dev/hda5, /dev/hda6 and so on... )
Now boot/restart into pure DOS mode - no windows.
And from the command prompt type two commands as follows :
cd \
linux
There you go! Boot into linux without a floppy anytime you manage to loose that lilo bootloader from your MBR!!
Then type and run
/sbin/lilo
This will reinstall the Lilo bootloader which has been replaced by the Windows during fdisk /MBR ... there you go!!
Rikky :)
Linuxcool
10-14-2001, 10:46 PM
You're welcome.
About the command ' /mnt/sysimage/sbin/lilo -r /mnt/sysimage '. When you use rescue mode, it creates a directory named ' /mnt/sysimage '. Then it mounts your root ' / ' directory in it. To run the lilo command, you have to give the complete path to it ( ' /mnt/sysimage/sbin/lilo ' ). When lilo is run, it looks for its configuration file named ' lilo.conf ' which is in the ' /etc ' directory. But lilo won't find it because the root directory has been moved when using the rescue mode. The path to ' lilo.conf ' is now ' /mnt/sysimage/etc ' not ' /etc '. The ' -r ' option is used to change the root directory. In this case, to ' /mnt/sysimage '. That way when lilo looks for ' lilo.conf ' in ' /etc ', it will find it. I don't know why it didn't work the first time.
alkalinelito
10-15-2001, 04:34 AM
Thanks a lot for everything,
Andy Fair
10-15-2001, 12:04 PM
Of course, and easier way (and it avoids having to type all the directories out in full) is when you get to the prompt of the rescue disk, type
chroot /mnt/sysimage (or wherever your install has been mounted)
What this does is turns /mnt/sysimage into plain and simple /
Once you've done that, all you have to do is type /sbin/lilo and you're sailing!!
Rgds
AndyF