Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to create /dev/sdc ?

1,091 views
Skip to first unread message

RS

unread,
Aug 8, 2003, 12:23:28 AM8/8/03
to
Hi, there,
I accidentally deleted /dev/sdc.
Would someone please tell me how to create it back.

Is it by using 'mknod'? What would be the MAJOR and MINOR
be? I think the type is 8.

Thanks in advance!
Roger
email: rs...@bigmailbox.net

V. Turner

unread,
Aug 8, 2003, 1:20:44 AM8/8/03
to
RS wrote:

> Hi, there,
> I accidentally deleted /dev/sdc.
> Would someone please tell me how to create it back.
>
> Is it by using 'mknod'? What would be the MAJOR and MINOR
> be? I think the type is 8.
>

Two ways:

1) cd /dev; ./MAKEDEV sdc

man MAKEDEV for more info. For instance "./MAKEDEV -S sdc", will show you
what it will do without actually doing it.

2) mknod -m 0660 /dev/sdc b 8 32
chown root.root /dev/sdc

(I actually got the above from running MAKEDEV with the -S option).


0 new messages