Warty won't boot - fstab error

C. Tresenriter ctres at qwest.net
Tue May 24 13:38:08 UTC 2005


On Tue, 2005-05-24 at 15:17 -0400, dave walker wrote:
> Curt Tresenriter wrote:
> 
> >On Tue, 2005-05-24 at 13:35 -0500, Raghu Vemuri wrote:
> >  
> >
> >>Curt Tresenriter wrote:
> >>
> >>    
> >>
> >>>I thought if I opened a terminal (after booting to the CD) and said
> >>>vi /etc/fstab what I would see is the fstab in ramdisk rather than the
> >>>hard disk..... no?
> >>> 
> >>>
> >>>      
> >>>
> >>yes.
> >>    
> >>
> >
> >In this case, don't I need to chroot to /dev/sda1 or /mnt/sda1 or
> >something... (I think?) and then mount it?
> >This is something I haven't done before, just read briefly about it and
> >I'm unsure of the syntax.
> >
> >
> >  
> >
> You would need to mound the drives before trying to do the ls -l
> 
> Hopefully the live CD created it in the fstab so doing:
> <code>
>     mount /mnt/sda1
> </code>
> should mount it.  If that does not work you would have to:
> <code>
>     mount -t ext3 /dev/sda1 /mnt/sda1
> </code>
> where ext3 is the filesystem on sda1.
> 
> After you mount the drives you can do the ls to find where the fstab you 
> are looking for is.
> 
> --
> Dave Walker



Looks like I'm gettin closer.. Thanks Dave

mount /mnt/sda1 tells me it can't find /mnt/sda1 in /etc/fstab
or /etc/mtab

This is the output of ls -l after "mount /mnt/sda2"

root at ubuntu:/home/warty # ls -l /mnt/sda2
total 152
drwxr-xr-x    2 root     root         4096 May 10 17:20 bin
drwxr-xr-x    3 root     root         4096 Apr 17 05:12 boot
lrwxrwxrwx    1 root     root           11 Feb  7 15:46 cdrom ->
media/cdrom
drwxr-xr-x   13 root     root        24576 Apr  8 20:12 dev
drwxr-xr-x  108 root     root         4096 May 23 16:58 etc
drwxr-xr-x    2 root     root         4096 Feb  7 15:46 home
drwxr-xr-x    2 root     root         4096 Feb  7 15:47 initrd
lrwxrwxrwx    1 root     root           29 Apr  8 20:12 initrd.img ->
boot/initrd.img-2.6.8.1-5-386
lrwxrwxrwx    1 root     root           29 Feb  7 15:49 initrd.img.old
-> boot/initrd.img-2.6.8.1-3-386
drwxr-xr-x   13 root     root         8192 Mar 17 15:11 lib
drwxr-xr-x    2 root     root        49152 Feb  7 15:46 lost+found
drwxr-xr-x    4 root     root         4096 Feb  7 15:46 media
drwxr-xr-x    2 root     root         4096 Sep 25  2004 mnt
drwxr-xr-x    2 root     root         4096 Feb  7 15:47 opt
drwxr-xr-x    2 root     root         4096 Sep 25  2004 proc
drwxr-xr-x    9 root     root         4096 May 11 14:09 root
drwxr-xr-x    2 root     root         8192 Mar 17 15:11 sbin
drwxr-xr-x    2 root     root         4096 Feb  7 15:47 srv
drwxr-xr-x    2 root     root         4096 Feb  7 15:46 swap
drwxr-xr-x    2 root     root         4096 Aug 19  2004 sys
drwxrwxrwt    6 root     root         4096 May 23 16:58 tmp
drwxr-xr-x   12 root     root         4096 Feb  7 15:48 usr
drwxr-xr-x   15 root     root         4096 Feb  7 16:14 var
lrwxrwxrwx    1 root     root           26 Apr  8 20:12 vmlinuz ->
boot/vmlinuz-2.6.8.1-5-386
lrwxrwxrwx    1 root     root           26 Feb  7 15:49 vmlinuz.old ->
boot/vmlinuz-2.6.8.1-3-386

When I cd to /etc and vi fstab I'm still seeing the same fstab I was
before... still missing a step I presume.





More information about the ubuntu-users mailing list