[1252] in RedHat Linux List
Re: Weird mount problem!
daemon@ATHENA.MIT.EDU (Paul Anderson)
Sun Oct 27 08:58:52 1996
Date: Sun, 27 Oct 1996 09:11:53 -0500
From: Paul Anderson <andersop@agapesystems.com>
To: redhat-list@redhat.com
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Info junkie 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?
>
> [root@glink /home]# rpm -q mount
> mount-2.5k-1
> [root@glink /home]#
>
> cheers
> jamal
>
It is a matter of links. Create a directory like home1. Then make a
symbolic link from home to home1 (ln -s /home /home1). Then home1 can
be your mount point with a link to the files in home. The effectivly
extends your home partition. If you umount the drive you will see all
your files again.
Paul Anderson
--
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