mkfs.minix for fedora core 2

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

mkfs.minix for fedora core 2

Postby Lancer » Sat Aug 27, 2005 3:33 am

I'm wanting to play around with making my own bootable floppy distro using BYLD from http://directory.fsf.org/All_Packages_i ... /BYLD.html

The INSTALL can be browsed online at http://dev.gentoo.org/~spyderous/floppy ... .3/INSTALL

I can get past the point where I've copied kernel files into their own tamperable dir, and recompiled them. When I run ./WriteDisk, it ends in...

Code: Select all
Make minix fs on loopdev and mount it
mkfs.minix /dev/loop1 > /dev/null
./WriteDisk: line 101: mkfs.minix: command not found


I realise the problem is that I don't have the command mkfs.minix on my system (Fedora Core 2). I have the following...
mkfs
mkfs.cramfs
mkfs.ext2
mkfs.ext3
mkfs.msdos
mkfs.vfat
...but not the needed mkfs.minix

I've done rpm searches etc, and had a tinker around kernel options but don't see where can go to upgrade this feature. Anyone know where I can grab mkfs.minix for install on Fedora Core 2?
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am

RE: mkfs.minix for fedora core 2

Postby towy71 » Sat Aug 27, 2005 7:39 am

On my debian system it is there and typing the command as root gives:
Code: Select all
debianbox:/home/dick#  mkfs.minix
mkfs.minix (util-linux-2.12p)
Usage: mkfs.minix [-c | -l filename] [-nXX] [-iXX] /dev/name [blocks]
debianbox:/home/dick#

I know that doesn't help you but perhaps it might just be that you need to be root to get it to work

HTH
Dick
still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4263
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

RE: mkfs.minix for fedora core 2

Postby Lancer » Sat Aug 27, 2005 9:41 am

You would be correct. That is how I knew the other mkfs variants... by typing mkfs (as root) and examining what came up in autocompletion. No doubt they are somewhere in /usr/sbin or /sbin directories.

Doesn't not change the fact that I do not have the mysterious mkfs.minix that I am after. I had a good search before asking. Surely someone knows where I can get mkfs.minix for Fedora Core 2 ? Probably it is a part of the system that comes from installing something else.
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am

RE: mkfs.minix for fedora core 2

Postby towy71 » Sat Aug 27, 2005 10:25 am

still looking for that door into summer
User avatar
towy71
Moderator
 
Posts: 4263
Joined: Wed Apr 06, 2005 2:11 pm
Location: wild West Wales

RE: mkfs.minix for fedora core 2

Postby dandnsmith » Sat Aug 27, 2005 10:30 am

The man page for fs suggests checking for currently supported filesystems by looking at /proc/filesystems, and then if you need one (minix) which isn't there either recompile the kernel with support, or load the module.

I remember doing the latter with vfat in the past, but haven't tried it for minix (and don't know what name to invoke)

Correction - just did
modprobe minix
and lsmod showed it was now loaded!

but I still don't know what to do to make the command available for use - possibly if its added to the modprobe.conf list then something else will happen (no - how could it?)
Derek
dandnsmith
LXF regular
 
Posts: 314
Joined: Fri Apr 15, 2005 10:01 am
Location: Berks, UK

RE: mkfs.minix for fedora core 2

Postby ollie » Sat Aug 27, 2005 10:35 am

They are all located in /sbin on SuSE 9.3, I think they would be pretty standard across x86 based systems. As a last resort I can e-mail mkfs.minix as an attachment if you PM me.
User avatar
ollie
Moderator
 
Posts: 2749
Joined: Mon Jul 25, 2005 11:26 am
Location: Bathurst NSW Australia

RE: mkfs.minix for fedora core 2

Postby jjmac » Sat Aug 27, 2005 10:51 am

Howdy Lancer,


Iv'e got it as part of the util-linux package (debian) ... Along with,

http://www.kernel.org/pub/linux/utils/util-linux/ has source
http://mirrors.usc.edu/pub/linux/distri ... ra/core/2/ had src rpms

google seems to just point at srcs and RH/Fedora links that seem to only have src pakages as well ?!


jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: mkfs.minix for fedora core 2

Postby Lancer » Sat Aug 27, 2005 9:25 pm

Thanks for your offer for the binary, ollie. For now I'll try to get hold of some native FC2 ones in case I hash functionality somewheres with distro related dependancy hell.

Other than that, I guess a source RPM is better than nothing. I installed jjmac's http://mirrors.usc.edu/pub/linux/distri ... 18.src.rpm and then ran an updatedb so I could quickly find where everything wwent.

Seems that my /usr/src/redhat/SOURCES/ directory now contains...

cramfs-1.1-blocksize_and_quiet.patch
cramfs-1.1-pagesize.patch
cramfs-1.1.tar.gz
floppy-0.12.tar.gz
kbdrate.tar.gz
mount-2.10r-kudzu.patch
mount-2.11y-selinux.patch
nologin.8
nologin.c
util-linux-2.11a-gecossize.patch
util-linux-2.11f-rawman.patch
util-linux-2.11n-loginutmp-66950.patch
util-linux-2.11n-mount.patch
util-linux-2.11r-ctty3.patch
util-linux-2.11r-nochkdupexe.patch
util-linux-2.11r-ownerumount.patch
util-linux-2.11w-moretc.patch
util-linux-2.11w-swaponsymlink-57300.patch
util-linux-2.11y-alldevs-101772.patch
util-linux-2.11y-blkgetsize-81069.patch
util-linux-2.11y-chsh-103004.patch
util-linux-2.11y-fdisksegv-103954.patch
util-linux-2.11y-idecd-102114.patch
util-linux-2.11y-ipcs-84243-86285.patch
util-linux-2.11y-login-32bit-lastlog-88574.patch
util-linux-2.11y-moremisc.patch
util-linux-2.11y-mount-97381.patch
util-linux-2.11y-mountman-90588.patch
util-linux-2.11y-multibyte.patch
util-linux-2.11y-partx-68284.patch
util-linux-2.11y-procpartitions-37436.patch
util-linux-2.11y-readprofile-100433.patch
util-linux-2.11y-rhconfig.patch
util-linux-2.11y-s390x.patch
util-linux-2.11y-skipraid2.patch
util-linux-2.11y-sysmap-85407.patch
util-linux-2.11y-umask-82552.patch
util-linux-2.11y-umount-75421.patch
util-linux-2.11z-01-nfs.patch
util-linux-2.11z-02-base-nfsv4.patch
util-linux-2.11z-03-krb5.patch
util-linux-2.12-nfs-mount.patch
util-linux-2.12-nfssloppy.patch
util-linux-2.12.pam.patch
util-linux-2.12pre-mcookie-83345.patch
util-linux-2.12pre-miscfixes.patch
util-linux-2.12.tar.gz
util-linux-2.7-chfn.pamd
util-linux-2.7-chsh.pamd
util-linux-2.7-login.pamd
util-linux-2.9v-nonroot.patch
util-linux-selinux.pamd
util-linux-selinux.patch

It could be that some of these are from prior installing stuff and I'm also not sure on the next step to installing from here.

...anyone know where to start?
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am

RE: mkfs.minix for fedora core 2

Postby jjmac » Mon Aug 29, 2005 9:28 pm

I don't do rpm unfortunately but it is installed on my system. Just looking over the man page it would seem you need to build the binary rmp from the source rpm ?, i think. I'm not to familiar with rpms so i will be some what tentative here.

There are quite a lot of options available to mix and match. And to also mis-match as well ... but they seem to be using a spec file as a target for the build cli string. Those i have seen. Just basically a status type file.

There dosen't appear to be one amongst that listing, but there are a number of tar files. I think it must be just source thats packaged in a way to suite the rpm programs build mode.

Code: Select all
   REBUILD AND RECOMPILE OPTIONS
       There are two other ways to invoke building with rpm:

       rpm {--rebuild|--recompile} SOURCEPKG ...

       When  invoked  this  way, rpm installs the named source package, and
       does a prep, compile and install.  In addition, --rebuild  builds  a
       new  binary  package. When the build has completed, the build direc-
       tory is removed (as in --clean) and the the sources  and  spec  file
       for the package are removed.


doing a "ldd" on both /sbin/mkfs.minix and ldd /sbin/fsck.minix suggests it will only be looking for libc6 and ld-linux.so.2. So using an rpm from another distro shouldn't be a problem. Alternatively you could just do a search over at sourceforge for a generice source tarball and do a straight compile/install. Checkinstall is a good program too, for creating different package formates from source compiles. You just need to invoke the compile through checkinstall which will act as a kind of proxy.

Just looking through the doc directory for my checkinstall package ... it seems to have everything except a home site address :roll:. Probably not to hard to find though on google.

In any case, i'd try the rpm build, if not that a straight checkinstall build from tarball probably lurking on sorceforge somewhere. Or ... just dload a deb package from ftp.debian.org and do ...

]$ ar x package
Will give you basically two .tar.gz files "control.tar.gz and data.tar.gz"
deflating the data package from / will install the binaries. And you couls also run the scripts in the control.tar.gz manually but i doubt if there would be any benifit. A bit of a ruff and ready solution though (grin).

It's curious that fedora don't appear to keep a package reporitory. I have heard of some place thats acts as a kind of rpm look up ... but i'm not to sure on that and can't remember its' name.

good luck

jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia

RE: mkfs.minix for fedora core 2

Postby Lancer » Tue Aug 30, 2005 1:04 am

Popular repository would be http://rpm.pbone.net/ where I can specify which system (FC2) and also the packages I want to look for.

The closest RPM I can find available for mkfs.minix would be the Red Hat 8 version of util-linux. As you can see, attempting to install this results in failure due to circular dependancies between distro releases.

Code: Select all
[root@localhost lancer]# rpm -Uvh util-linux-2.11r-10.i386.rpm
error: Failed dependencies:
        mount is needed by (installed) mkinitrd-3.5.22-1
        mount >= 2.11l is needed by (installed) initscripts-7.55.2-1
        /sbin/losetup is needed by (installed) mkinitrd-3.5.22-1
[root@localhost lancer]# apt-get install mount
Reading Package Lists... Done
Building Dependency Tree... Done
Selecting util-linux for 'mount'
util-linux is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 27 not upgraded.


I think my best bet might be to modify the scripts I am trying to use to try mkfs.ext and see how it goes.
Lancer
LXF regular
 
Posts: 232
Joined: Thu Apr 07, 2005 11:59 am

RE: mkfs.minix for fedora core 2

Postby jjmac » Thu Sep 01, 2005 12:04 am

>>
I think my best bet might be to modify the scripts I am trying to use to try mkfs.ext and see how it goes.
>>

Sounds tricky ...


You could try for a "force" or "ignore-depends=" switch, or the equivalent. Possibly uninstall the existing package then install the new. Using a "force" switch to uninstall if needed. As long as you don't have to use "mount" or plan on re-booting in between it should be ok.

I'd be inclined to do a src compile though, then just install the whole new collection over the existing set. Only possible cavet there would be in updating your rpm data-base to reflect the additions. You could possibly make some kind of meta package ... can that be done with rpms ?, with a provides field.

Have a look into "checkinstall", that will auto package build when used as a proxy for a straight source compile. All it needs is a spec template file for rpm builds, and the debian "control" file etc for a deb build. It does slack as well.

home:
http://asic-linux.com.mx/~izto/checkinstall/

rpm, deb, and slack packages along with a source .tgz file.
http://asic-linux.com.mx/~izto/checkins ... wnload.php

http://freshmeat.net/projects/checkinstall/



jm
http://counter.li.org
#313537

The FVWM wm -=- www.fvwm.org -=-

Somebody stole my air guitar, It happened just the other day,
But it's ok, 'cause i've got a spare ...
jjmac
LXF regular
 
Posts: 1996
Joined: Fri Apr 08, 2005 1:32 am
Location: Sydney, Australia


Return to Help!

Who is online

Users browsing this forum: Bing [Bot] and 0 guests