LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2006, 09:18 PM   #16
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49

Quote:
When I wrote
[root@localhost dev]# mount /dev/hda4
mount: can't find /dev/hda4 in /etc/fstab or /etc/mtab
[root@localhost dev]#
The problem with that is you didn't tell your system where to mount the partition, and since it didn't find instructions for it in /etc/fstab or /etc/fstab (because it isn't part or CentOS), so your system didn't know where to put it. You should create a directory to put it in. Try this (all as root)

Code:
mkdir /mnt/olddisk
mount /dev/hda4 /mnt/olddisk
That should put the contents of the partition in /mnt/olddisk, so look in /mnt/olddisk/boot and see the vmlinux and initrd.img files. If they aren't there, then close anything that is looking at the mounted partition, and issue the command
Code:
umount /dev/hda4
If you don't find the files in question on the /dev/hda4, then try it with /dev/hda3.

Peace,
JimBass
 
Old 02-10-2006, 09:18 PM   #17
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Original Poster
Rep: Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200
[root@localhost temp]# ls
config-2.6.11-1.1369_FC4 memtest86+-1.55.1
config-2.6.11-1.1369_FC4smp System.map-2.6.11-1.1369_FC4
grub System.map-2.6.11-1.1369_FC4smp
initrd-2.6.11-1.1369_FC4.img vmlinuz-2.6.11-1.1369_FC4
initrd-2.6.11-1.1369_FC4smp.img vmlinuz-2.6.11-1.1369_FC4smp
lost+found
 
Old 02-10-2006, 09:19 PM   #18
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Is this in response to me or JimBass? And do you have multiple processors?

Last edited by pljvaldez; 02-10-2006 at 09:20 PM.
 
Old 02-10-2006, 09:25 PM   #19
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Anyway, I need to head for home now, but it looks like you need this in your CentOS grub file:

Code:
title Fedora4
root (hd0,2)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img
If you have a multi processor system, you'll want to use the ones that say "smp" so just change the name of initrd and vmlinuz accordingly. Good luck and may the force be with you. I'll try to check back later tonight from home to see if you made it!
 
Old 02-10-2006, 09:26 PM   #20
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Original Poster
Rep: Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200
This is the response to pljvaldez.
I don't have multiple processors
I have modified grub.conf
Now, I'll try to boot fedora
 
Old 02-10-2006, 09:54 PM   #21
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Original Poster
Rep: Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200
thanks for your help pljvaldez, but it's still not booting

with
title Fedora Core4
root (hd0,2)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

I got
root (hd0,2)
Filesystem type is ext2fs, partition type 0x83
kernel /boot/vmlinuz.............blablablah
Error 15: File not found

with
title Fedora Core4
root (hd0,3)
kernel /boot/vmlinuz-2.6.11-1.1369_FC4 ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.11-1.1369_FC4.img

I got
root (hd0,3)
Filesystem type unknown, partition type 0x83
kernel /boot/...blahblahblah

Error 17: cannot mount selected partition


JimBass? Any idea?
 
Old 02-10-2006, 10:20 PM   #22
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,819
Blog Entries: 1

Original Poster
Rep: Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200Reputation: 1200
Fixed

I just copied the entry from fedora's grub.config

title Fedora Core (2.6.11-1.1369_FC4)
root (hd0,2)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.11-1.1369_FC4.img



Thanks for your help, guys
I've learnt a lot about partitions and grub today
 
Old 02-11-2006, 10:07 AM   #23
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
It is good that you found that, because we would have needed a Fedora guy to come and tell us that they are defaulting their installation to a LVM partition now. Logical Volume Manager is great if you have/want a ton of space or bring disks into and out of a system. I wouldn't have guessed that they put the entire root partition on a logical volume. This line
Code:
root=/dev/VolGroup00/LogVol00 rhgb quiet
tells us that your root partition is not a physical partition, IE /dev/hdaX, but space on a logical volume within a logical group. The ability to do that has been around for a while, I use a logical volume to make my home partition 500 GB across 2 sata disks. That is controlled by logical volume management, but I am a little surprised to to see the Fedora distro defaulting the installation into a LVM. I wouldn't have guessed they'd do that, it does make recovery of a screwed up boot much more difficult, if you don't know it was a LVM, as we didn't until you found your old grub config, menu.lst.

Peace,
JimBass
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc disappeared Fonk Linux - Software 7 11-18-2008 06:34 PM
/proc/partitions showing wrong partitions netstv Linux - General 1 07-10-2006 02:11 PM
Screensavers disappeared esage Linux - Newbie 4 01-21-2006 10:03 AM
Menu disappeared Ephracis Mandriva 3 07-11-2005 10:06 AM
Linux Partitions Disappeared!!! Chomper Linux - General 6 03-22-2005 05:25 PM


All times are GMT -5. The time now is 09:03 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration