tmp mount error

santovito

Verified User
Joined
Nov 23, 2008
Messages
143
Hi at all,

I should mount the /tmp partition, but I've an error.

I type:

cd /dev
dd if=/dev/zero of=tmpMnt bs=1024 count=100000
100000+0 records in
100000+0 records out
102400000 bytes (102 MB) copied, 0,82051 seconds, 125 MB/s
mke2fs /dev/tmpMnt
mke2fs 1.39 (29-May-2006)
/dev/tmpMnt is not a block special device
Continue (y/n):y
cd /
cp -R /tmp /tmp_backup
mount -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp
Mount: you must specify the filesystem

I think the problem there is with the command "mke2fs /dev/tmpMnt"

Can I fix this problem? idea? :confused::confused:
 
Did you google the error message? You probably need the -t modifier to your mount command.

While your mount line works in at least the one of my systems I just checked, you may require this:
Code:
mount -t ext2 -o loop,noexec,nosuid,rw /dev/tmpMnt /tmp

Jeff
 
Back
Top