Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a file system in Ubuntu with the command:

sudo debootstrap --foreign --no-check-gpg --include=ca-certificates --arch=armhf testing rootfs http://debian.raspbian.com/debian

but it got the following error:

/usr/sbin/debootstrap: 1294: /usr/sbin/debootstrap: cannot create /home/.../rootfs/test-dev-null: Permission denied
E: Cannot install into target '/home/.../rootfs' mounted with noexec or nodev

can anyone help me here? Thanks!

share|improve this question
    
What are the permissions on rootfs? – terdon Jul 15 '13 at 13:33

Find out which filesystem the path /home/.../rootfs resides in (might be a dedicated partition or an LVM, you don't give secfifics), and, as root (or using sudo) remount it with exec and dev options.

# mount -o remount,exec,dev /home

Here, /home is an example that assumes a separated partition or dedicated logical volume.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .