Articles

Metasploit Framework Windows Tutorial
Remote Desktop Connection
Windows Processes That May Be Dangerous
How-To use NetCat a Tutorial
Common Linux Commands
Common Ports
Netcat Commands
HTTP Response Codes
War-Google Hack Terms
Wardriving
Avoiding Social Engineering and Phishing Attacks
Intrusion Detection on Linux
Linux Intrusion Detection
Penetration Testing Guide
Penetration Testing Tools
Social Engineering Fundamentals, Part I: Hacker Tactics
Social engineering (computer security)
The Psychology of Social Engineering

The Archives

General GSO
GovernmentSecurity.org News & Suggestions
In The News
Open Topic
General Security Information
Trash Can
Exploit & Vulnerability Mailing List Archives
Trial Member Forum
Product and Program Reviews GSO Tutorials
System Security
Windows Systems
Beginners Section
Linux & Unix Systems
File Downloads
Exploit Research & Discussion Trojan & Virus Errata
Networking Security / Firewall / IDS / VPN / Routers
System Hardening
E-Mail Security
Wifi Security
Trial Member Uploads
Upload discovered Trojans & Mal ware
GSO Programming Section
C , C++ , VC++
Visual Basic.NET
Perl /CGI
Java/Javascript
PHP/XML/ASP/HTML
Assembly + Other
The Cork Board
Network Security Consultant Directory
Network Security Jobs
The Archives
Encryption Information
General Network Security
Internet Anonymity
HTTP Protocol Security
Linux Security
MS IIS Information
Exploit Articles
Programming / Tool Design
GSO Software Projects
Public Downloads
Microsoft Security Questions and Papers

Full Version: Booting Trouble
LittleHacker
Well This is the story
My box infected virus and it hurt FAT so I lost my WinXP. (Drive D:)
I installed it by booting to Win98. (Drive C:)
And as I gussed I lost my Linux (on hda2)!
I though I have a Boot disket and I can repair Boot manager (Grub)
I when I boot by disket I got an Error!
Kernel panic: No init found. Try passing init= option to
kernel

I've searched Google but almost nothing.
at boot time when it alerts "Press <return> (or wait 10 seconds) to boot your Red Hat Linux system from
/dev/hda2 ..."
I use the following commands but I fail each time. It will not find the kernel.
root (hd0,1) kernel=/boot/vmlinuz-2.6.9-1.667 init=/boot/initrd-2.6.9-1.677.img
I'm not sure if I'm using these commands correctly specially about "root" command
somewhere I saw recommendation about root (hd0,4) but I don't know about the number .
Please guide me who to set grub (may be correct mbr to point /boot/boot.B but how?)
Serhat
I am a lilo person myself.. but try to get into your linux partition and run

grub-install /dev/hda (or w/e HD device)
I think..

Serhat
buzzons
get a live cd

boot

mount your nix partion

CODE

mount /dev/hdXX /mnt/LINUX


chroot to said mnt

CODE

chroot /mnt/LINUX


then install grub

CODE

emerge grub


(thats for gentoo)

then

CODE

nano /boot/grub/grub.conf


edit that so it is correct

CODE

default 0
# How many seconds to wait before the default listing is booted.
timeout 30
title=Linux
# Partition where the kernel image (or operating system) is located
root (hd0,0)
kernel /kernel.xxxxx root=/dev/hda3


reboot

and your grub should be fixed
sp00fy
It seems you're new to grub, important to know:

hd0,0 = hda1
hd0,1 = hda2
etc...

(just for grub)

wink.gif

cheers

sp00fy
LittleHacker
thanks all I think with combination of solutions of Serhat & buzzons It'll solve.
I'll try it

@Serhat:
the problem is my boot floppy is not able to find the kernel. It seems buzzons guide who to do load it with a live-cd


@buzzons:
grub.conf is ok as following
QUOTE
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,1)
#          kernel /boot/vmlinuz-version ro root=/dev/hda2
#          initrd /boot/initrd-version.img
#boot=/dev/hda
default=1
timeout=60
fallback 0
splashimage=(hd0,1)/boot/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.9-1.667)
root (hd0,1)
kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-1.667.img
title Microsoft Windows
rootnoverify (hd0,0)
chainloader +1

I think I should instal it again

@sp00fy:
Lol I knew that My Linux is instlled on hda2 partition biggrin.gif
LittleHacker
I fixed grub but ...
anyway I changed myway and installed Redhat 9.0 but as usual nothing went straight forward.
I've problem with X as followd

CODE

XFree86 Version 4.3.0 (Red Hat Linux release: 4.3.0-2)
Release Date: 27 February 2003
X Protocol Version 11, Revision 0, Release 6.6
Build Operating System: Linux 2.4.20-3bigmem i686 [ELF]
Build Date: 27 February 2003
Build Host: porky.devel.redhat.com

Before reporting problems, check http://www.XFree86.Org/
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.4.20-6 (bhcompile@porky.devel.redhat.com) (gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)) #1 Thu Feb 27 10:06:59 EST 2003
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/XFree86.0.log", Time: Fri Aug 12 18:49:22 2005
(EE) Unable to locate/open config file
(EE) Error from xf86HandleConfigFile()

Fatal server error:
no screens found

When reporting a problem related to a server crash, please send
the full server output, not just the last messages.
This can be found in the log file "/var/log/XFree86.0.log".
Please report problems to xfree86@xfree86.org.
JustAsFire
Try to get the correct driver for your card and ammend the XF86Config file to point at it in the device driver section.
myth
If your knew to linux, then scrap that install

its f'ked, you can grab almost anyone XF86Config / XOrg config file and it should technically work

As buzzons said about grub, just get a live CD and copy its /etc/X11/XF86Config-4 file and copy that to your /mnt/LINUX/etc/X11/XF86Config-4 file...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2005 Invision Power Services, Inc.