URN Logo
UNIX Resources » Linux » Linux Forum » Redhat / Fedora Linux Support » Page.6 » Hdc Error:attempt To Access Beyond End Of Device
announcement The content of this page is collected from Linux Forum, All copyrights and other associated rights are reserved by the original authors of the articles.
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.com
  LinuxForum General Chat
  Linux Advocacy
  LinuxForum Polls
  Introductions
  Linux Kernel Support
  Patch Management
  Development Release
  Linux Programming
  Linux Security
  Linux Software
  Linux Hardware Problems
    Linux Video Problems
    Linux Sound Problems
  Linux Networking Support
  Linux Printing Support
  Linux Human Interface Devices Support
  Linux Data Storage Support
  Linux Applications Support
  Linux Installation Support
  Linux Laptops Support
  Linux Motherboard, Chipsets, CPU, Memory
  Miscellaneous
  Debian Linux Support
  Ubuntu Linux Support
  LiveCD Discussions
  Gentoo Linux Support
  Mandrake Linux Support
  Redhat / Fedora Linux Support
  Slackware Linux Support
  SuSE Linux Support
  CentOS Linux Support
  Linux Web Servers
  Linux DNS Servers
  Linux Database Servers
  Linux Email Servers
  Linux FTP Servers
  Linux Squid Proxy Server
  Linux Samba Help
  Linux cPanel Help
  Linux Ensim Help
  Linux Plesk Help
  Linux Webmin / Usermin Help
  Qmail Toaster Help
  Linux Games
  Windows Game Emulation
  Linux Discussions
  General Linux Discussions
  Red Hat Linux Discussions
  More Red Hat Linux Discussions
  Mandrake Linux Discussions
  Slackware Linux Discussions
  SuSE Linux Discussions
  Debian Discussions
  Samba Help
  Linux Security
  Linux Networking
  Gentoo Help
  Operating System Rant Forum
  Hardware Rants
   
Hdc Error:attempt To Access Beyond End Of Device
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: ashokvpp    Posted: 2006-05-31 05:14:50    Length: 2,791 byte(s)
[Original] [Print] [Top]
Hi All,,

 Hope you all doing good:)  I have a quick question ....

I keep getting errors like :-

hdc1:rw=1 wants=613670 limit=610407
hdc Error:Attempt to access beyond end of device
=========================================
Below is info :-

Fdisk

Disk /dev/hdc: 512 MB, 512483328 bytes
255 heads, 63 sectors/track, 62 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *           1          38      305203+  83  Linux
============================================

Fsck:-

fsck 1.38 (30-Jun-2005)
Warning!  /dev/hdc1 is mounted.
The filesystem size (according to the superblock) is 306904 blocks
The physical size of the device is 305203 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort? no

Pass 1: Checking inodes, blocks, and sizes
Deleted inode 67368 has zero dtime.  Fix? no

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Unattached inode 67370
Connect to /lost+found? no

Pass 5: Checking group summary information
Block bitmap differences:  -218113 -(219649--219656) -275969 -(276486--276525)
Fix? no

Free blocks count wrong (252525, counted=252430).
Fix? no

Inode bitmap differences:  -(52724--52725) -67368 -67371
Fix? no

Free inodes count wrong (72624, counted=72583).
Fix? no


ASTROOT: ********** WARNING: Filesystem still has errors **********


    4288 inodes used (5%)
      20 non-contiguous inodes (0.5%)
         # of inodes with ind/dind/tind blocks: 477/22/0
   54379 blocks used (17%)
       0 bad blocks
       0 large files

    1702 regular files
     159 directories
    1688 character device files
     480 block device files
       0 fifos
       1 link
     285 symbolic links (285 fast symbolic links)
       2 sockets--------

    4316 files
============================================

Pls suggest me to fix this issue.

Thanks in advance:)

Best Regards
ashok
[Original] [Print] [Top]
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: x86processor    Posted: 2006-05-31 07:13:10    Length: 149 byte(s)
[Original] [Print] [Top]
What is your hardware? /dev/hdc1 is an external USB drive? Its either corrupted or the filesystem is not supported in whichever distro you are using.
----
Linux is the kernel. The entire system is called GNU/Linux.
http://www.gnu.org/gnu/linux-and-gnu.html

My domain: shakthimaan.com (Offline)
orkut ID: shakthimaan
IRC nick: mbuf
[Original] [Print] [Top]
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: ashokvpp    Posted: 2006-06-01 07:40:46    Length: 219 byte(s)
[Original] [Print] [Top]

Hello,,

 Well /dev/hdc1 is a compact flash card 512MB  which is put in Normal pc with adapter in secondary master IDE.

  I am running linux on it.

Regards
ashok
[Original] [Print] [Top]
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: TrickyRic    Posted: 2006-06-01 13:15:15    Length: 684 byte(s)
[Original] [Print] [Top]
linux is your kernel, not your distribution. the operating system is gnu and gnu ships in many distributions, each offering support for differing file systems depending on the kernel configuration used.

with that said however, fdisk is reporting the filesystem as linux, which generally means ext2 (and ext2 is supported as standard with all mainstream kernels). thus your filesystem is indeed supported.

however, for some reason it appears the filesystem exceeds the physical size of the disk. only explanation i can give is that somehow the partition was formatted with an incorrect cluster size. only fix i know of would be to reformat the partition entirely.
----
Laptop: 2GHz Acer Aspire 9301AWSMi, 1GB DDR2, 17" TFT, 256MB GeForce Go 6100
Sold Development System:
2GHz AMD Opteron 246, Socket 940 Asus K8N-DL
Server System: 1.2GHz AMD Athlon, Socket 462 Apollo KT133 VT82C686
[Original] [Print] [Top]
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: ashokvpp    Posted: 2006-06-06 00:37:53    Length: 4,629 byte(s)
[Original] [Print] [Top]
Helo Frnds,

   Good morning smile.gif   ... Yes you are right ....n i agree wit u smile.gif   Still problem persists...

Here is how i am doing ..n trying to get it fixed ...

 
1. )    I had the Buildroot ready with the folowing directory hierarchy
 
  [root@eden root]# ls
bin  boot  dev  etc  home  lib  lost+found  mnt  opt  proc  root  sbin  stat  sys  tftpboot  tmp  usr  var


2) Then next

./bximage -q -hd -mode=flat -size=300MB disk.img

losetup /dev/loop0 disk.img

fdisk /dev/loop0

losetup -d /dev/loop0

ln -sf /dev/loop0 /dev/loop

losetup /dev/loop0 disk.img
losetup -o 32256 /dev/loop1 disk.img


mke2fs -O sparse_super -L ASHROOT -m0 -q /dev/loop1


mkdir -p /mnt/image
mount -t ext2 /dev/loop1 /mnt/image
cp -a build_i686/root/* /mnt/image/
tar -xz -C /mnt/image/ -f target/generic/dev.tar.gz
tar -xz -C /mnt/image/stat/ -f target/generic/dev.tar.gz
chown -Rh root:root /mnt/image
chmod 4755 /mnt/image/bin/busybox

grub

grub> device (hd0) /dev/loop
grub> root (hd0,0)
grub> setup (hd0)
grub> quit


umount /mnt/image

losetup -d /dev/loop0
losetup -d /dev/loop1


3)   Once my disk.img is ready i used physdiskwrite v0.5.1


c:\>physdiskwrite.exe disk.img

Which writes disk.img to my 512MB Compacy flash card.

4)  Then im booting with my compact flash boots up fine ...

After a while  i get eror like ..
hdc1:rw=1 wants=613670 limit=610407
hdc Error:Attempt to access beyond end of device


5)  Then i tried

micro /root # fsck.ext2 -fv /dev/hdc1
e2fsck 1.35 (28-Feb-2004)
/dev/hdc1 is mounted.

WARNING!!!  Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

The filesystem size (according to the superblock) is 306904 blocks
The physical size of the device is 305203 blocks
Either the superblock or the partition table is likely to be corrupt!
Abort<y>? no

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -302416
Fix<y>? yes

Free blocks count wrong for group #36 (4070, counted=4071).
Fix<y>? yes

Free blocks count wrong (192443, counted=192444).
Fix<y>? yes


ASHROOT: ***** FILE SYSTEM WAS MODIFIED *****
ASHROOT: ***** REBOOT LINUX *****

    5685 inodes used (7%)
      32 non-contiguous inodes (0.6%)
         # of inodes with ind/dind/tind blocks: 682/70/0
  114460 blocks used (37%)
       0 bad blocks
       0 large files

    2815 regular files
     437 directories
    1688 character device files
     480 block device files
       0 fifos
       0 links
     253 symbolic links (253 fast symbolic links)
       3 sockets
--------
    5676 files
===============================================================

Pls tell where am i doing wrong,,,  so it is seeing

1. filesystem size (according to the superblock) is 306904 blocks???
2. physical size of the device is 305203 blocks.


How do i create filesystem size equal to physical size...and then write image to CF card.?

Pls help ahead....smile.gif

Thanks in advance

Best Regards
ashok
[Original] [Print] [Top]
Subject: Hdc Error:attempt To Access Beyond End Of Device
Author: ashokvpp    Posted: 2006-06-06 06:07:52    Length: 2,408 byte(s)
[Original] [Print] [Top]
Hello All,,
 
Any ways i solved the problem of HDC errors with existing CF card ...
 
The problem is when creating filesystem using Fdisk ..
 
Below is the steps..
 
Step 1.
                Note down the cylinder Size of bximage output Wrritten
        Eg:-    ata0-master: type=disk, path="c.img", mode=flat, cylinders=1015, heads=16, spt=63
Step 2.
        Command (m for help): x
                Expert command (m for help): h 16
                Number of heads (1-256, default 255): 16
                Expert command (m for help): s
                Number of sectors (1-63, default 63): 63
                Warning: setting sector offset for DOS compatiblity
                Expert command (m for help): c
                Number of cylinders (1-1048576): 1015
                Expert command (m for help): r
----------------------------------------------------------------------------------------
        Command (m for help): n
        Command action
                   e   extended
                   p   primary partition (1-4)
        p
        Partition number (1-4): 1
        First cylinder (1-1015, default 1):
        Using default value 1
        Last cylinder or +size or +sizeM or +sizeK (1-1015, default 1015):
        Using default value 1015
Command (m for help): wq

 
But i use to do just from ----line----- below ..that created the problem of having filesystem BIG and physical device small.
 
Thank u all.....
 
Warm Regards
ashok
Yahoo IM :- ashokvpp
[Original] [Print] [Top]
« Previous thread
Fc5 Gnome Desktop Size
Redhat / Fedora Linux Support
Page. 6
Next thread »
New User Need Help
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
Powered by FreeBSD    webmaster: webmaster@unixresources.net
This page created on 2007-08-01 12:03:25, cost 0.028486013412476 ms.