Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261299AbVAROCS (ORCPT ); Tue, 18 Jan 2005 09:02:18 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261300AbVAROCS (ORCPT ); Tue, 18 Jan 2005 09:02:18 -0500 Received: from piggy.rz.tu-ilmenau.de ([141.24.4.8]:42967 "EHLO piggy.rz.tu-ilmenau.de") by vger.kernel.org with ESMTP id S261299AbVAROCN (ORCPT ); Tue, 18 Jan 2005 09:02:13 -0500 Date: Tue, 18 Jan 2005 15:02:03 +0100 From: Mario Holbe To: "Piszcz, Justin Michael" Cc: Marcelo Tosatti , Andries Brouwer , linux-kernel@vger.kernel.org Subject: Re: 2.4: "access beyond end of device" after ext2 mount Message-ID: <20050118140203.GH2839@darkside.22.kls.lan> Mail-Followup-To: Mario Holbe , "Piszcz, Justin Michael" , Marcelo Tosatti , Andries Brouwer , linux-kernel@vger.kernel.org References: <2E314DE03538984BA5634F12115B3A4E01BC42AE@email1.mitretek.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2E314DE03538984BA5634F12115B3A4E01BC42AE@email1.mitretek.org> User-Agent: Mutt/1.5.6+20040907i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1756 Lines: 47 On Tue, Jan 18, 2005 at 08:42:08AM -0500, Piszcz, Justin Michael wrote: > Normally, this problem associated with drives over 32GB or 127GB on a > controller that cannot support it. It was not discussed here, I was > wondering if that is the problem, if it is not, what type of Hard Drive > is giving you these problems? This does not depend on the type of the hard disk for sure. root@darkside:/dev/shm# dd if=/dev/zero of=foo bs=1024 count=10001 10001+0 records in 10001+0 records out 10241024 bytes transferred in 0,062195 seconds (164659895 bytes/sec) root@darkside:/dev/shm# losetup /dev/loop0 foo loop: loaded (max 8 devices) root@darkside:/dev/shm# mke2fs -b 4096 /dev/loop0 ... root@darkside:/dev/shm# blockdev --getbsz /dev/loop0 1024 root@darkside:/dev/shm# dd if=/dev/loop0 of=/dev/null 20002+0 records in 20002+0 records out 10241024 bytes transferred in 0,248255 seconds (41252031 bytes/sec) root@darkside:/dev/shm# mount -o ro /dev/loop0 /mnt root@darkside:/dev/shm# umount /dev/loop0 root@darkside:/dev/shm# blockdev --getbsz /dev/loop0 4096 root@darkside:/dev/shm# dd if=/dev/loop0 of=/dev/null attempt to access beyond end of device 07:00: rw=0, want=10004, limit=10001 dd: reading `/dev/loop0': Input/output error 20000+0 records in 20000+0 records out 10240000 bytes transferred in 0,185949 seconds (55068833 bytes/sec) Of course you could reproduce it much more simple without all the ext2 stuff using blockdev --setbsz :) Mario -- () Ascii Ribbon Campaign /\ Support plain text e-mail - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/