From owner-freebsd-stable Wed Apr 17 11:36:40 2002 Delivered-To: freebsd-stable@freebsd.org Received: from phantom.keystreams.com (phantom.keystreams.com [63.214.181.2]) by hub.freebsd.org (Postfix) with SMTP id 122B237B417 for ; Wed, 17 Apr 2002 11:36:33 -0700 (PDT) Received: (qmail 43195 invoked by uid 1001); 17 Apr 2002 18:35:14 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 17 Apr 2002 18:35:14 -0000 Date: Wed, 17 Apr 2002 11:35:14 -0700 (PDT) From: Roman Volf To: stable@freebsd.org Subject: mount_ext2fs issue Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I would have posted this to -questions, but I believe the list is down, or at least the online search is down. The problem i'm having is accessing a drive which had Slackware Linux installed on it. The partition table of the drive looked like this: /dev/hda1 (swap) /dev/hda2 (/) /dev/hda3 (/usr) /dev/hda4 (extended partition) /dev/hda5 (/var) /dev/hda6 (/home) I then installed new hard drive and installed FreeBSD on it. Compiled the kernel with the EXT2FS option, and proceeded to mount the partitions. [root@locutus ~]# mount -t ext2fs /dev/ad1s2 /old/slash [root@locutus ~]# mount -t ext2fs /dev/ad1s3 /old/usr [root@locutus ~]# mount -t ext2fs /dev/ad1s4 /old/var ext2fs: /dev/ad1s4: Invalid argument [root@locutus ~]# mount -t ext2fs /dev/ad1s5 /old/var ext2fs: /dev/ad1s5: No such file or directory [root@locutus ~]# mount -t ext2fs /dev/ad1s6 /old/var ext2fs: /dev/ad1s6: No such file or directory Is there some other format I can use to read these partitions? I'm more concerned with /home, as it has all the data I need. Here is the ouput of fdisk for /dev/ad1: [root@locutus ~]# fdisk /dev/ad1 ******* Working on device /dev/ad1 ******* parameters extracted from in-core disklabel are: cylinders=2434 heads=255 sectors/track=63 (16065 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=2434 heads=255 sectors/track=63 (16065 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 130,(Linux swap or Solaris x86) start 63, size 1060227 (517 Meg), flag 0 beg: cyl 0/ head 1/ sector 1; end: cyl 65/ head 254/ sector 63 The data for partition 2 is: sysid 131,(Linux filesystem) start 1060290, size 6152895 (3004 Meg), flag 80 (active) beg: cyl 66/ head 0/ sector 1; end: cyl 448/ head 254/ sector 63 The data for partition 3 is: sysid 131,(Linux filesystem) start 7213185, size 8193150 (4000 Meg), flag 0 beg: cyl 449/ head 0/ sector 1; end: cyl 958/ head 254/ sector 63 The data for partition 4 is: sysid 5,(Extended DOS) start 15406335, size 23695875 (11570 Meg), flag 0 beg: cyl 959/ head 0/ sector 1; Has anyone else run into this problem? Roman Volf President Keystreams Internet Solutions http://www.keystreams.com (619)572-2062 volfman@keystreams.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message