Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Unable to detect sda with gentoo-sources-3.4.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
KoichiSenada
n00b
n00b


Joined: 05 Jul 2012
Posts: 12

PostPosted: Thu Jul 05, 2012 8:43 am    Post subject: [SOLVED] Unable to detect sda with gentoo-sources-3.4.4 Reply with quote

I have updated my network booted client system image with sys-kernel/gentoo-sources-3.4.4
Clients boot with PXE and use the universal network server hosted image as their read-only root.
The image uses also sys-fs/aufs3 to mix it with tmpfs.
But now there is a problem that all the clients can't detect their local SATA disks that store Ext3 partitions.
There is no /dev/disk and no /dev/sd* anymore.

We need those disks and partitions because there we mount home directories to the local home labeled partition via /etc/fstab lines
Code:
none                            /               none            ro                              0 0
none                            /mnt            tmpfs           nodev,nosuid                    0 0
none                            /media          tmpfs           nodev,nosuid                    0 0
proc                            /proc           proc            defaults                        0 0
shm                             /dev/shm        tmpfs           nodev,nosuid,noexec             0 0
192.168.1.1:/netboot/gentoo3    /               nfs             ro,intr,rsize=8192,wsize=8192   0 0
tmpfs                           /tmp            tmpfs           defaults,nosuid,noatime         0 0
tmpfs                           /run            tmpfs           defaults,nosuid,noatime         0 0
/dev/disk/by-label/home         /home           ext3            rw,nodiratime,noatime           0 0

And also we have a custom mounting script in the sysinit runlevel that runs the mounting code:
Code:
#!/sbin/runscript
description="Configure system for netboot"
depend()
{
        before udev
}

start() {
        einfo "netboot-mount start"
        mount -l
        mount -nt tmpfs -o rw none /ramdisk && einfo "mount tmpfs ramdisk" || eerror "mount tmpfs ramdisk failed"
        for i in etc var root; do
                mkdir /ramdisk/$i
                mount -nt aufs -o dirs=/ramdisk/$i=rw:/$i=rr aufs /$i
        done
}

Everything else loads fine with udev, we have input devices and video cards, gnome and kde.
It just fails to detect any sda disks.

How can I find the cause and fix it to have the local disk partitions detected and mounted?


Last edited by KoichiSenada on Fri Jul 06, 2012 10:08 am; edited 1 time in total
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Jul 05, 2012 9:01 am    Post subject: Reply with quote

For a start, pastebin your kernel config.
Back to top
View user's profile Send private message
KoichiSenada
n00b
n00b


Joined: 05 Jul 2012
Posts: 12

PostPosted: Thu Jul 05, 2012 9:15 am    Post subject: Reply with quote

VoidMage wrote:
For a start, pastebin your kernel config.

Here is the /usr/src/linux/.config file: http://pastebin.ca/2167303
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 6196

PostPosted: Thu Jul 05, 2012 10:32 am    Post subject: Reply with quote

Quote:
Code:
# CONFIG_BLK_DEV_SD is not set
...
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
...
CONFIG_ATA=m


... :roll: with such settings, it simply can't work.
First of all, your mainboard ATA chipset driver needs to be builtin, unless you have a fine-tuned initramfs.
Second, how do you expect to access your disk, if you don't even have a module for it ?
Back to top
View user's profile Send private message
KoichiSenada
n00b
n00b


Joined: 05 Jul 2012
Posts: 12

PostPosted: Fri Jul 06, 2012 10:07 am    Post subject: Reply with quote

And that has worked, the original problem is solved, thank you!

But I have also another question that still remains.
When the system goes reboot or shutdown, it reaches "Unmounting filesystems" and hangs.
It appears like it can not unmount something.
What might be the cause?
Is there a way to merge my script code into the /etc/fstab to make things easier?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum