Author Topic: Sharing drive between OS/2 and linux  (Read 1429 times)

Ben Hjelt

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Sharing drive between OS/2 and linux
« on: December 14, 2021, 08:39:16 pm »
Small external drive formatted as JFS on ArcaOS (not with mkfs.jfs -O on linux, did not work) ends up no named in linux and cannot even be mounted manually:
Code: [Select]
wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
A filesystem check shows no errors:
Code: [Select]
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 12/14/2021 21:25:25
The current device is:  /dev/sdb1
Block size in bytes:  4096
Filesystem size in blocks:  7679996
**Phase 1 - Check Blocks, Files/Directories, and  Directory Entries
**Phase 2 - Count links
**Phase 3 - Duplicate Block Rescan and Directory Connectedness
**Phase 4 - Report Problems
**Phase 5 - Check Connectivity
**Phase 6 - Perform Approved Corrections
**Phase 7 - Verify File/Directory Allocation Maps
**Phase 8 - Verify Disk Allocation Maps
 30719984 kilobytes total disk space.
        0 kilobytes in 1 directories.
        0 kilobytes in 0 user files.
        0 kilobytes in extended attributes
    37792 kilobytes reserved for system use.
 30682192 kilobytes are available for use.
File system checked READ ONLY.
Filesystem is clean.

 ??? I would rather not format the drive as FAT32, is network sharing my only real option then?

Sean Casey

  • Full Member
  • ***
  • Posts: 101
  • Karma: +2/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #1 on: December 14, 2021, 09:43:16 pm »
I mount my OS/2 HPFS file systems read/write on Linux. 

Ben Hjelt

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #2 on: December 14, 2021, 09:53:27 pm »
HPFS has that 2GB file size limit, no?

ivan

  • Hero Member
  • *****
  • Posts: 1354
  • Karma: +14/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #3 on: December 14, 2021, 11:25:52 pm »
A lot depends on how you expect to share that drive.  are OS/2 and Linux running on the same computer or separate computers?  If separate computers are they running at the same time and if so how do you connect the drive to both computers?

Also what type od data are you sharing?  I have 2 OS/2 computers, 2 ArcaOS computers and 4 Linux computers that can all share everything on 2 NAS boxes which allows backup as well as file sharing.

You need to define what you want to do, once you know that how to do it will be obvious.  Give us details of your setup and we should be able to give you advice.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 3565
  • Karma: +75/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #4 on: December 15, 2021, 12:25:06 am »
Small external drive formatted as JFS on ArcaOS (not with mkfs.jfs -O on linux, did not work) ends up no named in linux and cannot even be mounted manually:
Code: [Select]
wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.
A filesystem check shows no errors:
Code: [Select]
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 12/14/2021 21:25:25
The current device is:  /dev/sdb1
Block size in bytes:  4096
Filesystem size in blocks:  7679996
**Phase 1 - Check Blocks, Files/Directories, and  Directory Entries
**Phase 2 - Count links
**Phase 3 - Duplicate Block Rescan and Directory Connectedness
**Phase 4 - Report Problems
**Phase 5 - Check Connectivity
**Phase 6 - Perform Approved Corrections
**Phase 7 - Verify File/Directory Allocation Maps
**Phase 8 - Verify Disk Allocation Maps
 30719984 kilobytes total disk space.
        0 kilobytes in 1 directories.
        0 kilobytes in 0 user files.
        0 kilobytes in extended attributes
    37792 kilobytes reserved for system use.
 30682192 kilobytes are available for use.
File system checked READ ONLY.
Filesystem is clean.

 ??? I would rather not format the drive as FAT32, is network sharing my only real option then?

You never said which Linux distribution you're using. At least the fact that fsck.jfs succeeded shows that you have the JFS module installed, I believe. A lot of distributions don't include it or the HPFS module. Debian based ones still do it seems and others can install it.
One thing with OS/2 formatted JFS partitions is that they have no permissions, so unless you do a chown and chmod to make you the owner, they will only mount as root.
Here with Mint, depending on which desktop I'm using (need to reboot to remember, have the stock one and a simpler one installed), clicking on my USB drive in Computer will fail with a permission error or brings up 2 sudo popups that allow me to mount it as root.
I'd guess that you are mounting it with the wrong filesystem based on your errors, especially with fsck.jfs working. Unluckily I forget the mount incarnation needed to do it manually.
Mint also correctly mounts OS/2 JFS with the case insensitive flag.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 3565
  • Karma: +75/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #5 on: December 15, 2021, 05:33:38 am »
Here's how things look here when booted to Mint-Cinnamon. Today it didn't open the USB drives AOS formatted JFS 1 TB volume as sudo but the context menu allows it. Some folders have previously been chown by me. I also took the opportunity to trim my SSD's ArcaOS volumes. /dev/sda7 is my AOS HPFS 4GB boot volume.

Ben Hjelt

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #6 on: December 15, 2021, 09:32:33 am »
Give us details of your setup and we should be able to give you advice.
A couple of linux machines and one ArcaOS 5.0.7 + Windows XP ;D dual boot desktop. The external drive would be a clone of my old thumbdrive that is filled with tools and drivers for many systems. I do have a OpenBSD NAS in use already, maybe carrying a hard drive around is passé.

Mint also correctly mounts OS/2 JFS with the case insensitive flag.
That's why i also use JFS on my Devuan machines (root, home and a case insensitive wine partition).

Ben Hjelt

  • Newbie
  • *
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #7 on: December 15, 2021, 12:00:35 pm »
 :-[ Seems to be a bug in the latest Devuan 4/Debian 11!
The ArcaOS formatted disk can be mounted in Devuan 3/Debian 10:




The partition name encoding seems to be unknown though.
EDIT: fixed by renaming it to all lowercase in linux, displays as uppercase in OS/2
« Last Edit: December 15, 2021, 07:05:41 pm by Ben Hjelt »

Sean Casey

  • Full Member
  • ***
  • Posts: 101
  • Karma: +2/-0
    • View Profile
Re: Sharing drive between OS/2 and linux
« Reply #8 on: December 16, 2021, 04:41:46 am »
HPFS has that 2GB file size limit, no?

Yes, HPFS has a 2GB file size limitation and a 64GB volume size limitation.  I have a 20GB HPFS 386 partition, used by ArcaOS, I mount R/W under Linux.