LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
LinkBack Search this Thread
Old 07-13-2004, 05:08 AM   #1
choobad
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
Unhappy mknod gives Operation Not Permitted error


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?

Thanks
 
Old 07-13-2004, 05:19 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 63
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?
 
Old 07-13-2004, 06:46 AM   #3
choobad
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks Andrew...

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Operation not permitted jakkals Linux - General 3 09-26-2005 07:30 PM
su - operation not permitted jrtayloriv Linux - Newbie 2 06-09-2005 09:27 PM
operation not permitted jamaso Slackware 2 05-08-2004 05:55 AM
Operation not permitted FrozenShadow23 Linux - Newbie 6 10-05-2003 05:13 PM
Type Read: Operation Not Permitted Error Snabber Linux - Newbie 5 06-05-2003 09:02 PM


All times are GMT -5. The time now is 02:05 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration