create device

C M Reinehr cmr at amsent.com
Wed Jul 27 07:07:58 PDT 2011


On Tue 26 July 2011 06:43:04 pm Tony Alfrey wrote:
> Thanks.  I actually thought I might have seen that somewhere but it
> didn't click when I was fussing with this.  I was just terrified that I
> couldn't mount the disk by what seemed like conventional means.
> 
> Lonni J Friedman wrote:
> > Fedora (and all recent Linux distros) switched to using SCSI emulation
> > for all hard disks.  the /dev/hdX nomenclature has been deprecated for
> > quite some time.
> > 
> > On Tue, Jul 26, 2011 at 2:19 PM, Tony Alfrey <tonyalfrey at earthlink.net> 
wrote:
> >> Tony Alfrey wrote:
> >>> Hello;
> >>> 
> >>> Maybe there are Fedora experts here.
> >>> 
> >>> System:
> >>> 
> >>> Athlon
> >>> Windows on IDE drive
> >>> SuSE 9.1 on SATA sda
> >>> Fedora 10 on SATA sdb
> >>> Silicon Image controller for the SATA drives.
> >>> 
> >>> 
> >>> Recently upgraded an old Fedora 6 installation with the Fedora 10.
> >>> 
> >>> Now I want to be able to mount the IDE drive on the Fedora 10.
> >>> I can do this easily on the SuSE 9.1, but for some reason, there is no
> >>> hda1 in /dev for the IDE drive. Â I'm assuming that I need to make a
> >>> block device. Â There is a script /dev/MAKEDEV on Fedora 10 but it
> >>> wants various parameters for the drive that I do not know about. Â How
> >>> do I go about finding the information needed to make this happen, or
> >>> is there some automated way to make the drive be visible. Â This
> >>> Fedora 10 installation looks /way/ different than the Fedora 6 and
> >>> frankly, the thing baffles me.
> >>> 
> >>> Thanks
> >> 
> >> I also found on a KDE manpage that I should use mknod like this
> >> 
> >> mknod -m 660 /dev/hda b 3 0
> >> mknod -m 660 /dev/hda1 b 3 1
> >> chown root:disk /dev/hd*
> >> 
> >> I suppose that the chown makes root the owner and disk the group for all
> >> of the partitions (just one) in hda.
> >> 
> >> And there is also a directory /dev/disk/by-id which seems to have links
> >> from block devices that appear to be the drives to various partitions
> >> on the SCSI drives. Â I think one is the drive I want, but it is linked
> >> to sdc, which I don't have (only two SCSI drives). Â I assume Fedora 10
> >> did this when I installed it.
> >> 
> >> Any help would be appreciated.

Tony,

I imagine that you are using udev to manage all of your device entries. IIANM 
all of the modern distributions have switched to udev over the past several 
years. Instead of using MAKEDEV to create new /dev entries you edit rules in 
/etc/udev. I think MAKEDEV still will work, but changes will be lost after the 
first reboot.

Cheers!

cmr
-- 
Debian 'Lenny' - Registered Linux User #241964
--------
"More laws, less justice." -- Marcus Tullius Ciceroca, 42 BC




More information about the Linux-users mailing list