From owner-freebsd-questions@FreeBSD.ORG Sat Oct 11 05:03:26 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD7E016A4B3 for ; Sat, 11 Oct 2003 05:03:26 -0700 (PDT) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5737A43FE0 for ; Sat, 11 Oct 2003 05:03:26 -0700 (PDT) (envelope-from torben@kappacorp.com) Received: from kappacorp.com (12-212-24-87.client.attbi.com[12.212.24.87]) by comcast.net (rwcrmhc11) with SMTP id <2003101112032501300qm760e>; Sat, 11 Oct 2003 12:03:25 +0000 Message-ID: <3F87F0FD.6000406@kappacorp.com> Date: Sat, 11 Oct 2003 05:01:01 -0700 From: Torben Brosten User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.0.0) Gecko/20020622 Debian/1.0.0-0.woody.1 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: error when trying to mount ext2fs harddisk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Oct 2003 12:03:27 -0000 Hi, I'm trying to mount an ext2fs formatted harddisk on freebsd 4-8 stable, but am getting an error. huey# mkdir /aduni huey# mount_ext2fs -o rdonly /dev/ad1s1 /aduni mount_ext2fs: /dev/ad1s1: Invalid argument Same error when trying: mount -t ext2fs /dev/ad1s1 /aduni The kernel DUEY has the 'option EXT2FS' compiled in it. $ uname -a FreeBSD huey.dekka.com 4.8-STABLE FreeBSD 4.8-STABLE #0: Fri Oct 10 03:02:30 PDT 2003 root@huey.dekka.com:/usr/obj/usr/src/sys/DUEY i386 huey# more /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1e /area2 ufs rw 2 2 /dev/acd0c /cdrom cd9660 ro,noauto 0 0 /dev/acd1c /cdrom1 cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 Here's the related boot messages. huey# more /var/log/dmesg.today ... ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ad0: 19092MB [38792/16/63] at ata0-master UDMA66 ad1: 76319MB [155061/16/63] at ata0-slave UDMA66 acd0: CD-RW at ata1-slave PIO4 Mounting root from ufs:/dev/ad0s1a DEPENDENCY NOTE: portmap will be enabled to support NFS swapon: adding /dev/ad0s1b as swap device Automatic boot in progress... /dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1a: clean, 599013 free (31701 frags, 70914 blocks, 0.6% fragmentation) /dev/ad0s1e: FILESYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s1e: clean, 1488769 free (7137 frags, 185204 blocks, 0.2% fragmentation) ext2fs: /dev/ad1s1a : DEPENDENCY NOTE: portmap will be enabled to support NFS Skipping disk checks ... Doing initial network setup: hostname . When I installed the system via /stand/sysinstall, I had changed the ext2fs partition's disktype in an effort to get freebsd to mount the disk using menu driven process from these windows: huey# /stand/sysinstall/ -> custom Begin a custom installation -> partition Allocate disk space for FreeBSD -> selected drive [ ]ad0 [x]ad1 Disk name: ad1 Disk Geometry: 9729 cyls/255 heads/63 sectors = 156296385 sectors (76316MB) Offset | Size(ST) | End | Name | PType | Desc | Subtype | Flags 0 | 63 | 62 | - | 6 | unused | 0 | 63 | 156296322 | 1566296384 | ad1s1 | 1 | ext2fs | 131 | = 156296385 | 5103 | 156301487 | - | 6 | unused | 0 | One of the commands supported: T = Change Type What could be causing this problem. Hints, suggestions etc welcome! Torben