LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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



Reply
 
Search this Thread
Old 01-24-2010, 09:47 AM   #1
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Rep: Reputation: 16
uClibc, mkfs.minix problem


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?

Any suggestion is very welcomed!
 
Old 01-24-2010, 12:27 PM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi,

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,

Code:
dd if=/dev/zero of=/tmp/root_fs bs=1k count=600
 
Old 01-24-2010, 01:27 PM   #3
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
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`.
 
Old 01-25-2010, 05:10 AM   #4
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
To Crts:
Thank you for your help!

>...post a link to the article...
http://www.slideshare.net/emcelettro...x-distribution

>...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.
 
Old 01-25-2010, 05:36 AM   #5
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
Quote:
Originally Posted by kievari View Post
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 View Post
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 View Post
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.
 
0 members found this post helpful.
Old 01-26-2010, 06:16 AM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Hi,

Quote:
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.
 
Old 01-26-2010, 07:41 AM   #7
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
[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.
 
Old 01-26-2010, 07:46 AM   #8
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by crts View Post
Hi,



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.
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!

Last edited by kievari; 01-26-2010 at 07:47 AM.
 
Old 01-26-2010, 08:11 AM   #9
carbonfiber
Member
 
Registered: Sep 2009
Location: Sparta
Posts: 237

Rep: Reputation: 46
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:

Code:
echo $PATH
and:

Code:
ls -al /{,usr}/{bin,sbin}/mkfs.minix
 
Old 01-26-2010, 08:18 AM   #10
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
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.
 
Old 01-28-2010, 04:50 PM   #11
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by carbonfiber View Post
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)?
 
Old 01-28-2010, 05:05 PM   #12
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by crts View Post
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)?
 
Old 01-29-2010, 05:05 AM   #13
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Thank you very much for help and support! I am finally one step further! This live CD did the job!

>mkfs.minix /tmp/root_fs
224 inodes
600 blocks
Firstdatazone=11 (11)
Zonesize=1024
Maxsize=268966912

Now I can finally go through the other steps of LFS. If you let me, I'll post my further question here to finish that article. Thank you again!

Last edited by kievari; 01-30-2010 at 01:38 AM.
 
Old 01-29-2010, 04:09 PM   #14
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Hi again!

This command:
wget -q ftp://oss.lineo.com/uClibc-snapshot.tar.gz

does not work on the LFS live CD. Do I need to obtain an rpm and install it or else reason? If rpm, could you please tell me what/where?

this is my output for the command:

root [/]# wget
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "Read 10" packet command was:
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "Read 10" packet command was:
-bash: /usr/bin/wget: Input/output error
 
Old 01-29-2010, 06:03 PM   #15
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
Hi again!

This command:
wget -q ftp://oss.lineo.com/uClibc-snapshot.tar.gz

does not work on the LFS live CD. Do I need to obtain an rpm and install it or else reason? If rpm, could you please tell me what/where?

this is my output for the command:

root [/]# wget
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "Read 10" packet command was:
Invalid command operation code -- (asc=0x20, ascq=0x00)
The failed "Read 10" packet command was:
-bash: /usr/bin/wget: Input/output error
Try the following:
Code:
wget http://uclibc.org/downloads/snapshots/uClibc-snapshot.tar.bz2
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.
 
  


Reply

Tags
minix


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between mkfs.vfat and mkfs.msdos? EmrldDrgn Linux - Newbie 6 07-23-2009 04:27 AM
Re-purposing old hardware, uclibc login problem evilmonkey Linux - Newbie 6 04-04-2009 11:20 AM
Problem with shared libraries (uClibc) on small embedded system. Help ! Mike Davies Linux - Software 0 08-12-2005 09:59 AM
mkfs problem kaltag Linux - General 1 01-26-2004 10:27 PM
problem about mount minix partition fiasco Linux - General 0 05-10-2002 03:52 AM


All times are GMT -5. The time now is 10:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration