Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-04-2008, 02:43 AM   #1
Registered: May 2008
Location: France
Distribution: Debian / Fedora / Gentoo
Posts: 178

Rep: Reputation: 15
Question /sys/block/sda/sda1/dev: No such fiel or directory

Hi all,

I am compiling a vanillia kernel on a Debian.
I used the Debian way (make-kpkg clean, make-kpkg --initrd kernel_image)

However, when I boot on the new kernel, I finish with this message:
/bin/cat:/sys/block/sda/sda1/dev: No such file or directory
Waiting 1 seconds for /sys/block/sda/sda1/dev to show up
Device /sys/block/sda/sda1/dev seems to be down.
/bin/mknod: missing operand after 'b'
Special files require major and minor device numbers.
I don't really know what to do now...
Any ideas ?

Old 08-05-2008, 06:16 AM   #2
Registered: Feb 2005
Location: Somerset, England
Distribution: Gentoo
Posts: 106
Blog Entries: 1

Rep: Reputation: 15

Is your kernel working at all now or was the error terminal?

The reference to sda is obviously to a disk drive or something emulating a disk drive, like a memory stick. The "s" also means scsi - is your main drive a scsi drive?

Try the command "lspci" to get a listing of what linux thinks is on your box.

I am not a Debian expert and if one replies then you should follow their advice not mine

It would be strange that Debian's kernel builder does not work. Getting that to work is your first priority because it will be the safest option.

You can build and install kernels yourself - it is not that hard but you do need time and care. The basic process is to go to the directory with your kernel sources in then use the command

"make menuconfig"

This create a configuration file.

The command "make" then builds the kernel and saves it in a safe place probably /usr/src/linux/arch/x86/boot/bzImage.

Never go beyond this point without knowing exactly what you are doing because after this we start to change the actual files Linux uses to boot the system.

"make modules-install" builds and installs modules

"make install" then puts the kernel into the boot partition. However, you need a boot loader like Grub or Lilo and to know how that works because you will need to configure it.

You need to read up on all this before doing it because you can end up with a full reinstall if it goes wrong!!

Let me know what lspci said.



compilation, debian, kernel

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
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
No /dev/sda or /dev/sda1 mago Slackware 9 06-08-2006 11:12 AM
no /dev/sda or sda1 RoaCh Of DisCor Slackware 28 02-12-2006 11:10 AM
/dev/sda and /dev/sda1 disappeared using sii3112A striderstrahan Linux - Software 0 09-16-2004 05:00 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:04 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration