LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-31-2009, 01:18 PM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
cant Install Linux from hard disk


Hi guys ,
Recently i m using Fedora 8 , but i want to reinstall my system not from Fedora 8 DVD , but Directly from hard disk, and i dont want to use DVD to boot my sytem.

For this purpose i create a ISO image of my Fedora 8 DVD to the destination folder /root/Sulphur.iso
and mount this iso image and copy the vmlinuz and initrd.img file to the destinatin folder /fedora/

after dont this two step i modify my grub.conf file with the following options

title Fedora8 ISO
root (hd0,2)
kernel /fedora/vmlinuz
initrd /fedora/initrd.img


and ther reboot my sytem , and choose the Fedora8 ISO

but it show me the error .

Kernel /fedora/vmlinuz
Error 15:file not found


i dont know what wrong i did with my configuration.

Thanks In Advance

Best Regards
Ashish Sood
 
Old 04-01-2009, 07:15 AM   #2
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
To be fair on us not knowing if you have get everything right it would be useful if you show us the output of

Code:
mkdir /mnt/sda3
mount /dev/sda3 /mnt/sda3
ls /mnt/sda3/fedora
The listing of /boot/grub/menu.lst that is doing the booting would be helpful too.

It is possible that the vmlinuz is just a symbolic link to the kernal in /boot. In any case you need to tell the kernel where to find itself with the parameter "root=/dev/sda3" and the read-only parameter "ro" in the kernel statement.
 
Old 04-01-2009, 12:11 PM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
The root (/) partition is my lvm partition .
here is the output of fdisk -l

Device Boot Start End Blocks Id System
/dev/sda1 * 1 3952 31744408+ 7 HPFS/NTFS
/dev/sda2 6566 48640 337967437+ f W95 Ext'd (LBA)
/dev/sda3 3953 3965 104422+ 83 Linux
/dev/sda5 6566 9816 26113626 7 HPFS/NTFS
/dev/sda6 9817 16318 52227283+ 7 HPFS/NTFS
/dev/sda7 16319 19505 25599546 7 HPFS/NTFS
/dev/sda8 22839 26662 30716248+ 7 HPFS/NTFS
/dev/sda9 26663 33036 51199123+ 8e Linux LVM
/dev/sda10 33037 33673 5116671 83 Linux
/dev/sda11 33674 34195 4192933+ 82 Linux swap / Solaris
 
Old 04-01-2009, 12:12 PM   #4
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
And this is my grub.conf file

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,2)
# kernel /vmlinuz-version ro root=/dev/FirstVolGroup00/FirstLogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=15
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.26.8-57.fc8)
root (hd0,2)
kernel /vmlinuz-2.6.26.8-57.fc8 ro root=/dev/FirstVolGroup00/FirstLogVol00 rhgb quiet
initrd /initrd-2.6.26.8-57.fc8.img

title Fedora8 ISO
root (hd0,2)
kernel /fedora/vmlinuz
initrd /fedora/initrd.img
"/etc/grub.conf" 31L, 960C

 
Old 04-01-2009, 12:50 PM   #5
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Quote:
Originally Posted by Ashish Sood View Post

title Fedora8 ISO
root (hd0,2)
kernel /fedora/vmlinuz
initrd /fedora/initrd.img


and ther reboot my sytem , and choose the Fedora8 ISO

but it show me the error .

Kernel /fedora/vmlinuz
Error 15:file not found
Go into command mode, type 'kernel /', then hit tab.
Grub will show you what what he sees on that root device.
 
Old 04-01-2009, 01:03 PM   #6
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
kernel command is not found in my system
any subsitute of this command
 
Old 04-01-2009, 06:01 PM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you want Grub to assist you then put a # in front of these two statements temporary and lengthen the time you can play with the Grub screen (marked red below).
Code:
default=0
timeout=1500
#splashimage=(hd0,2)/grub/splash.xpm.gz
#hiddenmen
When you see the screen press "c" key to drop into a Grub Prompt.

You then tell Grub the root partition and type part of the kernel name like this
Code:
root (hd0,2)
kernel /fedora/vmlin
do not press return but hit the tab key. This causes to go inside /fedora directory to find all files that matches "vmlin". You will be given a list of files. You then type the rest of the file name.

You can do the same for the initrd statement.

Type this line to give green light to fire up the Linux
Code:
boot
But like I said you need to tell the kernel where to find the root. Grub only load the kernel and the "root=" parameter must be present otherwise the kernel will not find the system files. You existing Fedora boots to "FirstVolGroup00/FirstLogVol00" which is the LVM in /dev/sda9.

Last edited by saikee; 04-01-2009 at 06:02 PM.
 
Old 04-02-2009, 02:50 PM   #8
MrUmunhum
Member
 
Registered: May 2006
Location: Mt Umunhum, CA, USA, Earth
Distribution: Debian/ Fedora/ Ubuntu/ Raspbian
Posts: 549

Rep: Reputation: 40
Unhappy kernel is a Grub command not a system command

Quote:
Originally Posted by Ashish Sood View Post
kernel command is not found in my system
any subsitute of this command
You are not listening.
  • Boot grub
  • Hit esc to get into grub console mode
  • enter 'c' for command mode
  • type 'root (hd0,2)'
  • type 'kernel ('
  • hit tab and a list of what grub sees will be returned.
  • now chose what you want, using the tab key to complete names
  • repeat for initrd
  • enter 'b' to boot with these parms

This may help you:
http://http://64.124.13.3/hacks/USB_...sing_GRUB.html
It is my 'lab notes' on using Grub that I put up to help others. If I don't write things down, I forget them. Very popular, many hits a per day.

I have done what you are trying to do with FC8 and FC10. It works well. Good luck.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
Now I have a scsi hard disk, two IDE hard disk, i want install linux on scsi hard dis tecpenguin Linux - Server 4 11-10-2007 06:44 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
I want to install linux from hard disk srinuallada Linux - Software 7 04-02-2002 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration