LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 10-25-2006, 04:40 PM   #1
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
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.

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

Many thanks,
Shay
 
Old 10-26-2006, 01:39 AM   #2
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Just try it out with a live cd and edit your fstab. This might help you.

--
Prasanta
 
Old 10-26-2006, 02:31 AM   #3
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I used the installation DVD in order to get to rescue mode.
I could not find the fstab file at /etc/fstab

Last edited by ShayA; 10-26-2006 at 02:37 AM.
 
Old 10-26-2006, 03:03 AM   #4
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Mount the partition where you have your linux installed. chroot to the partition and then edit the fstab.

--
Prasanta
 
Old 10-26-2006, 03:24 AM   #5
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by prasanta
Mount the partition where you have your linux installed. chroot to the partition and then edit the fstab.

--
Prasanta
Can you please guide me through the steps.
I am newbie with Linux
 
Old 10-26-2006, 04:18 AM   #6
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
After you have booted with the help of the live, open a terminal and go to the root prompt. Do a fdisk -l, which will list all the partitions. Mount the partitions using the mount command. chroot to the patition where you have your / partition. As an example,

Code:
root@foobar:~$ fdisk -l

Disk /dev/hda: 255 heads, 63 sectors, 4870 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1      4839  38869236   83  Linux
/dev/hda2          4840      4870    249007+   5  Extended
/dev/hda5          4840      4870    248976   82  Linux swap

root@foobar:~# mkdir /tmp/hda1
root@foobar:~# mount -t ext3 /dev/hda1 /tmp/hda1
root@foobar:~# cd /tmp/hda1
root@foobar:~# chroot .
root@tty[/]# nano etc/fstab
I hope that helps you.

--
Prasanta
 
Old 10-26-2006, 04:24 PM   #7
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I followed your instructions.
However, when I type chroot I get
Quote:
cannot run command '/bin/bash':no such file or directory.
What I am doing wrong?

Last edited by ShayA; 10-26-2006 at 04:25 PM.
 
Old 10-27-2006, 03:07 AM   #8
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Anyone?
Please.....
 
Old 10-27-2006, 03:14 AM   #9
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
copy the output of your fdisk -l here so we can see what you have got

then if you can see /etc/fstab when you have mounted the drive copy the output of that to here

(use cat /etc/fstab to view the contents
 
Old 10-27-2006, 03:31 AM   #10
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
This is what I get:
Code:
 
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:~#
root@slax:~#
Under hdc1 I dont see the fstab.
I see the grub folder.
 
Old 10-27-2006, 03:35 AM   #11
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
mount hdc1 and post a ls -lh of /
 
Old 10-27-2006, 03:41 AM   #12
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
This is what I get:
Code:
root@slax:/mnt/hdc1# ls
System.map-2.6.17-1.2187_FC5smp  grub/                            vmlinuz-2.6.17-1.2187_FC5smp
System.map-2.6.18-1.2200.fc5smp  initrd-2.6.17-1.2187_FC5smp.img  vmlinuz-2.6.18-1.2200.fc5smp
config-2.6.17-1.2187_FC5smp      initrd-2.6.18-1.2200.fc5smp.img
config-2.6.18-1.2200.fc5smp      lost+found/
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

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)
 
Old 10-27-2006, 06:44 AM   #13
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
Still looking for your help.
Pleas....
 
Old 10-27-2006, 08:28 AM   #14
dasy2k1
Member
 
Registered: Oct 2005
Location: 127.0.0.1
Distribution: Manjaro
Posts: 963

Rep: Reputation: 36
how many sub partitions have you got in the LVM partition /dev/hdc2?
 
Old 10-27-2006, 08:35 AM   #15
ShayA
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
I guess some...
How can I see that.
The hdc2 is not mount (I dont know how to mount LVM)
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
windows to linux mounting problem suhee Linux - Software 1 12-20-2005 10:37 PM
xinit fails just after Xserver start up, scsi-ide problem while mounting cdrw askjha Red Hat 0 06-03-2004 11:25 AM
xinit fails just after Xserver start up, scsi-ide problem while mounting cdrw askjha Red Hat 0 06-03-2004 09:54 AM
Linux 2.6 vfat mounting problem thorwil Linux - General 6 12-23-2003 06:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:05 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