[1278] in RedHat Linux List

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

Re: Weird mount problem!

daemon@ATHENA.MIT.EDU (Mike Sangrey)
Sun Oct 27 12:37:24 1996

To: redhat-list@redhat.com
In-reply-to: Your message of "Sun, 27 Oct 1996 09:00:43 EST."
             <Pine.LNX.3.91.961027085420.545A-100000@glink.glcom.com> 
Date: Sun, 27 Oct 1996 12:31:03 -0500
From: Mike Sangrey <mike@sojurn.lns.pa.us>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

> 
> 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.

What you did was place a nice clean piece of paper over your doctoral thesis.  And then said, "Gad Zooks Batman, where's my thesis?"

Anyway, I'll pipe down now; hope this helps the understanding.
-- 
  Mike Sangrey	<mike@sojurn.lns.pa.us>	(Home)
		<Mike.Sangrey@specmarkmet.com>(Work)
	"I've trademarked `William Della Croce, Jr.(tm)'.
		  Anyone using this name owes me $1,000,000."



--
  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