Hello. I don't know if this is possible but it would seem a bit limited if it is not as loading would also be affected. But can the CFE dir command read a specific partition or only the first on every drive?
I read up on CFE docs but see no mention of it. I've also experimented with CFE itself and used the help command but there is no mention of it.
I'd like to go through my partitions and read the contents with CFE. Is this possible?
How to use CFE dir command on a partition?
- tonyw
- AmigaOS Core Developer
- Posts: 1479
- Joined: Wed Mar 09, 2011 1:36 pm
- Location: Sydney, Australia
Re: How to use CFE dir command on a partition?
AFAIK the only Amiga file system that CFE can read and understand is FFS. That's why the boot partition containing amigaboot.of must be in an FFS partition.
cheers
tony
tony
Re: How to use CFE dir command on a partition?
Thanks. This looks to be the case. My CFE guide has gone missing but I found another online with just enough info to tell it can be specified in the following format:
According to Locations and Filesystems in the following PDF this should be possible. FFS, FAT and Ext2 are meant to be supported. FFS and FAT work but Ext2 does not here.
https://amigaone.files.wordpress.com/20 ... 00_cfe.pdf
Where Part is the AmigaDOS device name. Now this works for my one FFS partition. But it fails for all other partitions. The other ones are SFS but I also have two Ext3 partitions which should be readable by an Ext2 filesystem. But all I get are errors. I even formatted a USB stick as Ext2, first with an RDB, since it already had one. And then with an MBR. CFE failed to read it on both counts.ideM.N,Part:
According to Locations and Filesystems in the following PDF this should be possible. FFS, FAT and Ext2 are meant to be supported. FFS and FAT work but Ext2 does not here.
https://amigaone.files.wordpress.com/20 ... 00_cfe.pdf
Re: How to use CFE dir command on a partition?
Assuming that you are NOT using capital letters in the filesystem names like you are in the above quote, could it be possible that CFE has been updated since the above PDF was written and will recognize ext3 as a filesystem (-fs=ext3) ??Hypex wrote: According to Locations and Filesystems in the following PDF this should be possible. FFS, FAT and Ext2 are meant to be supported. FFS and FAT work but Ext2 does not here.
https://amigaone.files.wordpress.com/20 ... 00_cfe.pdf
AmigaOne X1000 with 2GB memory - OS4.1 FE
Re: How to use CFE dir command on a partition?
I can load amigaboot.of from my CF (has 2GB Fat and 2GB Ext2) and from USB-Stick (Lubuntu16.10 has a ext2-boot)Hypex wrote: According to Locations and Filesystems in the following PDF this should be possible. FFS, FAT and Ext2 are meant to be supported. FFS and FAT work but Ext2 does not here.
https://amigaone.files.wordpress.com/20 ... 00_cfe.pdf
dir -fs=ext2 cf0:amigaboot.of or dir -fs=ext2 usbdisk0:amigaboot.of as examble.
X1000 RadeonHD5450 4GB (2x2GB) DDR2-PC2-8500 Kingston HyperX 5-5-5-5-15 OS4.1.6 & Lubuntu13.04/mintppc11 with Kernel 3.8.7/3.9
Re: How to use CFE dir command on a partition?
That would be good. Yes the capitals were only used above. I don't know about Ex3. Ex2 should read Ext3 also as Ext3 is pretty much Ext2 plus journaling. But CFE itself gives no indication of it. Only Ext2.xenic wrote:Assuming that you are NOT using capital letters in the filesystem names like you are in the above quote, could it be possible that CFE has been updated since the above PDF was written and will recognize ext3 as a filesystem (-fs=ext3) ??
Re: How to use CFE dir command on a partition?
Wouldn't amigaboot.of need to be a directory in the above example?zappa2009 wrote:dir -fs=ext2 cf0:amigaboot.of
In any case I got it going. I forgot that the X1000 has the same problem as the A1-XE when booting and doesn't detect USB devices. Well not unless you get it to rescan the bus. The reason I didn't think of this is that I boot a Linux kernel off a USB key plugged into an Apple keyboard. So for some reason CFE picks up the USB key in the Apple hub but not when plugged directly into the X1000. They don't make these AmigaOne machines without funny quirks.
Now to make a few partitions and see what happens.
Re: How to use CFE dir command on a partition?
Yes , I write down better examples.Hypex wrote:Wouldn't amigaboot.of need to be a directory in the above example?zappa2009 wrote:dir -fs=ext2 cf0:amigaboot.of
dir for device cf0: only
Code: Select all
dir -fs=ext2 cf0:
dir for a Folder in the root of cf0:
Code: Select all
dir -fs=ext2 cf0:Video
Code: Select all
dir -fs=ext2 cf0:Video/Youtube
X1000 RadeonHD5450 4GB (2x2GB) DDR2-PC2-8500 Kingston HyperX 5-5-5-5-15 OS4.1.6 & Lubuntu13.04/mintppc11 with Kernel 3.8.7/3.9
Re: How to use CFE dir command on a partition?
And that is exact reason why it needs an update >:-)tonyw wrote:AFAIK the only Amiga file system that CFE can read and understand is FFS. That's why the boot partition containing amigaboot.of must be in an FFS partition.
Re: How to use CFE dir command on a partition?
According to the guide this is the complete list. We have "amigafs" (AmigaOS FFS2), "ext2", "fat", or "iso" (ISO9660). Seems I couldn't get ext2 to work according to the above. But CFE is strange where it can load from. As I have never been able to load a Linux kernel from HDD. Something corrupts it.vox wrote:And that is exact reason why it needs an update >:-)
Last edited by Hypex on Sat Oct 20, 2018 12:28 pm, edited 1 time in total.