ktb wrote:
> 
> Kent West wrote:
> >
> > ktb wrote:
> >
> > > Kent West wrote:
> > > >
> > > > ktb wrote:
> > > > >
> > > > > I've recently installed Slink and Redhat on the same HD.  I've been
> > > > > mounting back and forth between the two and have noticed that I can't
> > > > > access /home/kent.  I 'cd' to /home but when I 'ls' it, it shows an
> > > > > empty directory.  /usr is also shown to be empty.  This is clearly not
> > > > > the case.  I've been mounting Redhat with the following line in
> > > > > /etc/fstab,
> > > > >
> > > > > /dev/hdb1       /mnt/rh     ext2   noauto,rw,nouser 0 0
> > > > >
> > > > > I've also tried,
> > > > >
> > > > > mount -a -t ext2 /dev/hdb1 /mnt/rh
> > > > >
> > > > > after looking at the 'mount' man page and that didn't change anything.
> > > > > Does anyone know what I'm doing wrong?
> > > > > Thanks,
> > > > > kent
> > > >
> > > > I once ran into a similar problem when I was trying to install from a
> > > > Win95 partition, and then after having a working system deleting the
> > > > Win95 partition and reclaiming it as my / partition. During the moving
> > > > of the files, I had to do some fancy footwork in
> > > > mounting/moving/unmounting, and a few times I'd wind up with a mounted
> > > > directory that was empty even though I "knew" it had files in it. A bit
> > > > more mounting/umounting and soon the files showed up again. At the time
> > > > I was able to figure out what was happening, but I've forgotten now. I
> > > > only mention this in the hope that it'll click in the clue that you need
> > > > in order to figure out what's happening.
> > >
> > > I have found I can mount Redhat's /home/kent directory directly with the
> > > following line in /etc/fstab,
> > >
> > > /dev/hdb6       /mnt/redhat     ext2   noauto,rw,nouser 0 0
> > >
> > > I just don't understand why it doesn't show up in the directory tree
> > > when I mount the '/' partition.  Muttering to myself...
> > > kent
> > >
> >
> > I suspect that when you're mounting /, you don't have a separate partition 
> > for /mnt,
> > and I believe /mnt is part of the default directory structure. Therefore 
> > it's getting
> > "mounted" as part of /, and is therefore clobbering your /mnt/redhat mount. 
> > It's hard
> > to say without having a better idea of your entire partitioning structure.
> >
> > You might try creating a new mount point instead of /mnt/redhat, say 
> > something like
> > /redmnt/redhat, and see if that has any effect.
> 
> I had tried something like that and did again but still can't see
> /home/kent.  Here is how my disk is partitioned.  Don't laugh too hard.
> This is my first install with two os's on one drive.  I was winging it a
> little:)
> 
> Redhat
> hdb1 /
> hdb5 /usr
> hdb6 /home
> hdb7 /usr/local
> hdb8 /var
> hdb9 swap
> 
> Slink
> hdb3  /
> hdb13 /usr
> hdb12 /usr/local
> hdb11 /home
> hdb10 /var
> 
> Thanks,
> kent
> 

I believe /mnt is a subdirectory of the / partition, so when you're
running Slink, /mnt is mounted on /dev/hdb3; therefore it doesn't "see"
anything on /hdb6, because /hdb6 hasn't been mounted anywhere. When you
mount /hdb6 as /mnt/redhat, it becomes "visible". 

If you wanted, you could create a symbolic link to /mnt/redhat/home/ktb
to /home/ktb/redhat, then all your home files would be "in" the
(more-or-less) same place.

Reply via email to