Date: Wed, 6 Jun 2001 16:41:19 +0200 From: Thue Janus Kristensen <thue@kg93.kollegiegaarden.dk> To: freebsd-questions@freebsd.org Subject: Mounting logical ext2 partitions Message-ID: <20010606164119.A437@kg93.kollegiegaarden.dk>
next in thread | raw e-mail | index | archive | help
I am trying to mount my ext2 partitions under freebsd, but with little success. Yes, I have recompiled my freebsd kernel with EXT2FS. Looking at the tables below I suspected the linux partitions might have names ad0s3[bcd] so empirically I tried but got su-2.05# mount_ext2fs /dev/ad0s3c debian/ mount_ext2fs: /dev/ad0s3c: Invalid argument They reside on logical partitions, so I tried su-2.05# sh MAKEDEV ad0s6 su-2.05# mount_ext2fs /dev/ad0s5 /mnt/debian/ mount_ext2fs: /dev/ad0s5: Device not configured I am running 4.3-RELEASE. help! :) Please CC me, I am not on the list -Thue df run under freebsd: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/ad0s3a 99183 36843 54406 40% / /dev/ad0s3f 99183 11164 80085 12% /home /dev/ad0s3g 2726134 2011720 496324 80% /usr /dev/ad0s3e 74383 2650 65783 4% /var procfs 4 4 0 100% /proc /dev/acd0c 656994 656994 0 100% /cdrom Partition table seen by cfdisk under linux: Name Flags Part Type FS Type [Label] Size (MB) ------------------------------------------------------------------------------ hda3 Boot Primary BSD/386 3273.60 hda1 Primary Linux 9.81 hda5 Logical Linux swap 500.10 hda6 Logical Linux ext2 5278.12 hda7 Logical Linux ext2 1048.20 hda8 Logical Linux ext2 4343.47 Partitions listed by df under linux: Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda8 4174908 3073884 888944 78% / /dev/hda7 1007488 514516 441796 54% /home /dev/hda6 5073352 3859288 956348 81% /mnt/data /dev/hda9 99183 36769 54486 41% /mnt/freebsd /dev/hda11 74383 2620 65819 4% /mnt/freebsd/var /dev/hda12 99183 11010 80245 13% /mnt/freebsd/home /dev/hda13 2726134 1991539 516507 80% /mnt/freebsd/usr Partitions listed by /stand/sysinstall under freebsd Offset Size(ST) End Name PType Desc Subtype Flags 0 63 62 - 6 unused 0 63 6393681 6393743 ad0s3 3 freebsd 165 C 6393744 19152 6412895 ad0s1 1 ext2fs 131 6412896 21816144 28229039 ad0s2 1 unknown 133 Output of fdisk in freebsd: su-2.05# fdisk ******* Working on device /dev/ad0 ******* parameters extracted from in-core disklabel are: cylinders=28005 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=28005 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 131,(Linux filesystem) start 6393744, size 19152 (9 Meg), flag 0 beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 15 The data for partition 2 is: sysid 133,(unknown) start 6412896, size 21816144 (10652 Meg), flag 0 beg: cyl 1023/ sector 63/ head 255; end: cyl 1023/ sector 63/ head 15 The data for partition 3 is: sysid 165,(FreeBSD/NetBSD/386BSD) start 63, size 6393681 (3121 Meg), flag 80 (active) beg: cyl 0/ sector 1/ head 1; end: cyl 1023/ sector 63/ head 15 The data for partition 4 is: <UNUSED> su-2.05# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010606164119.A437>