From owner-freebsd-current Sun Jan 5 11:36:42 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB28D37B401 for ; Sun, 5 Jan 2003 11:36:39 -0800 (PST) Received: from disk.fnug.net (213.237.71.107.adsl.amb.worldonline.dk [213.237.71.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE59943EC5 for ; Sun, 5 Jan 2003 11:36:33 -0800 (PST) (envelope-from paul@fnug.net) Received: from computer (unknown [192.168.0.101]) by disk.fnug.net (Postfix) with SMTP id 859B74497 for ; Sun, 5 Jan 2003 20:36:31 +0100 (CET) Message-ID: <3E18893F.6080009@fnug.net> Date: Sun, 05 Jan 2003 20:36:31 +0100 From: "Paul A. Mayer" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current Subject: Re: Unable to mount ext2fs partition References: <20030105022547.GA40477@papagena.rockefeller.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I had to install the e2fstools port before I could access my e2fs partitions after installing -current. Thereafter everything has been fine. No problems with the disk, etc. The only thing that is a problem is if your e2fs partion(s) are mounted and your system crashes or the mount is uncleanly shut down. Then I have to use a linux livecd to repair the partition as the freebsd e2fsck often isn't able to clean up the mess. Regards, Paul Rahul Siddharthan wrote: > I decided to bump my laptop up to 5.0-CURRENT today. All seems to have > gone well and all my old binaries work fine, it looks very nice. > > However, I can no longer mount my linux partition: when I try, I get > # mount -t ext2fs /dev/ad0s2 /mnt > ext2fs: /dev/ad0s2: No such file or directory > > Did something change when I install new bootblocks, and how do I fix it? > > Below, output from fdisk and disklabel. I don't remember anything unusual > before the upgrade. > > Thanks, > > Rahul > > ----------- > > # fdisk > ******* Working on device /dev/ad0 ******* > parameters extracted from in-core disklabel are: > cylinders=19485 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=19485 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 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 13912227 (6793 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 865/ head 254/ sector 63 > The data for partition 2 is: > sysid 131 (0x83),(Linux native) > start 13912290, size 5719140 (2792 Meg), flag 0 > beg: cyl 866/ head 0/ sector 1; > end: cyl 1023/ head 254/ sector 63 > The data for partition 3 is: > > The data for partition 4 is: > > > > # disklabel -r /dev/ad0s2 > # /dev/ad0s2: > type: ESDI > disk: ad0s2 > label: > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 356 > sectors/unit: 5719140 > rpm: 3600 > interleave: 1 > trackskew: 0 > cylinderskew: 0 > headswitch: 0 # milliseconds > track-to-track seek: 0 # milliseconds > drivedata: 0 > > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 5719140 13912290 unused 0 0 # (Cyl. 866 - 1221) > e: 5719140 13912290 4.2BSD 1024 8192 16 # (Cyl. 866 - 1221) > partition c: offset past end of unit > partition c: partition extends past end of unit > Warning, partition c doesn't start at 0! > Warning, An incorrect partition c may cause problems for standard system utilities > partition e: offset past end of unit > partition e: partition extends past end of unit > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message