Mail Archives: djgpp/2015/11/08/15:15:10
On Fri, 06 Nov 2015 23:41:44 -0500, <rugxulo AT gmail DOT com> wrote:
> While LTOOLS was popular back in the day, it doesn't work for me.
> I can only blindly guess that it doesn't support such big modern
> hard disks due to compiler limitations (no "long long").
>
> Anyways, I found a 2009-ish port of ext2tools to DJGPP, but it
> may be incomplete. I did fiddle a tiny bit to get it to build,
> but "e2part 128" lists all my partitions as "Unknown". So
> trying to run "e2ls -l /" definitely fails, no matter how
> many env. vars. I try to set.
>
> https://github.com/mmeeks/ext2tools
>
> Just wondering if anyone here has any ideas.
>
AIR, POSIX treats devices as files. This allows you to access
raw devices. DOS doesn't have the functionality to treat devices
as files built-in. DJGPP simulates some of the POSIX devices
internally, but not all of them. POSIX programs then perform
various ioctl()'s on the open file for the device. E.g.,
Theodore Tso's FDISK for Linux needs the ability to open a
disk drive as a file, a partition as a file, plus do ioctls, etc.
I'd suspect you're seeing the same issue with LTOOLS, if
you're attempting to use them from DOS or compiled for DOS.
If you're using LTOOLS for Windows, I'm not sure why you'd
have an issue, but I'd also wonder why you posted here about it.
It's probably easiest to go the other direction. Install Linux
and use mount.
DJGPP does have installable file system support, but I've not
used it. See the various __FSEXT* functions in libc.info.
IIRC, Robert Riebisch used this interface in his DOS
port of dmidecode.
Rod Pemberton
--
When El Chapo is the most beloved man in Mexico and Trump is the most hated,
it shows that Mexico is truly fouled up.
- Raw text -