Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Apr 04, 2009 3:12 pm 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Generally, when I do my backups I ignore the /dev folder. Then, I usually populate /dev by using:
Code:
MAKEDEV generic
MAKEDEV std

However, this does not generate the /dev/xvda, /dev/xvdb, ....

Any idea how do this?


Last edited by saman007uk on Sat Apr 04, 2009 3:20 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Apr 04, 2009 3:18 pm 
Offline
Linode Staff
User avatar

Joined: Sat Jun 21, 2003 2:21 pm
Posts: 160
Location: Absecon, NJ
This is how I do it for distro images:

Code:
XEN_MAJOR=202
XEN_MINOR=0
for XEN_DRIVE in a b c d e f g h
do
    if [ ! -e xvd$XEN_DRIVE ]
        then mknod xvd$XEN_DRIVE b $XEN_MAJOR $XEN_MINOR
    fi
    let "XEN_MINOR = $XEN_MINOR + 16"
done
chown root:disk xvd*
chmod g+w xvd*


That creates them in `pwd` so you need to cd /dev first.

-James


Top
   
 Post subject:
PostPosted: Sat Apr 04, 2009 3:24 pm 
Offline
Senior Member
User avatar

Joined: Sat Oct 16, 2004 11:13 am
Posts: 176
Thanks.

Apparently if "Xenify distro" is enabled in the Linode Manager, this will be done when you boot :-)


Top
   
 Post subject:
PostPosted: Sat Apr 04, 2009 3:25 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
saman007uk wrote:
Apparently if "Xenify distro" is enabled in the Linode Manager, this will be done when you boot :-)

Last I knew "xenify" didn't create device nodes. Maybe it's udev doing that for you?

-Chris


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group