All of lore.kernel.org
 help / color / mirror / Atom feed
* Can't acess ide ZIP under 2.4.16 with devfs
@ 2001-11-27 19:21 Gregoire Favre
  2001-11-27 20:59 ` Paul Bristow
  0 siblings, 1 reply; 5+ messages in thread
From: Gregoire Favre @ 2001-11-27 19:21 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 4155 bytes --]

Hello,

I didn't try devfs for a long time, I wasn't using it because of a problem
I hadded, but didn't remember which one...

Now, I can remember: I can't access my IDE zip which is normaly (without
devfs) under hdc.

Could someone explain me what I am doing wrong?
I can't test it with a partitionned ZIP as all my ZIP have no partitions.

I give here the output of somes commands (under 2.4.16 with devfs):

[greg@localhost /dev]$ ll hd*
lr-xr-xr-x    1 root     root           32 Nov 27  2001 hda -> ide/host0/bus0/target0/lun0/disc
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda1 -> ide/host0/bus0/target0/lun0/part1
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda2 -> ide/host0/bus0/target0/lun0/part2
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda3 -> ide/host0/bus0/target0/lun0/part3
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda4 -> ide/host0/bus0/target0/lun0/part4
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda5 -> ide/host0/bus0/target0/lun0/part5
lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda6 -> ide/host0/bus0/target0/lun0/part6
lr-xr-xr-x    1 root     root           32 Nov 27  2001 hdc -> ide/host0/bus1/target0/lun0/disc

[greg@localhost /dev]$ cat /proc/partitions 
major minor  #blocks  name

   8     0    8925000 scsi/host0/bus0/target0/lun0/disc
   8     1     136521 scsi/host0/bus0/target0/lun0/part1
   8     2    8787555 scsi/host0/bus0/target0/lun0/part2
  22     0     244736 ide/host0/bus1/target0/lun0/disc
   3     0   14114520 ide/host0/bus0/target0/lun0/disc
   3     1    4200966 ide/host0/bus0/target0/lun0/part1
   3     2     136552 ide/host0/bus0/target0/lun0/part2
   3     3      16065 ide/host0/bus0/target0/lun0/part3
   3     4          1 ide/host0/bus0/target0/lun0/part4
   3     5    1052226 ide/host0/bus0/target0/lun0/part5
   3     6    8707198 ide/host0/bus0/target0/lun0/part6

My /etc/fstab contains:
/dev/hdc        /mnt/ext2       ext3            nosuid,noauto,nodev,user                1 2

[greg@localhost /dev]$ mount /mnt/ext2/
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       or too many mounted file systems

[greg@localhost /dev]$ sudo fdisk /dev/hdc

The number of cylinders for this disk is set to 1757.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hdc: 255 heads, 63 sectors, 1757 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1   *         1       523   4200966    7  HPFS/NTFS
/dev/hdc2           524       540    136552+  82  Linux swap
/dev/hdc3           541       542     16065   83  Linux
/dev/hdc4           543      1757   9759487+   5  Extended
/dev/hdc5           543       673   1052226    6  FAT16
/dev/hdc6           674      1757   8707198+  83  Linux

Command (m for help): q

[greg@localhost /dev]$ sudo fdisk /dev/hda

The number of cylinders for this disk is set to 1757.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 255 heads, 63 sectors, 1757 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       523   4200966    7  HPFS/NTFS
/dev/hda2           524       540    136552+  82  Linux swap
/dev/hda3           541       542     16065   83  Linux
/dev/hda4           543      1757   9759487+   5  Extended
/dev/hda5           543       673   1052226    6  FAT16
/dev/hda6           674      1757   8707198+  83  Linux

Command (m for help): q

Thanks you very much,

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't acess ide ZIP under 2.4.16 with devfs
  2001-11-27 19:21 Can't acess ide ZIP under 2.4.16 with devfs Gregoire Favre
@ 2001-11-27 20:59 ` Paul Bristow
  2001-11-27 21:11   ` Gregoire Favre
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Bristow @ 2001-11-27 20:59 UTC (permalink / raw)
  To: Gregoire Favre; +Cc: linux-kernel

Gregoire,

I'm working (right this minute) on devfs support for ide-floppy

but... your problem doesn't look like an ide-floppy/devfs problem.

On my system, the output from fdisk on a zip 250 looks like

  [root@zoltar ide]# fdisk /dev/hdf

   Command (m for help): p

   Disk /dev/hdf: 64 heads, 32 sectors, 239 cylinders
   Units = cylinders of 2048 * 512 bytes

      Device    Boot    Start       End    Blocks   Id  System
      /dev/hdf4   *         1       239    244720    6  FAT16

so your hdc is a hard disk, not a zip.

Try changing your fstab to point to ide/host0/bus1/target0/lun0/disc 
instead of /dev/hdc

Gregoire Favre wrote:

> Hello,
> 
> I didn't try devfs for a long time, I wasn't using it because of a problem
> I hadded, but didn't remember which one...
> 
> Now, I can remember: I can't access my IDE zip which is normaly (without
> devfs) under hdc.
> 
> Could someone explain me what I am doing wrong?
> I can't test it with a partitionned ZIP as all my ZIP have no partitions.
> 
> I give here the output of somes commands (under 2.4.16 with devfs):
> 
> [greg@localhost /dev]$ ll hd*
> lr-xr-xr-x    1 root     root           32 Nov 27  2001 hda -> ide/host0/bus0/target0/lun0/disc
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda1 -> ide/host0/bus0/target0/lun0/part1
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda2 -> ide/host0/bus0/target0/lun0/part2
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda3 -> ide/host0/bus0/target0/lun0/part3
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda4 -> ide/host0/bus0/target0/lun0/part4
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda5 -> ide/host0/bus0/target0/lun0/part5
> lr-xr-xr-x    1 root     root           33 Nov 27  2001 hda6 -> ide/host0/bus0/target0/lun0/part6
> lr-xr-xr-x    1 root     root           32 Nov 27  2001 hdc -> ide/host0/bus1/target0/lun0/disc
> 
> [greg@localhost /dev]$ cat /proc/partitions 
> major minor  #blocks  name
> 
>    8     0    8925000 scsi/host0/bus0/target0/lun0/disc
>    8     1     136521 scsi/host0/bus0/target0/lun0/part1
>    8     2    8787555 scsi/host0/bus0/target0/lun0/part2
>   22     0     244736 ide/host0/bus1/target0/lun0/disc
>    3     0   14114520 ide/host0/bus0/target0/lun0/disc
>    3     1    4200966 ide/host0/bus0/target0/lun0/part1
>    3     2     136552 ide/host0/bus0/target0/lun0/part2
>    3     3      16065 ide/host0/bus0/target0/lun0/part3
>    3     4          1 ide/host0/bus0/target0/lun0/part4
>    3     5    1052226 ide/host0/bus0/target0/lun0/part5
>    3     6    8707198 ide/host0/bus0/target0/lun0/part6
> 
> My /etc/fstab contains:
> /dev/hdc        /mnt/ext2       ext3            nosuid,noauto,nodev,user                1 2
> 
> [greg@localhost /dev]$ mount /mnt/ext2/
> mount: wrong fs type, bad option, bad superblock on /dev/hdc,
>        or too many mounted file systems
> 
> 
> 	Grégoire
> ________________________________________________________________
> http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch
> -


-- 

Paul

Email: 
paul@paulbristow.net
Web: 
http://paulbristow.net
ICQ: 
11965223


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't acess ide ZIP under 2.4.16 with devfs
  2001-11-27 20:59 ` Paul Bristow
@ 2001-11-27 21:11   ` Gregoire Favre
  2001-11-27 21:20     ` Gregoire Favre
  0 siblings, 1 reply; 5+ messages in thread
From: Gregoire Favre @ 2001-11-27 21:11 UTC (permalink / raw)
  To: Paul Bristow; +Cc: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 4664 bytes --]

On Tue, Nov 27, 2001 at 09:59:49PM +0100, Paul Bristow wrote:
> Gregoire,
> 
> I'm working (right this minute) on devfs support for ide-floppy
> 
> but... your problem doesn't look like an ide-floppy/devfs problem.
> 
> On my system, the output from fdisk on a zip 250 looks like
> 
>  [root@zoltar ide]# fdisk /dev/hdf
> 
>   Command (m for help): p
> 
>   Disk /dev/hdf: 64 heads, 32 sectors, 239 cylinders
>   Units = cylinders of 2048 * 512 bytes
> 
>      Device    Boot    Start       End    Blocks   Id  System
>      /dev/hdf4   *         1       239    244720    6  FAT16

Well, I have of course tried this (not in fstab, but in
sudo mount -t ext3 /dev/ide/host0/bus1/target0/lun0/disc /mnt/ext2/

My ZIP 250 isn't shown at all correctly: all infos are the one from my
first HD hda... even if I call /dev/hdc or
/dev/ide/host0/bus1/target0/lun0/disc...

If that's could help, some more infos:

Nov 27 19:21:08 localhost kernel: Real Time Clock Driver v1.10e
Nov 27 19:21:08 localhost kernel: block: 128 slots per queue, batch=32
Nov 27 19:21:08 localhost kernel: Uniform Multi-Platform E-IDE driver Revision: 6.31
Nov 27 19:21:08 localhost kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Nov 27 19:21:08 localhost kernel: PIIX4: IDE controller on PCI bus 00 dev 21
Nov 27 19:21:08 localhost kernel: PIIX4: chipset revision 1
Nov 27 19:21:08 localhost kernel: PIIX4: not 100%% native mode: will probe irqs later
Nov 27 19:21:08 localhost kernel: hda: IBM-DTTA-371440, ATA DISK drive
Nov 27 19:21:08 localhost kernel: hdc: IOMEGA ZIP 250 ATAPI, ATAPI FLOPPY drive
Nov 27 19:21:08 localhost kernel: ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Nov 27 19:21:08 localhost kernel: ide1 at 0x170-0x177,0x376 on irq 15
Nov 27 19:21:08 localhost kernel: hda: 28229040 sectors (14453 MB) w/462KiB Cache, CHS=1757/255/63
Nov 27 19:21:08 localhost kernel: ide-floppy driver 0.97.sv
Nov 27 19:21:08 localhost kernel: hdc: 244766kB, 489532 blocks, 512 sector size
Nov 27 19:21:08 localhost kernel: hdc: 244736kB, 239/64/32 CHS, 4096 kBps, 512 sector size, 2941 rpm
Nov 27 19:21:08 localhost kernel: hdc: The disk reports a capacity of 250640384 bytes, but the drive only handles 250609664Nov 27 19:21:08 localhost kernel: Partition check:
Nov 27 19:21:08 localhost kernel:  /dev/ide/host0/bus0/target0/lun0: p1 p2 p3 p4 < p5 p6 >
Nov 27 19:21:08 localhost kernel:  /dev/ide/host0/bus1/target0/lun0: unknown partition table
Nov 27 19:21:08 localhost kernel: eepro100.c:v1.09j-t 9/29/99 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html

[root@localhost root]# hdparm -I /dev/hdc

/dev/hdc:

non-removable ATA device, with non-removable media
        Model Number:           IBM-DTTA-371440                         
        Serial Number:                   WK0WKG05742
        Firmware Revision:      T71OA73A
Standards:
        Used: ATA/ATAPI-4 T13 1153D revision 17 
        Supported: 1 2 3 4 
Configuration:
        Logical         max     current
        cylinders       16383   16383
        heads           16      16
        sectors/track   63      63
        bytes/track:    0               (obsolete)
        bytes/sector:   0               (obsolete)
        current sector capacity: 16514064
        LBA user addressable sectors = 28229040
Capabilities:
        LBA, IORDY(can be disabled)
        Buffer size: 462.0kB    ECC bytes: 34   Queue depth: 32
        Standby timer values: spec'd by standard, no device specific minimum
        r/w multiple sector transfer: Max = 16  Current = 0
        DMA: sdma0 sdma1 sdma2 mdma0 mdma1 mdma2 udma0 udma1 *udma2 
             Cycle time: min=120ns recommended=120ns
        PIO: pio0 pio1 pio2 pio3 pio4 
             Cycle time: no flow control=240ns  IORDY flow control=120ns
Commands/features:
        Enabled Supported:
           *    NOP cmd
           *    READ BUFFER cmd
           *    WRITE BUFFER cmd
           *    Host Protected Area feature set
                release interrupt
           *    look-ahead
           *    write cache
           *    Power Management feature set
                Security Mode feature set
                SMART feature set
           *    READ/WRITE DMA QUEUED
Security: 
                supported
        not     enabled
        not     locked
        not     frozen
        not     expired: security count
        not     supported: enhanced erase
        28min for SECURITY ERASE UNIT. 

[root@localhost root]# hdparm -I /dev/hda

Gives the same...

Thanks you very much,

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't acess ide ZIP under 2.4.16 with devfs
  2001-11-27 21:11   ` Gregoire Favre
@ 2001-11-27 21:20     ` Gregoire Favre
  2001-11-27 21:27       ` Gregoire Favre
  0 siblings, 1 reply; 5+ messages in thread
From: Gregoire Favre @ 2001-11-27 21:20 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 311 bytes --]

Hello,

I am also interested of any way I could access my ZIP having devfs, but
I don't have anything against making a mknod or whatever needed...

Thanks you very much,

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can't acess ide ZIP under 2.4.16 with devfs
  2001-11-27 21:20     ` Gregoire Favre
@ 2001-11-27 21:27       ` Gregoire Favre
  0 siblings, 0 replies; 5+ messages in thread
From: Gregoire Favre @ 2001-11-27 21:27 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=unknown-8bit, Size: 509 bytes --]

On Tue, Nov 27, 2001 at 10:20:42PM +0100, Gregoire Favre wrote:
> Hello,
> 
> I am also interested of any way I could access my ZIP having devfs, but
> I don't have anything against making a mknod or whatever needed...
> 
> Thanks you very much,

Oups, sorry for the posts:
sudo MAKEDEV -d /tmp/esa hdc
sudo mount -t ext3 /tmp/esa/hdc /mnt/ext2/

Works just great ;-)

	Grégoire
________________________________________________________________
http://ulima.unil.ch/greg ICQ:16624071 mailto:greg@ulima.unil.ch

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-11-27 21:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-11-27 19:21 Can't acess ide ZIP under 2.4.16 with devfs Gregoire Favre
2001-11-27 20:59 ` Paul Bristow
2001-11-27 21:11   ` Gregoire Favre
2001-11-27 21:20     ` Gregoire Favre
2001-11-27 21:27       ` Gregoire Favre

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.