Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.