Re: two /home directories?
On Tuesday 23 July 2002 19:35, alex wrote:
> ----- Original Message -----
> From: "Colin Watson" <cjwatson@debian.org>
> To: <debian-user@lists.debian.org>
> Sent: Tuesday, July 23, 2002 12:46 PM
> Subject: Re: two /home directories?
>
> > On Tue, Jul 23, 2002 at 11:01:34AM -0400, alex wrote:
> > > I just finished a fresh install of Debian with / on hdb7 and a
> > > /home partition on hda3. mtab verifies that /home is on hda3.
> > >
> > > How come there's also a /home still in the directory root /?
> >
> > That'd be the mount point. You need the directory there in order to
> > mount something on it.
> >
> > > It doesn't appear in mtab.
> >
> > mtab only lists mount points, not directories.
> >
> > > If mtab recognizes that /home is on hda3, why does the command
> > > cd /home bring up the other /home directory, the one under /
> > > instead of the one under hda3?
> >
> > /etc/mtab isn't always kept up to date in certain situations, such
> > as
>
> a
>
> > read-only root filesystem. Try /proc/mounts. You'll probably have
> > to 'mount /home' or 'mount -t ext2 /dev/hda3 /home', but it should
> > be possible to fix things such that this is done automatically.
> >
> > What's in /etc/fstab?
>
> Here's my /etc/fstab:
>
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> /dev/hdb7 / ext2 defaults,errors=remount-ro 0 1
> /dev/hda2 none swap sw 0 0
> proc /proc proc defaults 0 0
> /dev/fd0 /floppy auto defaults,user,noauto 0 0
> /dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
> /dev/hda3 /home ext2 rw 0 2
>
> What does 'errors=remount-ro 0 1' mean? Is there something
> wrong in /dev/hdb7?
That's OK. It just defines the behaviour in case af an error, in this
case the file system is mounted readonly if an error occurs. The first
number (0) says that the drive should never be dumped and the second
one (1) has to do with the order in which mounts should be checked. For
further info, you should read the fstab manpage.
--
Embedded Linux -- True multitasking!
TWO TOASTS AT THE SAME TIME!
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: