LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 07:58 PM   #1
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
partitions disappeared


Hallo
I used to run dual boot (xp/fedora core)
Yesterday I installed centos as the third operating system
Centos' grub took over booting, and I must have messed up
something with it, because I cannot boot fedora
I don't have any problem with booting centos and xp

Before the installation my hard disk looked like that:

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 5512 34033702+ f W95 Ext'd (LBA)
/dev/hda3 5513 5525 104422+ 83 Linux
/dev/hda4 5526 7296 14225557+ 8e Linux LVM
/dev/hda5 1276 3187 15358108+ b W95 FAT32
/dev/hda6 3188 5512 18675531 b W95 FAT32


at the moment it's:

[sycamorex@localhost ~]$ df -a
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda6 18381960 5400912 12047272 31% /
none 0 0 0 - /proc
none 0 0 0 - /sys
none 0 0 0 - /dev/pts
usbfs 0 0 0 - proc/bus/usb
none 189676 0 189676 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc

sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs


This is grub.conf


Quote:
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,5)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.9-22.0.2.EL)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-22.0.2.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-22.0.2.EL.img
title CentOS-4 x86_64 (2.6.9-22.EL)
root (hd0,5)
kernel /boot/vmlinuz-2.6.9-22.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-22.EL.img
title Other
rootnoverify (hd0,0)
chainloader +1
title Fedora Core4
rootnoverify (hd0,4)
chainloader +1
 
Old 02-10-2006, 08:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
What does fdisk -l show after the install? fstab and/or
df don't really tell us much about the drive...


Cheers,
Tink
 
Old 02-10-2006, 08:15 PM   #3
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
I don't get it

[sycamorex@localhost ~]$ /sbin/fdisk -l
[sycamorex@localhost ~]$
 
Old 02-10-2006, 08:16 PM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
My apologies (i wasn't root)

Disk /dev/hda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
/dev/hda2 1276 5512 34033702+ f W95 Ext'd (LBA)
/dev/hda3 5513 5525 104422+ 83 Linux
/dev/hda4 5526 7296 14225557+ 8e Linux LVM
/dev/hda5 1276 3187 15358108+ b W95 FAT32
/dev/hda6 3188 5512 18675531 83 Linux
 
Old 02-10-2006, 08:24 PM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
It looks to me like your Fedora entry needs to be either (hd0,2) or (hd0,3) depending on whether it is installed on /dev/hda3 Linux or /dev/hda4 Linux LVM. Grub starts counting at 0, so /dev/hda1 is (hd0,0)
 
Old 02-10-2006, 08:26 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Also, it just dawned on me that you may need to specify the kernel and initrd just like in CentOS grub listing because grub wasn't installed on the root partition, so chainloader +1 probably won't work.
 
Old 02-10-2006, 08:30 PM   #7
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
On the boot up, on the grub screen, when I choose Fedora,
the screen goes black and it goes back to the grub screen.
I remember that during installation of centos, grub found obviously
centos and other (winxp), and then i manually added
the fedora partition (I guess, that was the one) and when asked
about mounting point I chose '/'
When I opened then grub.conf, fedora was under hda3 so I changed
it to hda4 (because that should be the one - 14G)
I'll appreciate any help
thank you
 
Old 02-10-2006, 08:35 PM   #8
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Since it is on /dev/hda4, this is (hd0,3) to Grub.

Also, you may need to go into your fedora partition from CentOS (/dev/hda4) and look under boot for what kernel (vmlinuz-blahblahblah) and initrd (initrd-blahblahblah).

Your Fedora section should look something like this:
Code:
title Fedora4
root (hd0,3)
kernel /boot/vmlinuz-blahblahblah ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-blahblahblah.img
Only with the proper vmlinuz and initrd
 
Old 02-10-2006, 08:42 PM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
With (hd0,3) I get the error

Booting 'Fedora core 4)
rootnoverify (hd0,3)

Error 13: Invalid or unsupported executable format



I will check the kernel
thanks
 
Old 02-10-2006, 08:44 PM   #10
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
What exactly am I supposed to do to check the kernel?
 
Old 02-10-2006, 08:47 PM   #11
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Sorry. Boot into CentOS. Then mount /dev/hda4. Then go to the /boot directory (on /dev/hda4). Then write down the name of the vmlinuz-XXXXXXXXXXX file and the initrd-XXXXXXXXXXX.img file. Then make your grub entry look like this:

Code:
title Fedora4
root (hd0,3)
kernel /boot/vmlinuz-XXXXXXXXXXXX ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-XXXXXXXXXXXX.img
of course, replacing the XXXXX's with the right filename.
 
Old 02-10-2006, 08:52 PM   #12
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
When I wrote
[root@localhost dev]# mount /dev/hda4
mount: can't find /dev/hda4 in /etc/fstab or /etc/mtab
[root@localhost dev]#

sorry, I am a newbie
 
Old 02-10-2006, 08:54 PM   #13
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Can you post the contents of /etc/fstab for me?
 
Old 02-10-2006, 09:03 PM   #14
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Original Poster
Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
[root@localhost sycamorex]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0
/dev/hdc /media/cdrecorder auto pamconsole,fscontext=system_ubject_r:removable_t,exec,noauto,managed 0 0
 
Old 02-10-2006, 09:17 PM   #15
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
As root, do this:

mkdir /mnt/temp
mount -t ext3 /dev/hda3 /mnt/temp
cd /mnt/temp
ls
 
  


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