• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 302
  • Last Modified:

Linux will not start - probably a mounting problem.

I am newbie with Linux.

I did a terrible mistake and I hope it can be fixed easily without losing any data.

I installed FC5 and worked with it for few months.

I have the last kernel 2.6.18

I have an IDE HD (hdc1)

Few days ago I've installed a new SATA HD (I think marked as hds1).
I've created a new partition, a new logical volume and mount it. I set the mounting point to "/" ;(

The day after when I try to open the computer, the Linux boot halt at the middle with some errors "...FC5 cannot touch /var/lock/subsys/kudzu Read-only".

I tried to use the DVD in order to "upgrade" the OS. At some point I've got that its cannot find the "/" and I might have a problem with the stable file.

I am almost sure that I need to remove the new mounting point in order to make it work.

I used a live CD in order to get into hdc1.
I tried to change the ro to rw in the grub config file. nothing helped.

this is how my system looks like:

Disk /dev/hdc: 41.1 GB, 41174138880 bytes
255 heads, 63 sectors/track, 5005 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1          13      104391   83  Linux
/dev/hdc2              14        5005    40098240   8e  Linux LVM

root@slax:/mnt/hdc1# ls -lh
total 8.6M
-rw-r--r-- 1 root root 834K Sep 11 05:44 System.map-2.6.17-1.2187_FC5smp
-rw-r--r-- 1 root root 861K Oct 14 21:27 System.map-2.6.18-1.2200.fc5smp
-rw-r--r-- 1 root root  65K Sep 11 05:44 config-2.6.17-1.2187_FC5smp
-rw-r--r-- 1 root root  69K Oct 14 21:27 config-2.6.18-1.2200.fc5smp
drwxr-xr-x 2 root root 1.0K Oct 27 10:31 grub/
-rw-r--r-- 1 root root 1.7M Sep 28 03:28 initrd-2.6.17-1.2187_FC5smp.img
-rw-r--r-- 1 root root 1.7M Oct 19 01:36 initrd-2.6.18-1.2200.fc5smp.img
drwx------ 2 root root  12K Mar 23  2006 lost+found/
-rw-r--r-- 1 root root 1.8M Sep 11 05:44 vmlinuz-2.6.17-1.2187_FC5smp
-rw-r--r-- 1 root root 1.8M Oct 14 21:27 vmlinuz-2.6.18-1.2200.fc5smp

Can someone help me with that. I have no idea what to do.
Please write the required steps in detail.

Many thanks,
  • 3
1 Solution
shy_amarAuthor Commented:
BTW, you don't see the SATA HD because the I have a mother board chip that required kernel 2.6.18 to support it.
The live CD has an older kernel version.
In any case the OS was installed on the first HD (IDE)
Kerem ERSOYPresidentCommented:

From your fdisk output:

/dev/hdc1 is your boot  volume
and /dev/hdc2 is your LVM - Logical Volume Manager partition.

Things seems pretty normal here.

To mount your LVM partition please me sure that your livecd includes lvm2 modules:

modprobe dm-mod     (to load lvm modules into the memory  f they are not aready there. If this step fails go grab another  live distro with lvm support)
vgchange -ay
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00

This should bring up your settings

now go to your etc directory  (not the live CD distro your mounted root)
edit the mtab file to read :
/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0

for the root and reboot.

Kerem ERSOYPresidentCommented:
Anyway let me know what happens when you mount etc.
Kerem ERSOYPresidentCommented:
Your etc directory is found under /mnt/VolGroup00/LogVol00/etc and the contents of the mtab file should be similar to that:

/dev/mapper/VolGroup00-LogVol00 / ext3 rw 0 0
none /proc proc rw 0 0

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Build your data science skills into a career

Are you ready to take your data science career to the next step, or break into data science? With Springboard’s Data Science Career Track, you’ll master data science topics, have personalized career guidance, weekly calls with a data science expert, and a job guarantee.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now