Have anyone tried to mount a Mac Syquest cartridge on a Linux system? I tried but Linux was not able to read the partition table. I am using Linux 2.0.30, aha152x SCSI driver and hfs 0.95.
-- Ambrose Li. acli@mingpaoxpress.com. Ming Pao Newspapers (Canada) Ltd., EDP department. 1355 Huntingwood Drive, Scarborough, Ontario, M1S 3J1 Canada. Voice +1 416 321 0088 Fax +1 416 321 9663.
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 5 May 1997, Ambrose Li wrote:
No problem, use /dev/sda instead /dev/sda[1-n] from my fstab: /dev/sda /MACINTOSH/sda hfs rw,noauto,user 1 1 hope this helps
Have anyone tried to mount a Mac Syquest cartridge on a Linux system? I tried but Linux was not able to read the partition table. I am using Linux 2.0.30, aha152x SCSI driver and hfs 0.95.
-- Ambrose Li. acli@mingpaoxpress.com. Ming Pao Newspapers (Canada) Ltd., EDP department. 1355 Huntingwood Drive, Scarborough, Ontario, M1S 3J1 Canada. Voice +1 416 321 0088 Fax +1 416 321 9663.
Holger Dunkel | Bunsenstr. 13-15 | PGP-Key: finger:dunkel@snake.physik4.gwdg.de IV. Physikalisches Institut | Phone: (Germany) 0551/39-7699 37073 Goettingen/Germany | native language: German E-Mail: dunkel@physik4.gwdg.de | http://www.physik4.gwdg.de/~dunkel
Dear Ambrose,
Ambrose Li wrote:
Have anyone tried to mount a Mac Syquest cartridge on a Linux system? I tried but Linux was not able to read the partition table.
[In case, Holger's message did not help You.]
This message is of little or no concern to You when accessing Macintosh volumes. The Macintosh uses a completely different partition table format than PCs. The Linux kernel itself - being a mainly PC-oriented OS - can not (yet) recognize a Macintosh partition table - as it states it. Of course this also means, that the usual partition devices (eg. sda1) become unaccessible, so You can only access the base devices (eg. sda).
For Macintosh paritioning purposes You may choose to use the MkLinux pdisk tool (able to read/write Macintosh partition tables, just like fdisk does with PC partitions; from ver. 0.4 also includes Mac application). However, simply for accessing (reading/writing) an already existing Macintosh volume You do not need to use that tool.
For reading/writing purposes You can use:
1. hfsutils, which is a package consisting of command line and/or X (Tcl/Tk) based tools for essentially replicating the functionality of ls, cp, mkdir, rmdir, rm, mkfs, etc. for HFS volumes (includes graphical frontend) PROs: completely userland solution - no need to be root to do insmod/modprobe mkfs functionality - able to create Macintosh volumes[*] CONs: completely userland solution - can only be used manually
2. hfs-fs, which is a kernel filesystem module (written by Paul H. Hargrove) PROs: * completely kernel solution - VFS module, any program can take advantage of * special compatibility modes for netatalk and CAP - seamless integration CONs: * completely kernel solution - need to become root to do insmod/modprobe * no mkfs functionality - can not create new volumes
Since both are HFS, You have the advantage of being able to read something written by the other (note: side effect: Macintoshes can also read and write these volumes :-), and this way You can eliminate some of the "CON"s.
[* - I have a concern about how to create a completely Macintosh friendly HFS partition map and volume(s) from scratch without using any Mac tools. Any help appreciated.]
I am using Linux 2.0.30, aha152x SCSI driver and hfs 0.95.
You do not state, whether You use hfsutils (which currently is at least at version 2.0), or hfs-fs (which has got its version 0.8.4 announced a just couple of weeks ago) [or did I miss any new announcements?].
I would recommend upgrading to hfs-fs 0.8.4 in case You do not yet have that, or have an older version.
Hope this helps, and I did not tell You too much things You already knew. Mail me, if You have additional concerns.
Andras Kadinger bandit@freeside.elte.hu
In article 336E9FC3.32BD@freeside.elte.hu, Andras Kadinger hfs-interest@ccs.neu.edu wrote:
I am using Linux 2.0.30, aha152x SCSI driver and hfs 0.95.
You do not state, whether You use hfsutils (which currently is at least at version 2.0), or hfs-fs (which has got its version 0.8.4 announced a just couple of weeks ago) [or did I miss any new announcements?].
It was hfs-fs 0.95, one version after version 0.8.4.
I'll grab a Mac Syquest from home tomorrow and try once more (with both hfs tools); the cartridge that I talked about is now with a colleague in another department.
-- Ambrose Li. acli@mingpaoxpress.com. Ming Pao Newspapers (Canada) Ltd., EDP department. 1355 Huntingwood Drive, Scarborough, Ontario, M1S 3J1 Canada. Voice +1 416 321 0088 Fax +1 416 321 9663.
Hello Holger & Andras,
I have just tried both hfs-fs and hfsutils, and they both failed to read the Syquest. However, it looks more like it is the SCSI code that is not recognizing the disk, not the two hfs packages.
I am not sure if I have done anything wrong (perhaps even obviously wrong), since I am not very familiar with interfacing SCSI devices. Perhaps you or someone can look at what I did and be able to tell me if something I did is not right?
The software I used are: Linux kernel 2.0.30 hfs-fs 0.95 hfsutils 1.17b
What I did to load the SCSI driver:
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# insmod aha152x aha152x=0x340,11 aha152x: BIOS test: passed, detected 1 controller(s) aha152x0: vital data: PORTBASE=0x340, IRQ=11, SCSI ID=7, reconnect=enabled, parity=enabled, synchronous=disabled, delay=100, extended translation=disabled aha152x: trying software interrupt, ok. scsi1 : Adaptec 152x SCSI driver; $Revision: 1.18 $ scsi : 1 host. Vendor: SyQuest Model: SQ5110C Rev: 4AA0 Type: Direct-Access ANSI SCSI revision: 02 Detected scsi removable disk sda at scsi1, channel 0, id 0, lun 0 SCSI device sda: hdwr sector= 512 bytes. Sectors= 173456 [84 MB] [0.1 GB] sda: Write Protect is off sda:scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 0 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0x40 0x00 0x00 0x00 0x19 0x00 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 unable to read partition table bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
What I did to mount the Syquest using hfs-fs:
(I have set my /syquest in the fstab like Holger suggested.)
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# mount /syquest/ scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 0 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0xc0 0x00 0x00 0x00 0x19 0x00 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 hfs_fs: unable to read block 0x00000000 from dev 08:00 hfs_fs: Unable to read block 0. mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
What I did to mount the Syquest using hfsutils:
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# hmount /dev/sda scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 2 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0xc0 0x00 0x00 0x00 0x19 0x02 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 hmount: /dev/sda: error reading from device (I/O error) bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
The disk itself is fine, as a real Macintosh can read it.
-- Ambrose Li. acli@mingpaoxpress.com. Ming Pao Newspapers (Canada) Ltd., EDP department. 1355 Huntingwood Drive, Scarborough, Ontario, M1S 3J1 Canada. Voice +1 416 321 0088 Fax +1 416 321 9663.
-----BEGIN PGP SIGNED MESSAGE-----
Lets check from bottom to top: a) Check the termination. Is the Syquest internaly terminated or do you need an external terminator ?
b) loading SCSI drivers bash# insmod aha152x aha152x=0x340,11
I am using modprobe on a ncr53c8xx and i am lazy, so my load comand looks like this: /sbin/modprobe scsi
this works due to a line alias scsi ncr53c8xx # NCR Driver in "/etc/conf.modules"
Checking the modules with /sbin/lsmod gives: Module: #pages: Used by: sncr53c8xx 9 0 scsi_mod 10 [ncr53c8xx] 1
be sure that scsi_mod is loaded. You may load it "by hand" with insmod but i recommend using modprobe (if autoprobing fails and you need to deliver IO ant IRQ look at /usr/src/linux-2.0.28/Documentation/modules.txt ).
c) Now check for block io (as root). dd if=/dev/sda of=/dev/null count=1000 should read blocks from your drive without errors. If this all works, you may proceed by mounting the filesystem.
hope this helps Holger
On Thu, 8 May 1997, Ambrose Li wrote:
Hello Holger & Andras,
I have just tried both hfs-fs and hfsutils, and they both failed to read the Syquest. However, it looks more like it is the SCSI code that is not recognizing the disk, not the two hfs packages.
I am not sure if I have done anything wrong (perhaps even obviously wrong), since I am not very familiar with interfacing SCSI devices. Perhaps you or someone can look at what I did and be able to tell me if something I did is not right?
The software I used are: Linux kernel 2.0.30 hfs-fs 0.95 hfsutils 1.17b
What I did to load the SCSI driver:
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# insmod aha152x aha152x=0x340,11 aha152x: BIOS test: passed, detected 1 controller(s) aha152x0: vital data: PORTBASE=0x340, IRQ=11, SCSI ID=7, reconnect=enabled, parity=enabled, synchronous=disabled, delay=100, extended translation=disabled aha152x: trying software interrupt, ok. scsi1 : Adaptec 152x SCSI driver; $Revision: 1.18 $ scsi : 1 host. Vendor: SyQuest Model: SQ5110C Rev: 4AA0 Type: Direct-Access ANSI SCSI revision: 02 Detected scsi removable disk sda at scsi1, channel 0, id 0, lun 0 SCSI device sda: hdwr sector= 512 bytes. Sectors= 173456 [84 MB] [0.1 GB] sda: Write Protect is off sda:scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 0 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0x40 0x00 0x00 0x00 0x19 0x00 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 unable to read partition table bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
What I did to mount the Syquest using hfs-fs:
(I have set my /syquest in the fstab like Holger suggested.)
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# mount /syquest/ scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 0 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0xc0 0x00 0x00 0x00 0x19 0x00 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 hfs_fs: unable to read block 0x00000000 from dev 08:00 hfs_fs: Unable to read block 0. mount: wrong fs type, bad option, bad superblock on /dev/sda, or too many mounted file systems bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
What I did to mount the Syquest using hfsutils:
---------- 8< ---------- cut here ---------- 8< ---------- cut here ---------- bash# hmount /dev/sda scsi1: MEDIUM ERROR on channel 0, id 0, lun 0, CDB: 0x03 00 00 00 10 00 extra data not valid Current error sd08:00: sns = 70 3 ASC=19 ASCQ= 2 Raw sense data:0x70 0x00 0x03 0x00 0x00 0x00 0x00 0x0a 0xc0 0x00 0x00 0x00 0x19 0x02 0x00 0x00 scsidisk I/O error: dev 08:00, sector 0 hmount: /dev/sda: error reading from device (I/O error) bash# ---------- 8< ---------- cut here ---------- 8< ---------- cut here ----------
The disk itself is fine, as a real Macintosh can read it.
-- Ambrose Li. acli@mingpaoxpress.com. Ming Pao Newspapers (Canada) Ltd., EDP department. 1355 Huntingwood Drive, Scarborough, Ontario, M1S 3J1 Canada. Voice +1 416 321 0088 Fax +1 416 321 9663.
Holger Dunkel | Bunsenstr. 13-15 | PGP-Key: finger:dunkel@snake.physik4.gwdg.de IV. Physikalisches Institut | Phone: (Germany) 0551/39-7699 37073 Goettingen/Germany | native language: German E-Mail: dunkel@physik4.gwdg.de | http://www.physik4.gwdg.de/~dunkel