Find the answer to your Linux question:
Results 1 to 8 of 8
Hi everyone, I am unable to detect or pick up any SATA/IDE hard drives when booting into my Fedora 20 workstation using Syslinux. I would be deeply indebted if somebody ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2014
    Posts
    5

    Pxelinux does not detect SATA/IDE hard drive


    Hi everyone,

    I am unable to detect or pick up any SATA/IDE hard drives when booting into my Fedora 20 workstation using Syslinux. I would be deeply indebted if somebody could point me in the right direction. Below, I provide a full background to my situation:

    1) My /tftpboot/pxelinux.cfg/default file has the following setup:
    ============================================
    DEFAULT linux
    LABEL linux
    KERNEL kernel-3.11.10-301.fc20.x86_64
    APPEND initrd=rootfs.img ip=dhcp rw
    ============================================

    2) Both the "kernel-3.11.10-301.fc20.x86_64" and "rootfs.img" images are of course located in the /tftpboot folder.

    3) The system quickly boots up into text mode with a login prompt and automatically loads the root file system (compressed from Fedora 20 "Minimal Install") onto RAM disk. It did not explicitly require the "root=/dev/ram0" directive in the APPEND line in the pxelinux.cfg/default file.

    4) The remote workstation also has an ext4-formatted 2TB SATA/IDE hard drive (I would like to put some local data on this drive that I would later like to access via network booting).

    5) After logging into text mode on the PXE booted workstation, I typed on the terminal:
    > fdisk -l
    > fdisk -l /dev/sda
    > fdisk -l /dev/hd
    No hard drive devices are listed!

    6) I also checked the "/dev" folder:
    > cd /dev/; ls
    Again, I do not see any "sda" or "hd" devices. Yet, CD-ROM (sr0) is detected.

    What is going on here? Where is my hard drive? Why is it not being detected when PXE booting into my workstation? The same hard drive works wonders on my server that runs a local copy of Fedora 20. It is fully tested. No issues there.

    Can someone help? Thank you so very very much.

    Amjad Farooq

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    Definitely a mystery! Please post the output of the command "ls -aFC /dev" here. Thanks.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Aug 2014
    Posts
    5
    Thanks for your reply. Here is the device output from the PXE machine:

    n104:/root => ls -aFC /dev
    ================================================
    ./ log= rtc0 tty24 tty48 usbmon0
    ../ loop0 sg0 tty25 tty49 usbmon1
    autofs loop1 shm/ tty26 tty5 usbmon2
    block/ loop2 snapshot tty27 tty50 usbmon3
    bsg/ loop3 sr0 tty28 tty51 usbmon4
    bus/ loop-control stderr@ tty29 tty52 usbmon5
    cdrom@ mapper/ stdin@ tty3 tty53 usbmon6
    char/ mcelog stdout@ tty30 tty54 usbmon7
    console mem tty tty31 tty55 vcs
    core@ mqueue/ tty0 tty32 tty56 vcs1
    cpu/ network_latency tty1 tty33 tty57 vcs2
    cpu_dma_latency network_throughput tty10 tty34 tty58 vcs3
    disk/ null tty11 tty35 tty59 vcs4
    dri/ nvram tty12 tty36 tty6 vcs5
    fb0 port tty13 tty37 tty60 vcs6
    fd@ ptmx tty14 tty38 tty61 vcsa
    full ptp0 tty15 tty39 tty62 vcsa1
    hidraw0 ptp1 tty16 tty4 tty63 vcsa2
    hidraw1 pts/ tty17 tty40 tty7 vcsa3
    hidraw2 ram0 tty18 tty41 tty8 vcsa4
    hidraw3 ram1 tty19 tty42 tty9 vcsa5
    hpet ram2 tty2 tty43 ttyS0 vcsa6
    hugepages/ ram3 tty20 tty44 ttyS1 vga_arbiter
    initctl| random tty21 tty45 ttyS2 zero
    input/ raw/ tty22 tty46 ttyS3
    kmsg rtc@ tty23 tty47 urandom
    ================================================

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    Yep. No hard drives / system discs there. What is the contents of /etc/fstab?
    Also, what do the "mount" and "df" commands show?
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  6. #5
    Just Joined!
    Join Date
    Aug 2014
    Posts
    5
    ok, here is what I get:


    n104:/root => cat /etc/fstab
    ===============================================
    /dev/sda1 /data ext4 defaults 0 0
    10.10.10.100:/alpha /alpha nfs rw,rsize=1048576,wsize=1048576,tcp,cto,noatime,int r,nfsvers=4 0 0
    ==============================================


    n104:/root => mount
    ===============================================
    rootfs on / type rootfs (rw,size=32842684k,nr_inodes=8210671)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    devtmpfs on /dev type devtmpfs (rw,nosuid,size=32842700k,nr_inodes=8210675,mode=7 55)
    securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode =000)
    tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
    tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
    cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_age nt=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
    pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
    cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
    cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
    cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
    cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
    cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
    cgroup on /sys/fs/cgroup/net_cls type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls)
    cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
    cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
    cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
    systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=24,pgrp=1,timeout=300,minproto=5,m axproto=5,direct)
    debugfs on /sys/kernel/debug type debugfs (rw,relatime)
    hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
    sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw,relatime)
    sunrpc on /proc/fs/nfsd type nfsd (rw,relatime)
    mqueue on /dev/mqueue type mqueue (rw,relatime)
    tmpfs on /tmp type tmpfs (rw)
    configfs on /sys/kernel/config type configfs (rw,relatime)
    10.10.10.100:/alpha on /alpha type nfs4 (rw,noatime,vers=4.0,rsize=1048576,wsize=1048576,n amlen=255,hard,proto=tcp,port=0,timeo=600,retrans= 2,sec=sys,clientaddr=10.10.10.104,local_lock=none, addr=10.10.10.100)
    ===============================================



    n104:/root => df
    ===============================================
    Filesystem 1K-blocks Used Available Use% Mounted on
    rootfs 32842684 1079116 31763568 4% /
    devtmpfs 32842700 0 32842700 0% /dev
    tmpfs 32976700 0 32976700 0% /dev/shm
    tmpfs 32976700 568 32976132 1% /run
    tmpfs 32976700 0 32976700 0% /sys/fs/cgroup
    tmpfs 32976700 0 32976700 0% /tmp
    10.10.10.100:/alpha 1922727936 530299904 1294736384 30% /alpha
    ===============================================

  7. #6
    Just Joined!
    Join Date
    Aug 2014
    Posts
    5
    I am wondering:

    1) Is there a syslinux module that enables SATA/IDE detection upon PXE booting? I did some google and came across a syslinux module termed "hdt.c32". But, I do not believe that is what I need.

    2) SATA/IDE support is compiled into my kernel that I am using and I indeed have no problem seeing /dev/sda1 on my server that runs the same kernel that I am using to PXE boot. So what is going on?

  8. #7
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,655
    Since this is a PXE boot image, we need to see the PXE configuration options on the server it is booting from. Since fstab can't find /dev/sda1, it doesn't mount /data. The nfs mount is working however.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  9. #8
    Just Joined!
    Join Date
    Aug 2014
    Posts
    5
    Umm. I guess you mean the /tftpboot/pxelinux.cfg/default file. This is what it looks like:
    ============================================
    DEFAULT linux
    LABEL linux
    KERNEL kernel-3.11.10-301.fc20.x86_64
    APPEND initrd=rootfs.img ip=dhcp rw
    ============================================

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •