LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-30-2010, 02:32 AM   #16
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16

Quote:
Originally Posted by crts View Post
Try the following:
Code:
wget http://uclibc.org/downloads/snapshots/uClibc-snapshot.tar.bz2
Thank you! I just successfully compiled uClibc!

>you might run into some trouble with uClibc-snapshot
you are right! I tried to continue with compiling the busybox according to the article:

>CC=/tmp/uClibc/extra/gcc-uClibc/gcc-uClibci386
no such file or directory!
I checked the uClibc/extra but I couldn't figure it out, where this gcc compiler must be! Any suggestions?

Also, there still one issue remains:
when I do:
#mkfs.minix /tmp/root_fs
I get:
224 inodes
600 blocks
Firstdatazone=11 (11)
Zonesize=1024
Maxsize=268966912

i.e. everything ok, but then telling Linux:
#mount /tmp/root_fs /mnt -o loop -t minix
mount: unknown filesystem type 'minix'

Well, if it knows how to make it, then why can't mount it?!

Last edited by kievari; 01-30-2010 at 02:49 AM.
 
Old 01-30-2010, 12:18 PM   #17
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
i.e. everything ok, but then telling Linux:
#mount /tmp/root_fs /mnt -o loop -t minix
mount: unknown filesystem type 'minix'

Well, if it knows how to make it, then why can't mount it?!
Try:

Code:
zcat /proc/config.gz | grep MINIX
What is the output of this?
 
Old 01-31-2010, 02:56 AM   #18
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

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

Code:
zcat /proc/config.gz | grep MINIX
What is the output of this?
I tried it:
Code:
>zcat /proc/config.gz | grep MINIX
CONFIG_MINIX_FS is not set
This means I have to first set FS right? but where!?
 
Old 01-31-2010, 08:31 AM   #19
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
I tried it:
Code:
>zcat /proc/config.gz | grep MINIX
CONFIG_MINIX_FS is not set
This means I have to first set FS right? but where!?
No, this means that minix is not compiled into the kernel, i.e. your kernel does not know how to handle a minix filesystem. Maybe there is a way to compile it into the kernel. However, since this is a liveCD you are using you would have to repeat this step every time you reboot.
 
Old 01-31-2010, 09:43 AM   #20
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

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

I think I have a workaround so that you will be able to mount the minix filesystem. I assume you are still using the LFS liveCD.
First, you need to unpack the linux-kernel source which is located in the /lfs-sources directory.
Code:
cd /lfs-sources
bunzip2 linux-2.6.22.1.tar.bz2
tar -xf linux-2.6.22.1.tar
(I assume you have enough RAM for that otherwise you might have to mount a partition and copy the sourcefile to that partion and extract it there.)

Next you need to cd to the 'minix' source.
Code:
cd linux-2.6.22.1/fs/minix
You will have to edit the Makefile so back it up first.
Code:
cp Makefile Makefile.bkp
sed -i 's/\$(CONFIG_MINIX_FS)/m/' Makefile
cat Makefile
The output of the last command should contain the line
Code:
.
.
.
obj-m += minix.o
.
.
.
Now you should be able to build the module.
Code:
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
insmod minix.ko
Now try mounting your root_fs again.
Keep in mind that you will have to repeat this procedure every time you reboot since you are using a liveCD.
 
Old 02-01-2010, 04:52 PM   #21
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by crts View Post
Hi,
....Now try mounting your root_fs again.
Keep in mind that you will have to repeat this procedure every time you reboot since you are using a liveCD.
Hi! Thank you! All worked and I'm now out of the problem with minix!

>...to repeat this procedure every time you reboot since you are using a liveCD

Well I actually made a partition (I am using vmware) and went on with. My question is, how I could install this liveCD to the hard drive I have now (mounted on /mnt/hdd) so that boot from it inspide of cd image (partition is also marked bootable, I used cfdisk to do it)?
 
Old 02-01-2010, 05:27 PM   #22
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
Hi! Thank you! All worked and I'm now out of the problem with minix!

>...to repeat this procedure every time you reboot since you are using a liveCD

Well I actually made a partition (I am using vmware) and went on with. My question is, how I could install this liveCD to the hard drive I have now (mounted on /mnt/hdd) so that boot from it inspide of cd image (partition is also marked bootable, I used cfdisk to do it)?
Not sure what exactly you are trying to accomplish. If you want to install a bootable Linux OS from the liveCD, well, you cannot do that. As far as I know the liveCD does not come with an installer. This would defeat the whole purpose of Linux from scratch because then it would not be Linux from scratch anymore. Just another 'normal' distro.

Or are you trying to copy the contents of the liveCD to the partition and run it as 'virtual cdrom-drive'? Not sure if the virtual drive would be writable. I am not familiar with vmware.

Alernatively you could compile the module on a hdd-partition of your choice and keep it there. After booting from the liveCD you could mount that partition which contains the compiled minix-module and just issue

insmod /path/to/minix/module/minix.ko

This should work. I haven't tried it though.
 
Old 02-02-2010, 03:25 AM   #23
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Hi,

>If you want to install a bootable Linux OS from the liveCD, well, you cannot do that.
Right guess! Thank you, I didn't know that. Well, but is it possible to build a Linux from scratch with this LiveCD, mount it on my /mnt/hdd and put the machine to boot from there, getting the LiveCD out? If so, could you please tell me how or direct me where this is instructed?
 
Old 02-02-2010, 05:58 AM   #24
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
Quote:
Originally Posted by kievari View Post
Hi,
Well, but is it possible to build a Linux from scratch with this LiveCD, mount it on my /mnt/hdd and put the machine to boot from there, getting the LiveCD out? If so, could you please tell me how or direct me where this is instructed?
Yes, this is possible. You will have to compile EVERYTHING. Here is the link to the LFS homepage:

http://www.linuxfromscratch.org/index.html

Download the book and most importantly:
READ IT FROM THE BEGINNING!
I know it will be boring at first and most likely you will not understand everything at first. But you shouldn't skip any chapter. Do NOT deviate from the book even if you are convinced that it is a minor change that you are doing. In about 1 or 2 weeks you should have your own Linux From Scratch.
Have fun.
 
Old 02-03-2010, 11:16 AM   #25
kievari
LQ Newbie
 
Registered: Jan 2010
Posts: 27

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by crts View Post
...Download the book and most importantly:
READ IT FROM THE BEGINNING!
Well I did this download the first day I found the LFS project, and it happened just as you say: it was very far from me (with novice knowledge, yet not at an administrator level for Linux) and I could understand a little. As you mentioned both this fact and that the book is boring, but you also know it would help, I'll return to it and read it with no deviation.

Thank you Crts, and all others who support this forum, you are just great!
 
  


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 08:31 PM.

Main Menu
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