[buildd-tools-devel] Bug#688325: Bug#688325: Bug#688325: [schroot] I can't mount usb key with schroot

Roger Leigh rleigh at codelibre.net
Tue Jul 15 21:30:22 UTC 2014


On Sun, Sep 23, 2012 at 09:47:44AM +0200, Guy Roussin wrote:
> >> I can not mount a USB key under /media because
> >> they belong to root.
> >>
> >> How can i achieve this ?
> > 
> > The same way as you would on the host system, especially since the
> > files under /dev/ are bind mounted from the host.  This is not, I
> > think, something that schroot itself should cater for.  Tools like
> > pmount and more recent tools used by common desktop environments
> > for mounting removable media should work inside the chroot as well;
> > particuarly when using the "desktop" profile.  If there's anything
> > we can add to that profile to make desktop removable media
> > support work better, then we can certainly look at adding that.
> > 
> > 
> > Regards,
> > Roger
> > 
> Thank you Roger,
> But this is what i get with pmount (i use the desktop profile) :
> 
> guy at pcplat53:~$ pmount /dev/sdb1
> guy at pcplat53:~$ pumount /dev/sdb1
> guy at pcplat53:~$ schroot -c precise
> (precise)guy at pcplat53:~$ pmount /dev/sdb1
> Error: could not open fstab-type file: No such file or directory
> (precise)guy at pcplat53:~$
> 
> This is ok with the host but not with the schroot

Sorry for the long delay.  Did you ever find a solution to this problem?

Which file can't be opened?  (strace as root inside the chroot might
help.)

I suspect pmount needs something extra bind mounting into the chroot
to work, but I'm not sure what that would be or where it lives.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux    http://people.debian.org/~rleigh/
 `. `'   schroot and sbuild  http://alioth.debian.org/projects/buildd-tools
   `-    GPG Public Key      F33D 281D 470A B443 6756 147C 07B3 C8BC 4083 E800



More information about the Buildd-tools-devel mailing list