Home > Uncategorized > creating a disk node

creating a disk node

To create a node that corresponds to a disk in /dev, the following can be used.

mknod -m 660 sdb 8 16
mknod -m 660 sdb1 8 17
chgrp disk sdb sdb1

I’m not 100% sure that the chgrp command is actually necessary, but the above sequence “worked for me”(tm) for creating disk nodes for my second SATA disk (and USB) that mysteriously disappeared from my system.

Update: 2009 JUL 10
The above commands have been tested on Slackware.12.2, although during installation the following slightly different form was needed:

mknod -m 660 sdb b 8 16
mknod -m 660 sdb1 b 8 17
chgrp disk sdb sdb1

Listing /proc/partition helper identifying major,minor numbers

Advertisements
Categories: Uncategorized Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: