LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2008, 11:32 AM   #1
PatM
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Rep: Reputation: 15
Delete or modify /dev nodes?


I'm working on Debian SID x86 and cross building for an arm system. I have a rootfs for arm in a directory on the host system and I want to modify the /dev contents a bit. For one thing, mmcblk0 nodes have the wrong major device number (254 instead of 179).I've been trying to figure out how to change that number but can't seem to figure out how.

Is there something I can use to change the major/minor numbers or do I have to delete the node and try again? If it has to be deleted, how can I do that safely? I have visions of deleting the myarmroot/dev/hda and wiping out my x86 HD contents!

Thanks!
 
Old 04-19-2008, 12:15 PM   #2
ararus
Member
 
Registered: Mar 2008
Location: UK
Distribution: Slackware
Posts: 56

Rep: Reputation: 15
No, you can't modify the major/minor numbers, you need to delete it and remake it. Just use rm. rm acts on the directory entry, not the contents of the "file".
 
Old 04-19-2008, 01:55 PM   #3
PatM
LQ Newbie
 
Registered: Mar 2008
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by ararus View Post
No, you can't modify the major/minor numbers, you need to delete it and remake it. Just use rm. rm acts on the directory entry, not the contents of the "file".
Thanks!

Early on I was messing with a chroot to run sid from etch that used bind for devices. When I was done I just did a sudo rm -R /sid-chroot and wiped out half my drives! I've since found a different tutorial that doesn't use bind but I've got a phobia about deleting things that probably won't go away for years!
 
  


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
Static /dev nodes for USB drives - Solution Ruler2112 Linux - General 3 04-25-2007 11:32 AM
anybody still using static dev nodes? garba Linux - General 7 09-08-2005 08:21 PM
missing /dev/i2c nodes puremourning Linux - Software 0 02-23-2005 10:10 PM
C program problem on delete duplicated nodes in linked list ! antony_csf Programming 2 10-28-2004 11:42 AM
missing nodes in /dev with 2.6.5 d3c3it Debian 2 04-18-2004 03:27 PM


All times are GMT -5. The time now is 06:51 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration