disklabel problem
Jerry McAllister
jerrymc at clunix.cl.msu.edu
Wed Aug 13 09:54:09 PDT 2003
>
> hello
> i am trying to add some more hd space to my system.
> I have an extra disk wich is /dev/sda0s2.
> I used disklabel to partition it into seven partitions. Now i want to
> insert these partitions to my system, but i can not find all the device
> files /dev/sda0s2a - /dev/sda0s2h
By default, only a subset of devices are already made.
Presuming you are using a versin of FreeBSD before 5.0 (I haven't
had a chance to install a 5.x or use the new devfs stuff yet) do
the following:
cd /dev
./MAKEDEV da0s2a
That should get you all the da0s2_ set.
Then fix up your /etc/fstab file and it should all work nicely.
////jerry
> But "disklabel -r /dev/da0s2" shows me
>
> # /dev/da0s2:
> type: SCSI
> disk: da0s2
> label:
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 53400
> sectors/unit: 857887002
> rpm: 3600
> interleave: 1
> trackskew: 0
> cylinderskew: 0
> headswitch: 0 # milliseconds
> track-to-track seek: 0 # milliseconds
> drivedata: 0
>
> 8 partitions:
> # size offset fstype [fsize bsize bps/cpg]
> a: 122555286 0 4.2BSD 0 0 0 # (Cyl. 0 -
> 7628*)
> b: 122555286 122555286 4.2BSD 0 0 0 # (Cyl.
> 7628*- 15257*)
> c: 857887002 0 unused 0 0 # (Cyl. 0 -
> 53400*)
> d: 122555286 245110572 4.2BSD 0 0 0 # (Cyl.
> 15257*- 22886*)
> e: 122555286 367665858 4.2BSD 0 0 0 # (Cyl.
> 22886*- 30514*)
> f: 122555286 490221144 4.2BSD 0 0 0 # (Cyl.
> 30514*- 38143*)
> g: 122555286 612776430 4.2BSD 0 0 0 # (Cyl.
> 38143*- 45772*)
> h: 122555286 735331716 4.2BSD 0 0 0 # (Cyl.
> 45772*- 53400*)
>
>
>
> and an ls /dev/da0s2* shows me only :
> /dev/da0s2
>
>
> My question is, how do i get the device files for all my partitions,
> because without them i can not use newfs.
>
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
More information about the freebsd-questions
mailing list