Mounting FreeBSD partitions on OpenBSD
I'm trying to mount my FreeBSD partitions in OpenBSD. OpenBSD has no problem finding, reading and writing to the root partition for FreeBSD but doesn't see the other partitions(/home, /usr, /var). I know I have to manually edit the disklabel to add those partitions. My problem is that the disklabel editor doesn't want to change or edit a partition that isn't on the OpenBSD slice. Is there anyway to edit the disklabel using disklabel without resorting to an editor like vi since I don't feel entirely comfortable manually computing and changing the tabel, or if that is my only option, what is the required entries to the table I need to provide? thanks, roger Here is the disklabel from FreeBSD: # /dev/ad0s2: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 102400004.2BSD0 0 0 b: 4096000 1024000 swap c: 393592500unused0 0 # raw part, don't edit d: 1024000 5124.2BSD0 0 0 e: 1024000 61440004.2BSD0 0 0 f: 1024 71680004.2BSD0 0 0 g: 21951250 174080004.2BSD0 0 0 And here is the disklabel from OpenBSD: j is the partition I want to add # /dev/rwd0c: type: ESDI disk: ESDI/IDE disk label: HTS541060G9AT00 flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 16 sectors/cylinder: 1008 cylinders: 16383 total sectors: 117210240 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0# microseconds track-to-track seek: 0# microseconds drivedata: 0 16 partitions: # sizeoffset fstype [fsize bsize cpg] a: 1023435 78734565 4.2BSD 2048 16384 328 # Cyl 78109*- 79124 b: 4095504 79758000swap # Cyl 79125 - 83187 c: 117210240 0 unused 0 0 # Cyl 0 -116279 d: 1024128 83853504 4.2BSD 2048 16384 328 # Cyl 83188 - 84203 e: 1024128 84877632 4.2BSD 2048 16384 328 # Cyl 84204 - 85219 f: 10240272 85901760 4.2BSD 2048 16384 328 # Cyl 85220 - 95378 g: 21068208 96142032 4.2BSD 2048 16384 328 # Cyl 95379 -116279 i: 3937525263 MSDOS # Cyl 0*- 39062* j: 39359250 39375315 unknown # Cyl 39062*- 78109*
Re: Mounting FreeBSD partitions on OpenBSD
On 1/30/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm trying to mount my FreeBSD partitions in OpenBSD. OpenBSD has no problem finding, reading and writing to the root partition for FreeBSD but doesn't see the other partitions(/home, /usr, /var). I know I have to manually edit the disklabel to add those partitions. My problem is that the disklabel editor doesn't want to change or edit a partition that isn't on the OpenBSD slice. Is there anyway to edit the disklabel using disklabel without resorting to an editor like vi since I don't feel entirely comfortable manually computing and changing the tabel, or if that is my only option, what is the required entries to the table I need to provide? use 'b' to set the disk boundary.
Mounting freebsd partitions in openbsd
Hi, I have a dual boot system openbsd3.7/freebsd5.4 From openbsd: # fdisk /dev/rwd0c Disk: /dev/rwd0cgeometry: 4865/255/63 [78156225 Sectors] Offset: 0 Signature: 0xAA55 Starting Ending LBA Info: #: idC H S -C H S [ start: size ] *0: A60 1 1 - 1826 254 63 [ 63:29350692 ] OpenBSD 1: A5 1827 0 1 - 4864 254 63 [29350755:48805470 ] FreeBSD 2: 000 0 0 -0 0 0 [ 0: 0 ] unused 3: 000 0 0 -0 0 0 [ 0: 0 ] unused I want to be able to access the files on the freebsd slice from openbsd. disklabel on freebsd gives # /dev/ad1s2: 8 partitions: #size offsetfstype [fsize bsize bps/cpg] a: 104857604.2BSD 2048 16384 8 b: 1048576 1048576 swap c: 488054700unused0 0 # raw part, don't edit d: 2097152 20971524.2BSD 2048 16384 28552 e: 1048576 41943044.2BSD 2048 16384 8 f: 43562590 52428804.2BSD 2048 16384 28552 disklabel on openbsd was # /dev/wd0c: type: ESDI disk: ad1s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 4865 total sectors: 78165360 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # microseconds track-to-track seek: 0 # microseconds drivedata: 0 7 partitions: # sizeoffset fstype [fsize bsize cpg] a:53008263 4.2BSD 2048 16384 32 # Cyl 0*-32 b: 1044225530145swap # Cyl33 -97 c: 78165360 0 unused 0 0 # Cyl 0 - 4865* d: 2104515 1574370 4.2BSD 2048 16384 132 # Cyl98 - 228 e: 1044225 3678885 4.2BSD 2048 16384 66 # Cyl 229 - 293 f: 8385930 4723110 4.2BSD 2048 16384 328 # Cyl 294 - 815 g: 16241715 13109040 4.2BSD 2048 16384 328 # Cyl 816 - 1826 I went through your archives and learned that i need to hand edit the disklabel in order to access the partitions on the freebsd slice. so i changed the label to 12 partitions: # sizeoffset fstype [fsize bsize cpg] a:53008263 4.2BSD 2048 16384 32 # Cyl 0*-32 b: 1044225530145swap # Cyl33 -97 c: 78165360 0 unused 0 0 # Cyl 0 - 4865* d: 2104515 1574370 4.2BSD 2048 16384 132 # Cyl98 - 228 e: 1044225 3678885 4.2BSD 2048 16384 66 # Cyl 229 - 293 f: 8385930 4723110 4.2BSD 2048 16384 328 # Cyl 294 - 815 g: 16241715 13109040 4.2BSD 2048 16384 328 # Cyl 816 - 1826 h: 1048576 29350755 4.2BSD 2048 16384 16 # Cyl 1827 - 1892* i: 1048576 30399331swap # Cyl 1892*- 1957* j: 2097152 31447907 4.2BSD 2048 16384 16 # Cyl 1957*- 2088* k: 1048576 33545059 4.2BSD 2048 16384 16 # Cyl 2088*- 2153* l: 43562590 34593635 4.2BSD 2048 16384 16 # Cyl 2153*- 4864 Now when i try #mount /dev/wd0h /mnt I get mount_ffs: /dev/wd0h on /mnt: Inappropriate file type or format What am I doing wrong? Is it even possible to accomplish this? Thanks in advance, Varun.
Re: Mounting freebsd partitions in openbsd
ufs2 is not supported. -- we don't run washington and no one really does
Re: Mounting freebsd partitions in openbsd
On 5/29/05, Stuart Henderson [EMAIL PROTECTED] wrote: --On 29 May 2005 01:06 +0530, Varun Dubey wrote: I want to be able to access the files on the freebsd slice from openbsd. disklabel on freebsd gives Your FreeBSD partitions are probably using UFS2, which unless I'm mistaken, you can't access from OpenBSD. Thanks for pointing that out. freebsd 5.x default to ufs2. Is there a possibility of ufs2 support being incorporated in openbsd in the future?