Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2000 11:49:59 +0200 (CEST)
From:      Udo Erdelhoff <ue@nathan.ruhr.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   conf/19849: MAKEDEV still defaults to da0X instead of da0s1X
Message-ID:  <200007110949.LAA16572@nathan.ruhr.de>

next in thread | raw e-mail | index | archive | help

>Number:         19849
>Category:       conf
>Synopsis:       MAKEDEV still defaults to da0X instead of da0s1X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 11 03:00:02 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Udo Erdelhoff
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:

src/etc/MAKEDEV versions 1.260 (HEAD), 1.243.2.7 (RELENG_4)

>Description:

"Dangerously dedicated" disks have been deprecated for a long time. As a
result, most installations of FreeBSD 4.X (or -current, for that matter)
will use slices. Sysinstall automatically creates the necessary devices
(e.g. /dev/da0s1[a-h]) for the user.

On the other hand, MAKEDEV {da0,std,all,fixit) will only create da0[a-h]
and da0s[1-4]. This can cause problems if the user is forced to swap (or
remove) disks. The missing devices on the fixit floppy are especially
annoying.

The problem also exists for ad and other disk devices.

MAKEDEV should create the neccessary devices for filesystem on the first
slice of the disk in addition to the devices for the filesystems on a
"dangerously dedicated" disk.

>How-To-Repeat:

as root:
cd /dev
sh MAKEDEV da100
ls da100*

>Fix:

Suggested patch for src/etc/MAKEDEV 1.260 (creates da0s1[a-h] and da0[a-h]):

--- MAKEDEV     2000/06/26 15:42:48     1.260
+++ MAKEDEV     2000/07/07 20:44:56
@@ -575,7 +575,7 @@
        esac
        case $unit in
        [0-9]|[0-9][0-9]|[0-4][0-9][0-9]|50[0-9]|51[0-1])
-               for slicepartname in s0h s1 s2 s3 s4
+               for slicepartname in s0h s1h s2 s3 s4
                do
                        sh MAKEDEV $name$unit$slicepartname
                done



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200007110949.LAA16572>