Linux - KernelThis forum is for all discussion relating to the Linux kernel.
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.
I have an embedded linux box . I am trying to reduce boot time by making so many features as modules . So that i wll have a thin uImage .
I made sata driver (mv_sata ) as a loadable kernel module . But when the
box boots up and trying to mount /dev/sda ( it is a sata harddisk ) . it is failing .
$ fdisk /dev/sda
the above command gives an error message " unable to open /dev/sda"
$ mkfs.ext3 /dev/sda
this commnand also gives the same message " unable to open /dev/sda"
But after loading the driver using
$ modprobe mv_sata
i can do fdisk ,mkfs.ext3 and mount all .
My question is : -> Is there any way linux can load the module by itself if it needs to mount a sata drive ??
You may need to add a line to your /etc/modprobe.preload file or something similar.
Code:
# /etc/modprobe.preload: kernel modules to load at boot time.
#
# This file should contain the names of kernel modules that are
# to be loaded at boot time, one per line. Comments begin with
# a `#', and everything on the line after them are ignored.
# this file is for module-init-tools (kernel 2.5 and above) ONLY
# for old kernel use /etc/modules
psmouse
pcspkr
amd64_agp
evdev
Or /etc/modprobe.conf I'm using ahci instead of nv_sata or whatever it was called.
I'm not sure you are accessing the correct thing
when you do a fsck you point it to a partion not a disk itself
i.e. fsck /dev/sda1 (or whatever partition to check)
try it along those lines ,or create a partition if there isn't one.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.