[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mounting a fs image from fstab?



>> I can create the image file and mount it as a loopback file using the
>> mount command with no trouble.  I have not found any documentation on
>> mounting it from fstab, however.  The man page for fstab makes no
>> mention of loopback files.  Does this have to be mounted manually?
> 
> Even if it can't be mounted in fstab (I'm not sure), couldn't you write a
> small script to mount the image and have it execute on boot?

Oh for Pete's sake.  Rather than wasting time talking about it
(and about what to do if you can't do it), wouldn't it be
simpler to just try it?

  # tail -1 /etc/fstab
  /root/ats-snapshot.hda1 /foobar ext3 loop 0 0

  # mount /foobar

  # mount
  [...]
  /root/ats-snapshot.hda1 on /foobar type ext3 (rw,loop=/dev/loop0)

That took at less than 30 seconds to do.

-- 
Grant Edwards                   grante             Yow!  HELLO, everybody,
                                  at               I'm a HUMAN!!
                               visi.com            



Reply to: