Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I'm new to Linux and it's my first time of building LFS using Erik Andersen's article.
I have a Redhat 9 box on which I'm experimenting. The article starts by:
# dd if=/dev/zero of=root_fs bs=1k count=600
this works well, but this next line:
# mkfs.minix /tmp/root_fs
does not
output: no such file or directory.
Could anyone please let me know how to solve this? May be there is a better article online, to use uClib/Busybox step by step to build LFS?
It might be helpful if you could post a link to the article you are referring to. Makes it easier to help if one knows what steps preceeded the problem.
Anyway, did you already rule out some standard mistakes? Make sure you have write access to /tmp directory. Make sure /dev/zero is copied to the right location by specifying the absolute path of the destination, i. e. try,
1. If you are new to Linux, why are you attempting LFS?
2. RedHat Linux 9 is fairly old, and this makes it somewhat difficult to help with.
3. Does RH9's version of util-linux (or whatever it used) provide mkfs.minix? Is your PATH variable 'appropriate' (`echo $PATH`)? Do you have locate installed? Update its database (run `updatedb`, perhaps) and then try to `locate mkfs.minix`.
>...did you already rule out some standard mistakes?...
Yes! I am the su and /dev/zero at right location. Also the code you suggested is indeed executed. Will be happy to have your further support and appreciate it.
----------------------------------
To Carbonfiber:
Thank you for the support!
1. If you are new to Linux , why are you attempting LFS?
I am only new to Linux, but not to such a process.
I meant by "new to Linux" that I only finished this book:
[Advanced Linux Programming, by Mark Mitchell, Jeffrey Oldham,
and Alex Samuel]
and for having some real practices with Linux, I changed the firmware of a router to become a Linux box and programmed it for wireless controlling a servo motor that directs a camera (under OpenWRT, with Linksys WRT54GL). I still don't form intuition for Linux (what I'm trying for).
2. RedHat Linux 9 is fairly old,
Ok, would you please give me a link to download a Linux (being Fedora, Debian, anything) that you prefer for what I am doing?
3. Does RH9's version ...
I'll go for these after I know your answer for the above said. Will be happy to have your further support and appreciate it.
I still don't form intuition for Linux (what I'm trying for).
I have no idea what that means.
Quote:
Originally Posted by kievari
Ok, would you please give me a link to download a Linux (being Fedora, Debian, anything) that you prefer for what I am doing?
I'm unsure if you are asking me which distribution I would pick in order to perform the task you have set for yourself. Something that has been updated sometime in the past 2 years or so would be nice. Admittedly, it is fairly difficult to find such a distribution.. but since you successfuly read such an impressive book as "Advanced Linux Programming" *yawn*, I'm sure you'll have no trouble finding the homepages of projects such as: Arch, CentOS, Debian, Fedora, Gentoo, OpenSUSE, Slackware, Ubuntu.
Quote:
Originally Posted by kievari
I'll go for these after I know your answer for the above said.
Perhaps you should have remembered that I'm trying to do you a favor by helping you (not the other way around). As such, you don't get to set conditions. You have the answer you were looking for, however, I am no longer willing to help you solve this issue.
Yes! I am the su and /dev/zero at right location. Also the code you suggested is indeed executed. Will be happy to have your further support and appreciate it.
So were you able to create the minix filesystem?
I reproduced these steps in the article and I got a minix filesystem created and mounted.
[QUOTE=carbonfiber;3839567]
>I have no idea what that means.
Just to "feel" things in Linux by heart. A condition when things happens and you know why, and you know what is located where by heart.
>I'm sure you'll have no trouble finding the homepages of projects...
sure! I've got Fedora live dvd for instance, but I thought may be the process is easier in one of them for a novice (in LFS).
>I am no longer willing to help you solve this issue.
Well then thank you for the support till now, and just to let you know I didn't mean "conditioning" in the sense you are interpreting. Please don't hurt yourself. Actually English is not my native language and I use some words sometimes in a slightly different meaning and find out about them late
Anyway, I appreciate the suggestions you made and thank you for paying your time. Also I apologize if I wrote the way you didn't like.
Hello. Perhaps you could make good use of the official Linux From Scratch LiveCD. This way you do not have to actually install another distribution http://www.linuxfromscratch.org/livecd/. Before you do that, please tell us the output of the following commands:
No I am going to get another Linux distro. Could you please tell me the distro under which you succeeded (and it's version)?
Thank you!
I am currently using ubuntu 9.10 (karmic koala). But I don't think that it is necessary for you to switch. As far as I can tell from the infos you have given you just created your root_fs NOT in the /tmp directory.
Let me point out that I did not work through the whole tutorial.
This is what I did:
Code:
cd /tmp
dd if=/dev/zero of=root_fs bs=1k count=600
ls -sh /tmp/root_fs
mkfs.minix /tmp/root_fs
mount /tmp/root_fs /mnt -o loop -t minix
Try this commands first before switching to another distro. If they work you can pick up the tutorial from this point.
Hello. Perhaps you could make good use of the official Linux From Scratch LiveCD. Before you do that, please tell us the output of the following commands:
Code:
echo $PATH
and:
Code:
ls -al /{,usr}/{bin,sbin}/mkfs.minix
Carbonfiber! Thank you for your kind suggestion! I downloaded the LiveCD and I'm quite happy with it!
Next I did as you told and these are the results:
Code:
echo $PATH
/bin:/usr/bin:/sbin:/usr/sbin
ls -al /{,usr}/{bin,sbin}/mkfs.minix
ls: cannot access //bin/mkfs.minix: No such file or directory
ls: cannot access /usr/bin/mkfs.minix: No such file or directory
ls: cannot access /usr/sbin/mkfs.minix: No such file or directory
-rwxr-xr-x l root root 14460 Dec 29 2007 //sbin/mkfs.minix
It seems that I still don't have mkfs.minix
Please guide if possible!
What is your favorite Linux book(s)?
Try this commands first before switching to another distro. If they work you can pick up the tutorial from this point.
Crts! Thank you!
This is my result:
>dd if=/dev/zero of=root_fs bs=1k count=600
600+0 records in
600+0 records out
>ls -sh /tmp/root_fs
604K /tmp/root_fs
>mkfs.minix /tmp/root_fs
bash: mkfs.minix: command not found
as you see, I am still having problems with my Redhat 9. I just downloaded the LiveCD of LFS. Any further suggestion is very welcomed!
Would you please tell me, what is your favorite Linux book(s)?
But you might run into some trouble with uClibc-snapshot since this is the latest development version. Depending on what else you want to install there is a chance that you encounter compatibility issues. I guess you just try it and see how it works out.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.