LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 12:04 PM   #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, 10:56 AM   #2
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,626

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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, 06: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, 09:41 AM   #4
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: CentOS
Posts: 1,626

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
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, 01:12 AM   #5
jendeavor
LQ Newbie
 
Registered: Jun 2006
Posts: 5

Original Poster
Rep: Reputation: 0
"no_root_squash" Solved
 
  


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


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 08:42 PM
how to create a device node in sysfs? hash123 Linux - Kernel 0 08-11-2008 02:41 AM
device node created using mknod dissapear after reboot minike Slackware 2 12-13-2006 06:12 PM
I can`t create a device node in /dev gcasados Slackware 8 02-21-2005 06:17 AM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 06:08 AM


All times are GMT -5. The time now is 09:52 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration