Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Apr 2002 11:35:14 -0700 (PDT)
From:      Roman Volf <volfman@keystreams.com>
To:        stable@freebsd.org
Subject:   mount_ext2fs issue
Message-ID:  <Pine.BSF.4.43L0.0204171122430.42647-100000@phantom.keystreams.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.43L0.0204171122430.42647-100000>