Bad fstab for mount point /

Bad fstab for mount point /

Post by Francois Guimon » Sun, 31 Dec 1899 09:00:00



First I apllogise, I am a bad newbie...

My / was on hdc1
I wanted to ad a hdd1 to /usr/local

So I did fdisk (No problem)
Forget to run mkfs (Don't know yet if this is a problem)
mount  /dev/hdd1 /mnt/tmp
Copied my /usr/local to /mnt/tmp
(Still no problem)

Then I wanted to transfer my hdc and hdd to hda and hdc.
So I changed my fstab but forget linux.conf
I rebooted the machine and change the IDE connector.

Now I am stuck: On both IDE port I can't boot
On Primary IDE LILO can't mount root  fs "Kernel panic: VFS: unable to
mount root fs on 16:01"
On Secondary IDE I can get a little further: Swap partition can't be
mounted and also root partition dosen't exist but, I can enter the root
pwd "for maintenance"
That is great, I can see all my files!!!
The problem is that the file system is read only...

Is there any body that can tel me how to put the file system in RW?

(I have tried umount and mount, but it seems that we are not a this
point yet in the boot sequence...)

Thanks for the answer!

Francois Guimond

 
 
 

Bad fstab for mount point /

Post by Colin Wats » Sun, 31 Dec 1899 09:00:00




>First I apllogise, I am a bad newbie...

>My / was on hdc1
>I wanted to ad a hdd1 to /usr/local

>So I did fdisk (No problem)
>Forget to run mkfs (Don't know yet if this is a problem)

It almost certainly is, yes ...

Quote:>mount  /dev/hdd1 /mnt/tmp

I'm surprised that worked, mind you.

Quote:>Then I wanted to transfer my hdc and hdd to hda and hdc.
>So I changed my fstab but forget linux.conf

lilo.conf, you mean, probably.

Quote:>Now I am stuck: On both IDE port I can't boot
>On Primary IDE LILO can't mount root  fs "Kernel panic: VFS: unable to
>mount root fs on 16:01"
>On Secondary IDE I can get a little further: Swap partition can't be
>mounted and also root partition dosen't exist but, I can enter the root
>pwd "for maintenance"
>That is great, I can see all my files!!!
>The problem is that the file system is read only...

>Is there any body that can tel me how to put the file system in RW?

'mount -o remount,rw /'

(You can't umount the root partition, and mount will only work there
with the remount option.)

Your best bet is probably to tell the Linux kernel where your root
filesystem really is, though. If the entry for Linux in your lilo.conf
is 'linux', then typing 'linux root=/dev/hda1' (assuming you moved your
root filesystem to /dev/hda1?) should work well enough to let you get
things put back together.

--

Trinity College, Cambridge, and Computer Science       [riva.ucam.org]
"... and by God I *KNOW* what this network is for, and you can't have
 it." - Russ Allbery (http://www.eyrie.org/~eagle/writing/rant.html)

 
 
 

1. Bad mount point?????

Ans: 1)  You probably are trying to mount a device on a directory that
is not empty.  A mount point can be any directory, but it must be empty.

2) VFAT?  In linux?  If you installed some lesser-known operating system
by some fly-by-night firm outside of Seattle, you  get what you deserve.
But, even that system shouldn't be able to screw up your linux
filesystem.  LILO, yes, but not your linux partitions.

--


Department of Mathematics               http://www.lehigh.edu/~dlj0/dlj0.html
Lehigh University
14 E. Packer Avenue                     (610) 758-3759
Bethlehem, PA 18015-3174                (610) 828-3708

2. X configuration for WD90c33 chipset

3. Bad mount points after lucreate

4. Promise Fast Wide SCSI board supported under Linux

5. tunnel point to point vs physical point to point

6. Lone-Tar Errors ==> OSR5.0.2 fs errors?

7. mount: mount point /media/cdrom0 does not exist

8. how can I mount a raid array ?

9. mounting several partitions on the same mount point

10. mount doesn't recognize mount points

11. mount: dev fd0 not a mount point

12. mount gives error: mount point doesn't exist!

13. Mounting a directory which has a mount point under it.