|
Home > Archive > Unix questions > March 2004 > mount /dev/null /mnt
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
mount /dev/null /mnt
|
|
| Georgios S. 2004-03-24, 6:34 am |
| Hello, iīm running am OpenBSD 3.2 maschine and i would like to mount
the /dev/null device on /mnt. So i can share the /mnt folder in the
smb.conf (Samba).
Unfortunately that dosnīt work.
Could somebody tell me if this is possible at all?
Greadings,
Georgios S.
| |
| Arto Viitanen 2004-03-24, 7:35 am |
| >>>>> "Georgios" == Georgios S <astatos@gmx.at> writes:
Georgios> Hello, iīm running am OpenBSD 3.2 maschine and i would like to
Georgios> mount the /dev/null device on /mnt. So i can share the /mnt folder
Georgios> in the smb.conf (Samba).
Georgios> Unfortunately that dosnīt work. Could somebody tell me if this is
Georgios> possible at all?
To my knowledge, you can only mount filesystems, or actually block devices
that have filesystems on them. /dev/null is a character device, so it seems
impossible. Some OSs have loop devices, that let you mount normal files THAT
HAVE FILESYSTEM, but I don't know how they work. I tried on Linux with ext2
(Linux' default filesystem) and /dev/null. I got
# mount /dev/null /mnt -t ext2 -o loop
ioctl: LOOP_SET_FD: Invalid argument
I guess the problem is, each filesystem has some table of content, which
cannot fit in an empty file.
--
Arto V. Viitanen av@cs.uta.fi
University of Tampere, Department of Computer Sciences
Tampere, Finland http://www.cs.uta.fi/~av/
| |
| Birger Blixt 2004-03-24, 7:35 am |
| On 2004-03-24 11:48, Georgios S. wrote:
> Hello, iīm running am OpenBSD 3.2 maschine and i would like to mount
> the /dev/null device on /mnt. So i can share the /mnt folder in the
> smb.conf (Samba).
>
> Unfortunately that dosnīt work.
> Could somebody tell me if this is possible at all?
>
> Greadings,
> Georgios S.
/dev/null is a character device, and has no size.
If you will share nothing, then don't share.
/bb
| |
| Georgios S. 2004-03-25, 3:35 am |
| Thank you for your time and answers.
The reason why i would share the null device is that i will connect
from the Windows-Client to a biiiiig trash can ;o)
I think it would be funny when the user copy something in the share,
but in effect he erase that data!
best regards
Georgios S.
| |
| Alan Connor 2004-03-25, 4:42 am |
|
On 25 Mar 2004 00:39:15 -0800, Georgios S. <astatos@gmx.at> wrote:
>
>
> Thank you for your time and answers.
> The reason why i would share the null device is that i will connect
> from the Windows-Client to a biiiiig trash can ;o)
> I think it would be funny when the user copy something in the share,
> but in effect he erase that data!
>
> best regards
>
> Georgios S.
Got to be several ways to accomplish what you want. Be more specific....
AC
| |
| Georgios S. 2004-03-26, 11:46 am |
| Alan Connor wrote:
> Got to be several ways to accomplish what you want. Be more specific....
Thank you Alan, but i think that wouldnīt be necessary cause of the
answer from Birger Blix:
***********
/dev/null is a character device, and has no size.
If you will share nothing, then don't share
***********
But ok why not, i will mount the null device to a folder like
/mnt/null and following share that folder in the smb.conf so the
windows network clients can connect to that shared folder.
The user copy something in that folder but in effect he erase it ;o)
Georgios S.
| |
| Bill Marcum 2004-03-26, 11:47 am |
| On 26 Mar 2004 00:27:35 -0800, Georgios S.
<astatos@gmx.at> wrote:
> Alan Connor wrote:
>
> Thank you Alan, but i think that wouldnīt be necessary cause of the
> answer from Birger Blix:
> ***********
> /dev/null is a character device, and has no size.
> If you will share nothing, then don't share
> ***********
>
> But ok why not, i will mount the null device to a folder like
> /mnt/null and following share that folder in the smb.conf so the
> windows network clients can connect to that shared folder.
> The user copy something in that folder but in effect he erase it ;o)
>
But Windows has a null device! No need to use a "null server".
--
Incrsease your earoning poswer and gaerner profwessional resspect.
Get the Un1iversity Dewgree you have already earned.
[from the prestigious, non-accredited university of Spam!]
|
|
|
|
|