[1595] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Weird mount problem!

daemon@ATHENA.MIT.EDU (Info junkie)
Tue Oct 29 07:49:01 1996

Date: Tue, 29 Oct 1996 07:57:46 -0500 (EST)
From: Info junkie <junkie@glcom.com>
To: redhat-list@redhat.com
In-Reply-To: <199610271731.MAA09705@sojurn.lns.pa.us>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com



Thanks to both you and paul for the response; but this doesnt solve my 
problem

 On Sun, 27 Oct 1996, Mike Sangrey wrote:

> > 
> > I have a weird problem. Here are my mounts (as read from fstab). 
> > 
> > ----
> > #
> > # /etc/fstab
> > #
> > # You should be using fstool (control-panel) to edit this!
> > #
> > # <device>    <mountpoint>   <filesystemtype> <options> <dump> <fsckorder>
> > 
> > /dev/hda2                 /                         ext2   defaults 1 1
> > /dev/hdc1                 /a                        ext2   defaults 1 1
> > /dev/hda1                 /dosc                     msdos  defaults 0 0
> > /dev/hdb                  /mnt/cdrom                iso9660 ro 0 0
> > /dev/fd0                  /mnt/floppy               ext2   defaults,noauto 0 0
> > /dev/hda3                 none                      ext2   defaults 0 0
> > /proc                     /proc                     proc   defaults
> > /dev/hda4                 none                      swap   sw
> > /dev/hdc2                 none                      swap   sw
> > ----------
> > 
> > 
> > I have never had to use /dev/hda3 so it was normally just sitting there.
> > 
> > Now i need to use it, so i thought pas problem; i'll just mount it
> > 
> > ----
> > [root@glink /root]# mount /dev/hda3 -t ext2 /home
> > [root@glink /root]# cd /home
> > [root@glink /home]# ls
> > lost+found
> > [root@glink /home]# 
> > -----
> > 
> > And now /home/* files are gone! What is going on?
> > 
> 
> Actually, they're not gone.  They're just...sorta...underneath.  
>You need to create another directory, "/home1", maybe.  That will be
> what's called a "mount point".  See your /etc/fstab for examples of 
>"mount points."  Then you can mount "/dev/hda3 on /home1.
> 
> By way of explanation: there exists on Suns a _transparent_ filesystem.  
>Picture this:  you mount your CDROM on the mount point "/mnt/cdrom".  
> You then mount /dev/hda3 as a transparent filesystem on top of 
> "/mnt/cdrom".  A transparent filesystem differs from a regular 
>filesystem in that the underlying filesystem "shines through", much like 
>a regular printed page would "shine through" an acetate sheet laid on 
>top.  What is neat about this, is you can then change files that are on 
>that CDROM (or at least the changes appear to "hit" the CDROM).  
>However, the changed files get written to /dev/hda3.  It has real world 
>application to Revision Control Systems where revisions are mapped as 
>layers on top of the underlying version. > 

[The above quoting here for clarity]

Here we go:

[root@glink /]# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda2             991000  851669    88125     91%   /
/dev/hdc1             991000  501679   438117     53%   /a
/dev/hda1             354592  226224   128368     64%   /dosc

[root@glink /]# ls -l
.
.
drwxr-xr-x  22 root     root         1024 Oct 29 07:48 home
drwxr-xr-x   2 root     root         1024 Oct 29 07:38 home1
.
.

note home1 created via symbolic link to home.

mount /dev/hda3 -t ext2 /home1
[root@glink /]# mount -t ext2 /dev/hda3 /home1
[root@glink /]# df
Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda2             991000  851669    88125     91%   /
/dev/hdc1             991000  501679   438117     53%   /a
/dev/hda1             354592  226224   128368     64%   /dosc
/dev/hda3             634239      13   601466      0%   /home1
[root@glink /]# find /home1
/home1
/home1/lost+found

note that home1  has exactly the same problem as home when mounted
onto hda3 which is on the same disk.
My plan was to offload that 91% full partition (/dev/hda2) 
by moving the /home to /dev/hda3

Maybe i am not seeing what you are pointing out. 
Another FAQ question?

cheers
jamal


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post