Find the answer to your Linux question:
Results 1 to 9 of 9
Hi, I work for a food manufacturing company in Sheffield and we have a machine called a duck injector which operates off a Human Machine Interface Touch Screen. The program ...
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    4

    Unable to open Linux Program

    Hi,

    I work for a food manufacturing company in Sheffield and we have a machine called a duck injector which operates off a Human Machine Interface Touch Screen. The program inside this has been written and runs using Linux. This is stored on a Compact Flash Card.

    This screen has been damaged and isn't made anymore so we've been sent a new screen which is a 12'1" Intel Atom N270 HMI.

    I simply tried to put the Flash Card in the port and powered it up (booting from a removable source) and i get the following:

    LILO 22.1 LOADING LINUX.......
    UNCOMPRESSING LINUX...OK, BOOTING THE KERNEL...
    cp:/mnt/flash/etc:No such file or directory
    cp:/mnt/flash/var:No such file or directory
    cp:/mnt/flash/dev:No such file or directory
    cp:/mnt/flash/tmp:No such file or directory
    cp:/mnt/flash/etc/fstab.hdd:No such file or directory
    cd:can't cd to /mnt/dev
    exec:sbin/init:no such file or directory
    KERNEL PANIC:ATTEMPTER TO KILL INIT!


    I've had absolutely zero experience with Linux so i'm completely stuck as to what to do to get it to work.

    I've got a flash card with XP on it so i can boot up in that but then it won't read the flash card with the program on because it's in Linux (presumably?)

    I've also tried downloading Mubuntu 10.10 and booted it up using that on a flashdrive - this allows me to read the flash card with the program but i can't get it to boot up/run.

    As i say, i've got no idea how linux works, so although it probably doesn't, if this makes any sense to anyone out there and anyone can offer me any advice it would be greatly appreciated! (plus it will get my boss off my back! )

    Cheers,

    Nathan

  2. #2
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    Just a guess. Sounds to me the flash card was unmounted improperly and needs to have a check ran on the file system.

    If you have access where you can plug in that flash drive to another linux computer which has gparted installed.

    Plug in Flash card.
    Open gparted.
    Find flash card in gparted.
    Right click on flash card partition and select umount.
    Right click on flash card partition and select check. Then apply.
    Let it finish.


    Before starting make note of how much the flash drive was wrote to (color bar in gparted). Also file system being used (vfat,ext2,ext3,etc..) It may look full (like all yellow). This can happen on flash drives when unmounted improperly, After check see if yellow bar has shrunk.

    When removing flash card. Make sure it is unmounted before removing from computer (power down is OK before removing card)

    See if flash drive will boot in duck injector when done.

    Edit: Forgot to mention you can do in terminal with flash card inserted into another linux computer

    Code:
    fdisk -l
    and

    Code:
    df -h
    You can post readout back here in code tags to show if flash drive is full (overwritten)
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  3. #3
    Just Joined!
    Join Date
    Mar 2011
    Posts
    4
    Thanks for the reply.

    I've tried that and i still get the same errors when it's trying to boot up.

    Both colour bars stayed the same after unmounting and checking and neither are full. They're both in file system ext2.

    When i've checked them in gparted again they're both showing a mount point.

    Not sure what you meant by the last bit?

  4. #4
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    When you ran the check. Were any errors found? What distro did you use to check the flash card also?

    I am in Puppy 5.2 right now which runs as root user. So I don't need sudo or su to run fdisk -l or df -h. My example from terminal below to show what I mean by last part.

    Code:
    sh-4.1# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    rootfs                 14G  1.4G   12G  11% /
    /dev/root              14G  1.4G   12G  11% /
    shmfs                 228M     0  228M   0% /dev/shm
    sh-4.1# fdisk -l
    
    Disk /dev/sda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1985    15944481    7  HPFS/NTFS
    /dev/sda2            1986        7686    45793282+   5  Extended
    /dev/sda3            9603        9730     1022591   82  Linux swap / Solaris
    /dev/sda5            6309        7686    11068785   83  Linux
    /dev/sda6            5413        6308     7195648   83  Linux
    /dev/sda7            1986        3792    14511232+  83  Linux
    /dev/sda8            3792        5412    13015040    b  W95 FAT32
    
    Partition table entries are not in disk order
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  5. #5
    Just Joined!
    Join Date
    Mar 2011
    Posts
    4
    No errors were found. By distro do you mean like, ubuntu 10.10?

    I'm using the actual HMI Terminal, i've got ubuntu 10.10 loaded on a USB as a flashdrive so i booted it up using that. Then used system>adminstration>GParted Partition Editor.

    I don't even know what sudo or su means or if i need to use them?

  6. #6
    Linux Guru rokytnji's Avatar
    Join Date
    Jul 2008
    Location
    Pecos, Texas
    Posts
    2,942
    I have to leave. Run my own business. I'll leave you with a manual. It's in PDF. You can download and read it.

    Main page - Ubuntu Pocket Guide and Reference

    It will explain a lot you don't know.
    Linux Registered User # 475019
    Lead,Follow, or get the heck out of the way
    AntiX,Puppy,Ubuntu,Windows 7=(cuz of scooters)
    Open CourseWare for Linux Geeks

  7. #7
    Just Joined!
    Join Date
    Sep 2007
    Posts
    5
    If by chance, do you have another machine with the same linux OS on it?
    or the company that you got the machine from my have given you a disk, or an iso file (an image of the linux operating system)
    if you do have any of those you can burn it to a disk and run it "live" and install it to the flash drive.
    if you have the same os on another machine you can clone the os of the working one to the problem flash drive with parted magic or Clonezilla.

    PS On an unrelated subject I like the name of the town you work in . signed Sheff.....short for ,,you guessed it lol

  8. #8
    Linux User sgosnell's Avatar
    Join Date
    Oct 2010
    Location
    Baja Oklahoma
    Posts
    358
    You say you're booting from a removable source. What source? I assume it's Linux. Is it another CF, or what? How did you boot the HMI before? If you're using a different source, you will probably have to create the mount point /mnt/flash, and maybe the others, but probably not.

    I'm unclear on exactly how your HMI works, and how it boots, so more information would help, if you can figure it out.

  9. #9
    Just Joined!
    Join Date
    Mar 2011
    Posts
    4
    Thanks for the replies.

    Sheff (nice name ):

    Unfortunately we don't have any machine on site with Linux on it. Also the company that supplied the machine didn't send a disk containing any linux software or iso file on it.

    Some more information for yourself/sgosnell/anyone:

    The Old HMI: ww.novitas.ch/Pdf/ipc/DB_en_carat_300.pdf

    Information sent by the supplier when providing the above screen: img843.imageshack.us/i/duckinjinfo.jpg/

    The new HMI: ww.dsl-ltd.co.uk/productspec.aspx?ProdID=AHM-6xx7

    If i boot the old screen up without the CF then it says "No OS Found". If i put the flash card in it just boots up the program on the screen. In the setup the boot is set up to "Removable Sources" then "Hard Disk".

    So on the new screen, i went in to the setup and boot menu then changed it to boot from removable source. Then if i boot with the CF in it gives me these messages:

    LILO 22.1 LOADING LINUX.......
    UNCOMPRESSING LINUX...OK, BOOTING THE KERNEL...
    cp:/mnt/flash/etc:No such file or directory
    cp:/mnt/flash/var:No such file or directory
    cp:/mnt/flash/dev:No such file or directory
    cp:/mnt/flash/tmp:No such file or directory
    cp:/mnt/flash/etc/fstab.hdd:No such file or directory
    cd:can't cd to /mnt/dev
    exec:sbin/init:no such file or directory
    KERNEL PANIC:ATTEMPTER TO KILL INIT!


    I thought the CF card contains everything the program needs to boot up, because on the old HMI all it needs is that card but there must be something internal configured to run this program, at a guess?

    Personally, i think the old screen has been configured specially to run the program written for this machine (two german based companies) so i think we're going in circles.

    The problem i've got is, this new HMI cost £1,000 whereas an upgrade for the HMI from the company who provided the machine is £4,000 so my manager wants to make this one work!

Posting Permissions

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