diff --git a/libr/fs/fs.c b/libr/fs/fs.c index 53ad2d4665..7b58efe078 100644 --- a/libr/fs/fs.c +++ b/libr/fs/fs.c @@ -140,7 +140,7 @@ R_API RFSRoot* r_fs_mount(RFS* fs, const char* fstype, const char* path, ut64 de fstype = (const char *)heapFsType; } if (!(p = r_fs_plugin_get (fs, fstype))) { - R_LOG_ERROR ("Invalid filesystem type"); + R_LOG_ERROR ("Invalid filesystem type '%s'", fstype); free (heapFsType); return NULL; } diff --git a/libr/main/radare2.c b/libr/main/radare2.c index 4a701259f0..bc7c23dc9c 100644 --- a/libr/main/radare2.c +++ b/libr/main/radare2.c @@ -1649,7 +1649,7 @@ R_API int r_main_radare2(int argc, const char **argv) { } if (r->bin->cur && r->bin->cur->bo && r->bin->cur->bo->info && r->bin->cur->bo->info->rclass && !strcmp ("fs", r->bin->cur->bo->info->rclass)) { const char *fstype = r->bin->cur->bo->info->bclass; - r_core_cmdf (r, "m /root %s @ 0", fstype); + r_fs_mount (r->fs, fstype, "/root", 0); } r_core_cmd0 (r, "=!"); // initalize io subsystem mr.iod = r->io ? r_io_desc_get (r->io, mr.fh->fd) : NULL;