> dwarf@dwarf:~$ mkdir ./image > dwarf@dwarf:~$ dd if=/dev/zero of=./pkg.img bs=1024 count=100 > 100+0 records in > 100+0 records out > dwarf@dwarf:~$ losetup /dev/loop6 ./pkg.img > bash: losetup: command not found Try /sbin/losetup > dwarf@dwarf:~$ su > Password: > dwarf:/home/dwarf# losetup /dev/loop6 ./pkg.img > dwarf:/home/dwarf# exit > exit > dwarf@dwarf:~$ mke2fs ./pkg.img > bash: mke2fs: command not found Try /sbin/mke2fs > dwarf@dwarf:~$ su > Password: > dwarf:/home/dwarf# mke2fs ./pkg.img > mke2fs 1.19, 13-Jul-2000 for EXT2 FS 0.5b, 95/08/09 > ./pkg.img is not a block special device. > Proceed anyway? (y,n) > > And works. > > Looks like you were working as root... /sbin is not in the default user path. It does not mean a normal user cannot run those commands, only that they are system utilities. -Neal
Attachment:
pgpVzEcAOwEwn.pgp
Description: PGP signature