Altera_Forum
Honored Contributor
20 years agoRecognizing hard disk
Hi all,
trying to read/write from a hard disk, with CycloneII Nios Kit and Nios II uClinux when I try to mount the hard disk I get the error: mount: /dev/hda is not a valid block device The mount command was: mount -n -t vfat /dev/hda /mnt/ide0 and the same for /dev/hda1 If someone can give some hints, the background is: - IDE hard disk connected to the CycloneII board with IDE cable. - True IDE PIO mode 0 HW interface to the hard disk, correctly working in fact at linux boot I get the messages: hda: IBM-DTLA-307030, ATA DISK drive ide0 at 0x81000040-0x81000047,0x81000078 on irq 7 hda: max request size: 128KiB hda: 60036480 sectors (30738 MB) w/1916KiB Cache, CHS=59560/16/63 hda: hda1 hda2 < hda5 > To be honest cylinders are 16383, but the disk model and all the other parameters are correct (correctly read from the disk). Also the partitions seems recognized correctly: one FAT16 partition and one NTFS partition plus extended part, all created in the hard disk by Windows Pc. - Nios II uClinux kernel configured with defaults it comes with, so also ATA/ATAPI/MFM/RLL support. - uClinux filesystem generated with from Nios II IDE (using New -> Linux Filesystem project), with "Install minimal" packages plus fdisk and some others. -# cat /proc/devices gives: Character devices: 1 mem 2 pty 3 ttyp 5 /dev/tty 5 /dev/console 5 /dev/ptmx 10 misc 90 mtd 128 ptm 136 pts 232 ttyJ Block devices: 1 ramdisk 3 ide0 31 mtdblock1 - Don't know about the format of /dev files, but /dev/hda and /dev/hda1 files are present... - Instead, /etc/fstab file is not present in my uClinux filesystem... From the messages I think the hard disk is recognized by the system and installed correctly, also running fdisk from uClinux shows me the disk partitions correctly, I don't know why the disk is not seen as a block device and the mount command fails... Thanks in advance