Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 11-22-2009, 05:19 PM   #1
LQ Newbie
Registered: Nov 2009
Posts: 5

Rep: Reputation: 0
Booting from FAT file system on USB stick


First post on Linux questions so be gentle!

I've got a basic setup for booting from a USB stick working. I'm using kernel I'm trying to use a FAT16 file system on the stick as the boot file system. Kernel boots and then dies with the message: "Warning: unable to open an initial console"

I suspected this was because there is no /dev/console entry on the root file system. When I try to execute the command:

mknod -m 600 $LFS/dev/console c 5 1

during the build of the USB file system, I get an error message: "mknod: '/mnt/dev/console': Operation not permitted".

My suspicion is that you can't make special files on the FAT16 file system. Is this what's causing the problem. If so or even if not, anyone have any ideas how to get around this problem?

Old 11-22-2009, 05:49 PM   #2
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Well, Welcome to LQ fwmiller!

So, your just trying to boot a kernel?

Are you trying to run something really small or what?

Please also explain where the kernel came from
and your computer specs?
Old 11-22-2009, 06:39 PM   #3
LQ Newbie
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
Kernel was compiled using FC8 on a Dell 4600. As mentioned, its and I've skimmed it down to really bare bones, its about a 1.5M image size right now. I'm planning to do some custom stuff in userland so I'm not starting a standard /sbin/init. I'm just trying to get a busybox to come up first. I don't have anything in the file system right now except the kernel, a busybox binary, and some Grub boot scripts, i.e. no initab or fstab. There isn't even a /dev directory and so obviously no special files. That's what I'm trying to get working.

The computer I'm booting it on is a Dell Mini 9 with a first generation Atom processor and 1 Gb memory. The kernel boots, looks like its seeing the USB stick as it mounts it readonly. It then appears to be trying to start the console and fails at that point.

Does this help or are you interested in any more specific information?

Old 11-23-2009, 03:39 PM   #4
LQ Newbie
Registered: Nov 2009
Posts: 5

Original Poster
Rep: Reputation: 0
OK, after some more experimenting, it appears that it is the FAT file system that caused the problem. When I switched to the ext2 fs, this problem goes away.



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
Mounting FAT fs on usb stick K05T9 Slackware 17 05-06-2007 10:13 PM
Mounting FAT fs on usb stick K05T9 Slackware 8 05-06-2007 07:26 AM
USB memory stick file system linmix Linux - Hardware 2 12-02-2004 06:02 PM
Mount my USB stick (FAT) hyllplan Linux - Hardware 3 11-05-2004 04:09 AM
i want to compile fat file system module and get fat.o working ramya272 Linux - Newbie 9 02-26-2004 12:41 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 12:21 AM.

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