can not find grub.conf

Paul Howarth paul at city-fan.org
Fri May 6 14:46:11 UTC 2005


Charles Li wrote:
> --- Paul Howarth <paul at city-fan.org> wrote:
>>Charles Li wrote:
>>
>>
>>>Now I remember I see a message during bootup that
>>>saids can not mount /boot alread mounted
>>>
>>>[root at localhost ~]# mount /boot
>>>mount: LABEL=/boot duplicate - not mounted
>>
>>It looks like you have two partitions labelled /boot
>>
>>Can you post the output of:
>># vgdisplay -v
>># fdisk -l
>
> 
> Paul thanks for your help, here is the output:
> 
> [root at localhost ~]# vgdisplay -v
>     Finding all volume groups
>     Finding volume group "VolGroup00"

(snip)

>   --- Physical volumes ---
>   PV Name               /dev/hdb1
>   PV UUID               DI6Cnd-4ViW-3Bob-7it9-80fD-UdF1-xrbw2X
>   PV Status             allocatable
>   Total PE / Free PE    193 / 0
> 
>   PV Name               /dev/hda2
>   PV UUID               olZw0v-Zp28-RRXx-ru6O-MIcu-d3tx-o6cBJE
>   PV Status             allocatable
>   Total PE / Free PE    248 / 2
> 
> [root at localhost ~]# fdisk -l
> 
> Disk /dev/hda: 8455 MB, 8455200768 bytes
> 255 heads, 63 sectors/track, 1027 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id
>  System
> /dev/hda1   *           1          13      104391   83
>  Linux
> /dev/hda2              14        1027     8144955   8e
>  Linux LVM
> 
> Disk /dev/hdb: 6488 MB, 6488294400 bytes
> 255 heads, 63 sectors/track, 788 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id
>  System
> /dev/hdb1   *           1         788     6329578+  8e
>  Linux LVM
> [root at localhost ~]#

Do you have any other disks in this system apart from hda and hdb? I'd 
say /dev/hda1 is almost certainly the correct /boot partition, but I 
don't know where the duplicate is.

You should be able to fix things as follows:

1. edit /etc/fstab and change "LABEL=/boot" to "/dev/hda1"
2. fix up the contents of /boot as follows:
# mv /boot /boot.current
# mkdir /boot
# mount /boot
# mv /boot.current/* /boot
# rmdir /boot.current

If you get an error message at any point, stop and post details of what 
happened.

Paul.




More information about the fedora-list mailing list