Date: Wed, 4 Sep 1996 19:28:10 -0700 (PDT) From: Doug White <dwhite@gdi.uoregon.edu> To: "Jesus A. Mora Marin" <amora@obelix.cica.es> Cc: freebsd-questions@freebsd.org Subject: Re: Creating a second freebsd slice Message-ID: <Pine.BSI.3.94.960904192343.286A-100000@gdi.uoregon.edu> In-Reply-To: <199609041113.NAA15363@obelix.cica.es>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Sep 1996, Jesus A. Mora Marin wrote: > Hi, Doug! > Many thanks for the info! No problem. > Just FYI, I'll tell you how I have got the work done: Cool! > 1) Of, course, with `fdisk(8)', I modified the slice table, getting rid of > the Linux one and creating a new -identical- slice for FreeBSD. BTW, I put it > in slot #3, instead of #1. So it now reads: > > The data for partition 3 is: > sysid 165,(FreeBSD/NetBSD/386BSD) > start 1620864, size 491904 (240 Meg), flag 0 > beg: cyl 402/ sector 1/ head 0; > end: cyl 523/ sector 63/ head 63 Check. > 2) After rebooting, the hard task: creating a new disklabel. > Using `disklabel -e' on a new slice is of no use, since this option expects > that any label exists. After browsing the man page many times and many other > failed tries, I concluded that my best bet was with `disklabel -R -r disk > protofile'. So I took a copy from the wd0s3 label -the original BSD slice-, > and modified it to fit the parameters of the new slice. So: Right. I've heard of the `disklabel -R -r disk > file' trick before for creating new disks. > # disklabel.s4 : protofile for /dev/rwd0s4c: > type: ESDI > disk: wd0s4 > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 64 > sectors/cylinder: 4032 > cylinders: 122 > sectors/unit: 491904 > 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] > c: 491904 0 unused 0 0 # (Cyl. 0 - 122) > f: 491904 0 4.2BSD 0 0 0 # (Cyl. 0 - 122*) > > BTW I had to MAKEDEV the wd0s4? special files. And then: > > disklabel -R -r /dev/rwd0s4c disklabel.s4 Checks out. > 3) New reboot and all went fine: newfs the new rwd0s4f partition, mount, etc. Cool. Glad you got it working, and thanks for the summary! Doug White | University of Oregon Internet: dwhite@resnet.uoregon.edu | Residence Networking Assistant http://gladstone.uoregon.edu/~dwhite | Computer Science Major
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.960904192343.286A-100000>