Date: Wed, 4 Sep 1996 13:13:20 +0200 (MET) From: "Jesus A. Mora Marin" <amora@obelix.cica.es> To: dwhite@resnet.uoregon.edu Cc: freebsd-questions@freebsd.org Subject: Re: Creating a second freebsd slice Message-ID: <199609041113.NAA15363@obelix.cica.es> In-Reply-To: <Pine.BSI.3.94.960903184439.223F-100000@gdi.uoregon.edu> from "Doug White" at Sep 3, 96 06:47:29 pm
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, Doug! Many thanks for the info! Just FYI, I'll tell you how I have got the work done: 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 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: # 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 3) New reboot and all went fine: newfs the new rwd0s4f partition, mount, etc. >> Er, BTW, FreeBSD version is 2.2-960326SNAP. > You're a bit behind the times. Yep. I'm gonna order the most recent SNAP version ASAP! So, thanks a lot, Doug! Jesus A. Mora amora@obelix.cica.es
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609041113.NAA15363>