Missing /dev entries on SCSI drive

Dan Nelson dnelson at allantgroup.com
Sun Jan 13 19:37:12 PST 2008


In the last episode (Jan 13), Oscar Delay said:
> I've a disk partition on an old system which I cannot mount  because
> the device entry under /dev is missing. This is a mostly unused
> machine that hasn't been backed up in a while but I'd like to recover
> the partition if possible. The SCSI adaptor is an Adaptec 2940U2W,
> the only device entries in /dev related to the drive are da0 and
> da0s1.
> 
> The major,minor device numbers are 0,93 for da0 and 0,94 for da0s1.
> What would my mknod arguments be for da0s1d. It's a 6.1 release box.

6.x uses devfs and GEOM, which means that device nodes are
automatically created based on the existence of partition and
disklalbel data on disk.  Minor numbers are allocated dynamically every
time disks are probed, so manually creating a devoce node with mknod
would be useless.  If there is a da0s1 but no da0s1d, then the
disklabel header on da0s1 must be damaged or missing.  If you remember
the layout, you can run disklabel and recreate it.  Another option is
to use the sysutils/scan_ffs or sysutils/ffs2recov ports to determine
the original disklabel settings.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-questions mailing list