X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Rod Pemberton" Newsgroups: comp.os.msdos.djgpp Subject: Re: ext2tools? Date: Sun, 08 Nov 2015 15:01:44 -0500 Organization: Aioe.org NNTP Server Lines: 44 Message-ID: References: <5551b264-8390-4714-991e-2fce4b35d6bc AT googlegroups DOT com> NNTP-Posting-Host: n4wpt9zq8xR26Ttf9mo2BA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Complaints-To: abuse AT aioe DOT org User-Agent: Opera Mail/12.16 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Bytes: 2569 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Fri, 06 Nov 2015 23:41:44 -0500, 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.