[Bug 666265] New: Kernel support for Amiga hard disk drive
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c0 Summary: Kernel support for Amiga hard disk drive Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: i586 OS/Version: openSUSE 11.3 Status: NEW Severity: Enhancement Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: AmigaPhil@ping.be QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.2.13) Gecko/20101203 SUSE/3.6.13-0.2.1 Firefox/3.6.13 The Amiga Fast File System (affs) is supported by the kernel, but real Amiga HDD can't be accessed because of a missing Amiga partition table support. Reproducible: Always Steps to Reproduce: 1. Install an Amiga hard disk drive in the machine 2. Boot the openSUSE system 3. Check the availability of the disk with fdisk Actual Results: Linux1:~ # fdisk -l Disk /dev/sda: 2276 MB, 2276762112 bytes 71 heads, 62 sectors/track, 1010 cylinders Units = cylinders of 4402 * 512 = 2253824 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Disk /dev/sda doesn't contain a valid partition table Expected Results: The tested HDD had 5 partitions which should have been shown as sda1, sda2 ... Linux1:~ # cat /boot/config-`uname -r` | grep -i affs CONFIG_AFFS_FS=m Linux1:~ # modinfo affs filename: /lib/modules/2.6.34.7-0.7-default/kernel/fs/affs/affs.ko license: GPL description: Amiga filesystem support for Linux srcversion: F7CC8EAAB523A5566DDB101 depends: vermagic: 2.6.34.7-0.7-default SMP mod_unload modversions 586TSC Linux1:~ # grep -i Amiga /boot/config-2.6.34.7-0.7-default # CONFIG_AMIGA_PARTITION is not set -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c1 Philippe Duchenne <AmigaPhil@ping.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Severity|Enhancement |Normal --- Comment #1 from Philippe Duchenne <AmigaPhil@ping.be> 2011-01-29 22:19:48 UTC --- I finally achieved to compile a kernel with the option "CONFIG_AMIGA_PARTITION=y", but this didn't solved the access to the Amiga HDD. fdisk still report that "Disk /dev/sda doesn't contain a valid partition table". However, I did make a disk image of the drive using the "dd" command, and successfully mounted that image under Amiga emulation (E-UAE). (So switching this report from "Enhancement" to "bug" with a low priority.) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c2 --- Comment #2 from Philippe Duchenne <AmigaPhil@ping.be> 2011-01-29 22:23:49 UTC --- I suspect that the kernel cannot deal with Amiga's RDB (Rigid Disk Block). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c3 Jeff Mahoney <jeffm@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |jeffm@novell.com InfoProvider| |AmigaPhil@ping.be --- Comment #3 from Jeff Mahoney <jeffm@novell.com> 2011-02-10 00:45:59 UTC --- The code seems to support it with CONFIG_AMIGA_PARTITION=y. Are there any log messages? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c4 Philippe Duchenne <AmigaPhil@ping.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|AmigaPhil@ping.be | --- Comment #4 from Philippe Duchenne <AmigaPhil@ping.be> 2011-02-10 20:48:25 UTC --- I can't test the physical HD anymore as I removed it from the system (it was not in good health and was very noisy). However, I still have the dd image of it (the one I can access from Amiga emulation). I tried to mount it on Linux: amigaphil@Linux1:~> zcat /proc/config.gz | grep AMIGA CONFIG_AMIGA_PARTITION=y amigaphil@Linux1:~> su - Mot de passe : Linux1:~ # mount -t affs -r /home/amigaphil/AmigaD/Amiga1.img /home/amigaphil/test mount: /home/amigaphil/AmigaD/Amiga1.img is not a block device (maybe try `-o loop'?) Linux1:~ # mount -t affs -r -o loop /home/amigaphil/AmigaD/Amiga1.img /home/amigaphil/test mount: wrong fs type, bad option, bad superblock on /dev/loop0, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Linux1:~ # dmesg | tail [ 53.314382] platform mga_warp.0: firmware: requesting matrox/g400_warp.fw [ 56.684140] end_request: I/O error, dev fd0, sector 0 [ 56.820126] end_request: I/O error, dev fd0, sector 0 [ 63.140094] eth0: no IPv6 routers present [ 112.005374] fuse init (API version 7.13) [ 264.942820] npviewer.bin[2816]: segfault at 0 ip (null) sp bfd624dc error 4 in npviewer.bin[8048000+2a000] [ 265.094201] npviewer.bin[2826]: segfault at 0 ip (null) sp bf906b6c error 4 in npviewer.bin[8048000+2a000] [ 265.217901] npviewer.bin[2836]: segfault at 0 ip (null) sp bfd8e67c error 4 in npviewer.bin[8048000+2a000] [ 265.351538] npviewer.bin[2846]: segfault at 0 ip (null) sp bfcf912c error 4 in npviewer.bin[8048000+2a000] [ 557.088106] AFFS: No valid root block on device loop0 I can attach here a dump of the root block, but, erm, you have to tell me how to do that (I believe it is with the dd command but don't know the parameters to pass). (Is there a built-in command in Linux to show the content of a binary as hex/ascii ?) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c5 --- Comment #5 from Philippe Duchenne <AmigaPhil@ping.be> 2011-02-14 22:26:51 UTC ---
I can attach here a dump of the root block, but, erm, you have to tell me how to do that (I believe it is with the dd command but don't know the parameters to pass). (Is there a built-in command in Linux to show the content of a binary as hex/ascii ?)
Ok, I found how to do that : Linux1:/home/amigaphil/AmigaD # dd if=Amiga1.img of=Amiga1.root count=16 16+0 records in 16+0 records out 8192 bytes (8.2 kB) copied, 0.0266258 s, 308 kB/s Linux1:/home/amigaphil/AmigaD # hexdump -C Amiga1.root 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000400 52 44 53 4b 00 00 00 40 a9 ce aa f3 00 00 00 07 |RDSK...@........| 00000410 00 00 02 00 00 00 00 40 ff ff ff ff 00 00 00 03 |.......@........| 00000420 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................| * 00000440 00 00 50 6b 00 00 00 d8 00 00 00 01 00 00 00 00 |..Pk............| 00000450 00 00 50 6b 00 00 00 00 00 00 00 00 00 00 00 00 |..Pk............| 00000460 00 00 50 6b 00 00 50 6b 00 00 00 03 00 00 00 00 |..Pk..Pk........| 00000470 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000480 00 00 00 00 00 00 00 d7 00 00 00 01 00 00 50 6a |..............Pj| 00000490 00 00 00 d7 00 00 00 00 00 00 00 08 00 00 00 00 |................| 000004a0 51 55 41 4e 54 55 4d 20 56 49 4b 49 4e 47 20 32 |QUANTUM VIKING 2| 000004b0 2e 33 20 57 53 45 20 20 38 38 30 38 00 00 00 00 |.3 WSE 8808....| 000004c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000600 50 41 52 54 00 00 00 40 67 27 10 cc 00 00 00 07 |PART...@g'......| 00000610 00 00 00 04 00 00 00 01 00 00 00 00 00 00 00 00 |................| 00000620 00 00 00 00 03 48 44 30 00 00 00 00 00 00 00 00 |.....HD0........| 00000630 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000680 00 00 00 10 00 00 00 80 00 00 00 00 00 00 00 01 |................| 00000690 00 00 00 01 00 00 00 d8 00 00 00 02 00 00 00 00 |................| 000006a0 00 00 00 00 00 00 00 01 00 00 03 b7 00 00 00 40 |...............@| 000006b0 00 00 00 00 00 ff ff ff ff ff ff ff ff ff ff ff |................| 000006c0 44 4f 53 03 00 00 00 00 00 00 00 00 00 00 00 00 |DOS.............| 000006d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000800 50 41 52 54 00 00 00 40 67 26 f9 ec 00 00 00 07 |PART...@g&......| 00000810 00 00 00 05 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000820 00 00 00 00 03 48 44 31 00 00 00 00 00 00 00 00 |.....HD1........| 00000830 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000880 00 00 00 10 00 00 00 80 00 00 00 00 00 00 00 01 |................| 00000890 00 00 00 01 00 00 00 d8 00 00 00 02 00 00 00 00 |................| 000008a0 00 00 00 00 00 00 03 b8 00 00 16 3e 00 00 00 e0 |...........>....| 000008b0 00 00 00 00 00 ff ff ff ff ff ff ff 00 00 00 00 |................| 000008c0 44 4f 53 03 00 00 00 00 00 00 00 00 00 00 00 00 |DOS.............| 000008d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000a00 50 41 52 54 00 00 00 40 67 26 c9 e1 00 00 00 07 |PART...@g&......| 00000a10 00 00 00 06 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000a20 00 00 00 00 03 48 44 32 00 00 00 00 00 00 00 00 |.....HD2........| 00000a30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000a80 00 00 00 10 00 00 00 80 00 00 00 00 00 00 00 01 |................| 00000a90 00 00 00 01 00 00 00 d8 00 00 00 02 00 00 00 00 |................| 00000aa0 00 00 00 00 00 00 16 3f 00 00 33 e0 00 00 00 c0 |.......?..3.....| 00000ab0 00 00 00 00 00 ff ff ff ff ff ff ff 00 00 00 00 |................| 00000ac0 44 4f 53 03 00 00 00 00 00 00 00 00 00 00 00 00 |DOS.............| 00000ad0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000c00 50 41 52 54 00 00 00 40 67 26 a1 7f 00 00 00 07 |PART...@g&......| 00000c10 00 00 00 07 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000c20 00 00 00 00 03 48 44 33 00 00 00 00 00 00 00 00 |.....HD3........| 00000c30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000c80 00 00 00 10 00 00 00 80 00 00 00 00 00 00 00 01 |................| 00000c90 00 00 00 01 00 00 00 d8 00 00 00 02 00 00 00 00 |................| 00000ca0 00 00 00 00 00 00 33 e1 00 00 3e fe 00 00 00 60 |......3...>....`| 00000cb0 00 00 00 00 00 ff ff ff ff ff ff ff 00 00 00 00 |................| 00000cc0 44 4f 53 03 00 00 00 00 00 00 00 00 00 00 00 00 |DOS.............| 00000cd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000e00 50 41 52 54 00 00 00 40 67 26 84 bc 00 00 00 07 |PART...@g&......| 00000e10 ff ff ff ff 00 00 00 00 00 00 00 00 00 00 00 00 |................| 00000e20 00 00 00 00 03 48 44 34 00 00 00 00 00 00 00 00 |.....HD4........| 00000e30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00000e80 00 00 00 10 00 00 00 80 00 00 00 00 00 00 00 01 |................| 00000e90 00 00 00 01 00 00 00 d8 00 00 00 02 00 00 00 00 |................| 00000ea0 00 00 00 00 00 00 3e ff 00 00 50 6a 00 00 00 a0 |......>...Pj....| 00000eb0 00 00 00 00 00 ff ff ff ff ff ff ff 00 00 00 00 |................| 00000ec0 44 4f 53 03 00 00 00 00 00 00 00 00 00 00 00 00 |DOS.............| 00000ed0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................| * 00002000 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c Greg Kroah-Hartman <gregkh@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |jeffm@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c6 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |AmigaPhil@ping.be --- Comment #6 from Jeff Mahoney <jeffm@suse.com> 2011-10-27 02:18:49 UTC --- Ok, your loopback test won't work because you're not accounting for the offset of the partition table. losetup -o <offset> can work around that, as can using device mapper to map the partitions to pseudo devices.
From a quick look at your dump, it looks like your partition table may be corrupt.
Do you happen to have a the log from when the physical disk was attached? I expect it to say something about the checksum. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c7 Philippe Duchenne <AmigaPhil@ping.be> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|AmigaPhil@ping.be | --- Comment #7 from Philippe Duchenne <AmigaPhil@ping.be> 2011-11-05 20:01:58 UTC --- I have not touched the disk image since long, as I can now access the partitions and eventually copy/move the files to another filesystem from Amiga emulation (UAE). I remember I did try to change the offset, so that the RDSK letters were the first 4 bytes, but it didn't work. (not sure, but IIRC, I did use the "root" option of affs to do that.) Was this useless or did I mess with a wrong value, I don't know. I don't know however how to find the offset of, let's say, the first partition. I first thought too the partition table was corrupted, but it's not the case. Real Amiga filesystem has no trouble with it. UAE has no trouble to recognize the partitions either. I guess that partition table is just less usual and not properly identified by AFFS and the partition table support. I don't have any log from when the disk was installed, sorry. I can't test the physical disk anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=666265 https://bugzilla.novell.com/show_bug.cgi?id=666265#c8 Jeff Mahoney <jeffm@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #8 from Jeff Mahoney <jeffm@suse.com> 2011-11-11 14:18:56 UTC --- Ok. I'm afraid I'm going to have to ask you to pursue this using bugzilla.kernel.org. We definitely don't patch the Amiga partition table code and perhaps one of the maintainers of that code can help you. For now, I'm going to close this as WONTFIX. I just don't have the time to pursue it. If you find a solution with kernel.org, please re-open and we'll incorporate the patch. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com