LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-31-2012, 11:04 AM   #1
jendeavor
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Rep: Reputation: 0
How do we create Device Node Directory using Mknod command


Hi Team,
I wanted to create a device node for a character device.
In the following manner
"/dev/gdl/0" to run an application.

# cat /proc/devices | grep gdl
244 gdl_track
245 gdl
# mknod /dev/gdl/0 c 245 0
mknod: /dev/gdl/0: No such file or directory

Please let me know how we can create a device directory and then a node.

Thanks,
John
 
Old 11-01-2012, 09:56 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
The mknod command does not create directories. You need to create directory /dev/gdl first with mkdir, then create the character device node.
 
Old 11-02-2012, 05:42 AM   #3
jendeavor
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
Mknod on NFS environment fails

Hello All ,
I have mounted the root FS through NFS .
And when i try to create a root on this environment i am getting "Permission Denied" error.
Can you please let me know how we can fix this issue.
Thanks,
John
 
Old 11-02-2012, 08:41 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
By default, UID/GID 0 gets mapped to an anonymous uid/gid. If you have a root file system mounted through NFS, the server needs to have set the "no_root_squash" option for this filesystem in /etc/exports.
 
Old 11-05-2012, 12:12 AM   #5
jendeavor
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
"no_root_squash" Solved
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how can we dynamically create the device node for character driver. Inba Linux - Kernel 3 08-30-2011 07:42 PM
how to create a device node in sysfs? hash123 Linux - Kernel 0 08-11-2008 01:41 AM
device node created using mknod dissapear after reboot minike Slackware 2 12-13-2006 05:12 PM
I can`t create a device node in /dev gcasados Slackware 8 02-21-2005 05:17 AM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 05:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration