LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-27-2019, 11:57 AM   #1
tornadoman625
LQ Newbie
 
Registered: Nov 2019
Posts: 3

Rep: Reputation: Disabled
custom intramfs cannot see block devices.


Hello,

I tried posting this in general, and as far as I can tell it did not post. If it did, I apologize for double posting. I am trying to build a custom Linux system from scratch. I am doing it for educational purposes. I have busybox install in the initramfs, and an init file, which is as follows:
Code:
#!/bin/sh

#Mount things needed by this script
mount -t proc proc /proc
mount -t sysfs sysfs /sys

#Disable kernel messages from popping onto the screen
echo 0 > /proc/sys/kernel/printk

#Clear the screen
clear

#Create all the symlinks to /bin/busybox
busybox --install -s

#Create device nodes
mknod /dev/null c 1 3
mknod /dev/tty c 5 0
mdev -s

exec sh
When I go into /dev there are device files such as tty, but no devices like sda or hd1. I used the debian kernel config, so I believe the drivers should be in the kernel.

Any help is appreciated,
Thanks!
 
  


Reply



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
custom intramfs cannot see block devices. tornadoman625 Linux - General 1 11-28-2019 08:26 AM
p2v - Migrated Ubuntu 15.10 VM into KVM doesn't have virtual CDROM, and OS boots into (intramfs) prompt eyumay Linux - Virtualization and Cloud 7 09-28-2016 02:59 PM
What are the differences between character devices and block devices? david_8274 Linux - Newbie 4 01-13-2015 06:48 PM
How do I map ATA devices to /dev/sd* block devices when using a port multiplier? Mahonri Linux - Hardware 0 02-19-2014 11:44 PM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:43 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
Open Source Consulting | Domain Registration