Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

/dev/hda missing [SOLVED]

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
18 posts • Page 1 of 1
Author
Message
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

/dev/hda missing [SOLVED]

  • Quote

Post by ZeLegolas » Sat Mar 20, 2010 6:03 am

Hi

I have something very strange

When my computer boot at the boot time it's detect everything, but when I check:

Code: Select all

# ls -l /dev/h*
ls: cannot access /dev/h*: No such file or directory
I'm not able to mount my boot partition:

Code: Select all

# mount /boot
mount: special device /dev/hda1 does not exist
I have a disk on /dev/hda but I don't see it!

And if I check:

Code: Select all

# ls -l /sys/block/hda/
total 0
-r--r--r-- 1 root root 4096 Mar 20 01:56 alignment_offset
lrwxrwxrwx 1 root root    0 Mar 20 01:56 bdi -> ../../class/bdi/3:0
-r--r--r-- 1 root root 4096 Mar 20 01:56 capability
-r--r--r-- 1 root root 4096 Mar 20 01:56 dev
lrwxrwxrwx 1 root root    0 Mar 20 01:56 device -> ../../devices/pci0000:00/0000:00:0f.1/ide0/0.0
-r--r--r-- 1 root root 4096 Mar 20 01:56 ext_range
drwxr-xr-x 4 root root    0 Mar 20 01:56 hda1
drwxr-xr-x 4 root root    0 Mar 20 01:56 hda2
drwxr-xr-x 4 root root    0 Mar 20 01:56 hda3
drwxr-xr-x 2 root root    0 Mar 20 01:56 holders
-r--r--r-- 1 root root 4096 Mar 20 01:56 inflight
drwxr-xr-x 2 root root    0 Mar 20 01:56 power
drwxr-xr-x 3 root root    0 Mar 20 01:56 queue
-r--r--r-- 1 root root 4096 Mar 20 01:56 range
-r--r--r-- 1 root root 4096 Mar 20 01:56 removable
-r--r--r-- 1 root root 4096 Mar 20 01:56 ro
-r--r--r-- 1 root root 4096 Mar 20 01:56 size
drwxr-xr-x 2 root root    0 Mar 20 01:56 slaves
-r--r--r-- 1 root root 4096 Mar 20 01:56 stat
lrwxrwxrwx 1 root root    0 Mar 20 01:56 subsystem -> ../../block
-rw-r--r-- 1 root root 4096 Mar 20 01:56 uevent
The disk exist! For sure Linux is running on it! :)
When I rebuild udev it's told me to disable CONFIG_IDE but I cannot mount my boot partition how I can rebuild the kernel??? :?
Last edited by ZeLegolas on Sun Apr 04, 2010 2:54 pm, edited 1 time in total.
Top
cz0
Guru
Guru
User avatar
Posts: 339
Joined: Mon Jun 13, 2005 8:50 am
Location: /earth/russia/moscow

  • Quote

Post by cz0 » Sat Mar 20, 2010 6:57 am

Tru http://www.sysresccd.org/Main_Page.
It's a Gentoo based life CD/USB.
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sat Mar 20, 2010 7:00 am

Try placing the kernel in a boot directory on your current root partition, make sure that grub.conf points to it. That way you can build a kernel that can access /boot again. However, I think something more is going on. Can you post the output of:

dmesg

please?
Top
aderesch
Tux's lil' helper
Tux's lil' helper
Posts: 123
Joined: Sat Mar 06, 2010 10:58 am
Location: Hamburg, Germany

Re: /dev/hda missing

  • Quote

Post by aderesch » Sat Mar 20, 2010 7:11 am

ZeLegolas wrote:The disk exist! For sure Linux is running on it! :)
When I rebuild udev it's told me to disable CONFIG_IDE but I cannot mount my boot partition how I can rebuild the kernel??? :?
Sounds like you are only missing the device nodes.

Code: Select all

mknod /dev/hda b 3 0; for i in 1 2 3;do mknod /dev/hda${i} b 3 ${i};done
should take care of that (if your shell is bash).
Then mount and build a kernel using the libata drivers -- before booting that, you should replace references to hd? by sd?, at least in all boot-critical places.

ad
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Sat Mar 20, 2010 12:59 pm

What happen when you run this :

Code: Select all

# fdisk -l
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Mar 21, 2010 2:28 pm

d2_racing wrote:What happen when you run this :

Code: Select all

# fdisk -l
I just see my other disk not the hda

Code: Select all

 # fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x005423cb

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        1245    10000431   83  Linux
/dev/sda2            1246        9729    68147730   83  Linux
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Mar 21, 2010 2:30 pm

Rexilion wrote:Try placing the kernel in a boot directory on your current root partition, make sure that grub.conf points to it.
Difficult for that I have to have access to the boot partition!
Top
Rexilion
Veteran
Veteran
User avatar
Posts: 1044
Joined: Tue Mar 17, 2009 10:25 am

  • Quote

Post by Rexilion » Sun Mar 21, 2010 2:31 pm

ZeLegolas wrote:
Rexilion wrote:Try placing the kernel in a boot directory on your current root partition, make sure that grub.conf points to it.
Difficult for that I have to have access to the boot partition!
Okay, and temporarily install grub on it :P
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

Re: /dev/hda missing

  • Quote

Post by ZeLegolas » Sun Mar 21, 2010 2:32 pm

aderesch wrote: Sounds like you are only missing the device nodes.

Code: Select all

mknod /dev/hda b 3 0; for i in 1 2 3;do mknod /dev/hda${i} b 3 ${i};done
should take care of that (if your shell is bash).
Then mount and build a kernel using the libata drivers -- before booting that, you should replace references to hd? by sd?, at least in all boot-critical places.

ad
I'm using bash
:) thanks for i will try
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Mar 21, 2010 2:35 pm

Thanks for your advice.
For the moment I can not do anything on the server
When it will be possible I will try to create the node manually like aderesch told me and build the kernel without CONFIG_IDE.
I will let you know the result...
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Apr 04, 2010 8:03 am

First good news with the command of aderesh I was abled to access to my boot partition (and my other partition too)
The bad new it's If I remove CONFIG_IDE like it's asked udev at the boot time I have this message:
Block device /dev/sda1 is not valid root device
Could not find the root block device in
For now I put back my old kernel but if someone have any ideas... :cry:
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sun Apr 04, 2010 11:50 am

If you drop CONFIG_IDE (as you probably should),
you need to select correct drivers under CONFIG_ATA.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Sun Apr 04, 2010 2:05 pm

Also your HDD will become /dev/sd* instead of /dev/hd*
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Apr 04, 2010 2:48 pm

VoidMage wrote:If you drop CONFIG_IDE (as you probably should),
you need to select correct drivers under CONFIG_ATA.
It's what I have done
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Apr 04, 2010 2:49 pm

d2_racing wrote:Also your HDD will become /dev/sd* instead of /dev/hd*
No it just missing
Top
ZeLegolas
Tux's lil' helper
Tux's lil' helper
Posts: 128
Joined: Tue Apr 26, 2005 2:08 am

  • Quote

Post by ZeLegolas » Sun Apr 04, 2010 2:53 pm

Ok it's fine now. I build ATA section (just module that I need) in static mode not like a module.
I just don't understand why the module are not working :?:
Thanks for your support
Top
VoidMage
Watchman
Watchman
User avatar
Posts: 6196
Joined: Sat Oct 14, 2006 8:43 am

  • Quote

Post by VoidMage » Sun Apr 04, 2010 3:10 pm

Well, that's rather simple - to load the module, kernel needs to read the disk,
without this module, it can't see it. You'd need an initramfs with that module,
if you'd want to have it outside kernel.
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Mon Apr 05, 2010 2:28 am

It's a good thing that you can boot your box :P
Top
Post Reply

18 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic