Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I'm trying to create a block device file on my floppy drive using the following command:
/bin/mknod /mnt/floppy/dev/fd0 b 2 0
The error I get is as follows:
/bin/mknod: `/mnt/floppy/dev/fd0': Operation not permitted
dev was created earlier but I noticed that I could not modify the group and other permissions for this directory. I can create files in the directory but cannot modify their permissions. I thought I'd mention this problem in case it has any bearing on the mknod problem. Has this got something to do with the way I formatted /dev/fd0 using mke2fs?
mknod is used to create nodes in /dev so that the kernel can pass information into userspace. Why are you trying to create a device node on a floppy disk?
As for your problem with permissions in /dev, what distro are you using and are you using udev?
Turns out that all I needed to do was to reformat the disk and recreate the file system on the floppy. I'm working with a custom linux distro which uses a script to create dev/fd0 on its boot disk. It uses the linux-2.4.18 kernel.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.