[Voyage-linux] system panic - 2 usb devices

maciek (spam-protected)
Sat Aug 6 23:54:08 HKT 2011


I was wrong problem 2 usb devices is still not solved ;(
On neoware ca 10 is ok, on t5500 still system hangs and not response


It is my automount script wchih detect file system and mount usb flash.

#! /bin/sh
### BEGIN INIT INFO
# Provides:          usb
# Required-Start:    $remote_fs $network
# Required-Stop:     $remote_fs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: usb
# Description: start usb
### END INIT INFO


PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="start usb"
NAME=usb
#DAEMON=/usr/bin/$NAME
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

# Exit if the package is not installed
#[ -x "$DAEMON" ] || exit 0

device="sdb1"
katalog="/var/usbflash/"

do_start()
{
        # vfat & ntfs-3g check
        if [ `which fdisk` ]; then
        isntfs=`fdisk -l | grep $device | grep NTFS`
        isvfat=`fdisk -l | grep $device | grep FAT`
        isfuse=`lsmod | grep fuse`
        isntfs3g=`which ntfs-3g`
        else
        isntfs=""
        isvfat=""
        fi
        # mount with ntfs-3g if possible, else with default mount
        if [ "$isntfs" -a "$isfuse" -a "$isntfs3g" ]; then
        ntfs-3g -o nls=utf8 /dev/$device $katalog
        elif [ "$isvfat" ]; then
        mount -o iocharset=utf8 /dev/$device $katalog
        else
        mount /dev/$device $katalog
        fi
}

case "$1" in
    start)
        [ -e "/dev/$device" ] || exit 0
        do_start
        ;;
    stop)
        [ -e "/dev/$device" ] || exit 0
        umount -l /dev/$device
        ;;
esac

exit 0






On Sat, 6 Aug 2011 15:48:09 +0200, maciek wrote
> Ok everything goes great. 
> I made /boot/grup/default and goes OK
> 
> Problem on image 2.6.32-5-686 seems to be solved...
> 
> On Sat, 6 Aug 2011 14:51:46 +0200, maciek wrote
> > after installing linux-headers and one again intslling linux-image:
> > 
> > Running depmod.
> > Running update-initramfs.
> > update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
> > initrd.img(/boot/initrd.img-2.6.32-5-686
> > ) points to /boot/initrd.img-2.6.32-5-686
> >  (/boot/initrd.img-2.6.32-5-686) -- doing nothing at
> > 
> > /var/lib/dpkg/info/linux-image-2.6.32-5-686.postinst line 347.
> > vmlinuz(/boot/vmlinuz-2.6.32-5-686
> > ) points to /boot/vmlinuz-2.6.32-5-686
> >  (/boot/vmlinuz-2.6.32-5-686) -- doing nothing at
> > 
> > /var/lib/dpkg/info/linux-image-2.6.32-5-686.postinst line 347.
> > Examining /etc/kernel/postinst.d.
> > run-parts: executing /etc/kernel/postinst.d/dkms 2.6.32-5-686
> > /boot/vmlinuz-2.6.32-5-686
> > run-parts: executing /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-
> > 686
> > 
> > /boot/vmlinuz-2.6.32-5-686
> > run-parts: executing /etc/kernel/postinst.d/symlink_hook 2.6.32-5-686
> > 
> > /boot/vmlinuz-2.6.32-5-686
> > run-parts: executing /etc/kernel/postinst.d/zz-update-grub 2.6.32-5-
> > 686
> > 
> > /boot/vmlinuz-2.6.32-5-686
> > Searching for GRUB installation directory ... found: /boot/grub
> > Searching for default file ... Generating /boot/grub/default file 
> > and setting the default
> > 
> > boot entry to 0
> > entry not specified.
> > run-parts: /etc/kernel/postinst.d/zz-update-grub exited with return 
> > code 1 Failed to process /etc/kernel/postinst.d at
> > 
> > /var/lib/dpkg/info/linux-image-2.6.32-5-686.postinst line 799.
> > dpkg: error processing linux-image-2.6.32-5-686 (--configure):
> >  subprocess installed post-installation script returned error exit 
> > status 9 configured to not write apport reports                      
> >                 dpkg: dependency problems prevent configuration of
> > 
> > linux-image-686:
> >  linux-image-686 depends on linux-image-2.6.32-5-686; however:
> >   Package linux-image-2.6.32-5-686 is not configured yet.
> > dpkg: error processing linux-image-686 (--configure):
> >  dependency problems - leaving unconfigured
> > configured to not write apport reports
> >                                       Errors were encountered while
processing:
> >  linux-image-2.6.32-5-686
> >  linux-image-686
> > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > 
> > On Sat, 6 Aug 2011 14:33:38 +0200, maciek wrote
> > > On Fri, 05 Aug 2011 10:54:26 +0800, Kim-man 'Punky' TSE wrote
> > > > Change back to install debian's stock kernel to see if the problem
persist.
> > > > 
> > > > On 8/4/2011 8:14 PM, maciek wrote:
> > > > > Hello
> > > > >
> > > > > voyage 0.7.5
> > > > > terminal HP T5500
> > > > >
> > > > > lsusb:
> > > > > Bus 002 Device 002: ID 046d:080f Logitech, Inc. Webcam C120
> > > > > Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > > Bus 001 Device 002: ID 0951:1607 Kingston Technology DataTraveler 100
> > > > > Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> > > > >
> > > Ok
> > > 
> > > I make:
> > > remountrw
> > > apt-get install  linux-image-686 
> > > everything ok but:
> > > Running depmod.
> > > Running update-initramfs.
> > > update-initramfs: Generating /boot/initrd.img-2.6.32-5-686
> > > Examining /etc/kernel/postinst.d.
> > > run-parts: executing /etc/kernel/postinst.d/dkms 2.6.32-5-686
> > > /boot/vmlinuz-2.6.32-5-686
> > > dkms: WARNING: linux headers are missing, which may explain the 
> > > above failures.      please install the linux-headers-2.6.32-5-686 
> > > package to fix this. run-parts: executing 
> > > /etc/kernel/postinst.d/initramfs-tools 2.6.32-5-686 /boot/vmlinuz-
> > > 2.6.32-5-686 run-parts: executing 
> > > /etc/kernel/postinst.d/symlink_hook 2.6.32-5-686 /boot/vmlinuz-
> > > 2.6.32-5-686 run-parts: executing /etc/kernel/postinst.d/zz-update-
> > > grub 2.6.32-5-686 /boot/vmlinuz-2.6.32-5-686 Searching for GRUB 
> > > installation directory ... found: /boot/grub Probing devices to 
> > > guess BIOS drives. This may take a long time. Searching for default 
> > > file ... Generating /boot/grub/default file and setting the default 
> > > boot entry to 0 entry not specified. run-parts: 
> > > /etc/kernel/postinst.d/zz-update-grub exited with return code 1 
> > > Failed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-
> > > image-2.6.32-5-686.postinst line 799. dpkg: error processing linux-
> > > image-2.6.32-5-686 (--configure): subprocess installed post-
> > > installation script returned error exit status 128 configured to not 
> > > write apport reports                                      dpkg: 
> > > dependency problems prevent configuration of linux-image-686: linux-
> > > image-686 depends on linux-image-2.6.32-5-686; however:  Package 
> > > linux-image-2.6.32-5-686 is not configured yet. dpkg: error 
> > > processing linux-image-686 (--configure): dependency problems -
> > >  leaving unconfigured configured to not write apport reports         
> > >                              Errors were encountered while 
> > > processing: linux-image-2.6.32-5-686 linux-image-686
> > > E: Sub-process /usr/bin/dpkg returned an error code (1)
> > > 
> > > and then:
> > > update-grub
> > > 
> > > and error:
> > > 
> > > Searching for GRUB installation directory ... found: /boot/grub
> > > Searching for default file ... Generating /boot/grub/default file 
> > > and setting the default boot entry to 0 entry not specified. Usage: 
> > > grub-set-default [OPTION] entry Set the default boot entry for GRUB.
> > > 
> > >   -h, --help              print this message and exit
> > >   -v, --version           print the version information and exit
> > >   --root-directory=DIR    Use the directory DIR instead of the root
directory
> > > 
> > > ENTRY is a number or the special keyword `default\'.
> > > 
> > > Report bugs to <bug-grub at gnu.org>.
> > > 
> > > > > daemons:
> > > > > 1. Logitech - fswebcam (/dev/video0), take photo every 5 sec
> > > > > 2. Download files on Kingston 8 GB (/dev/sda1) every 10 sec
> > > > >
> > > > > problem:
> > > > > when I put both devices&  turn on both deamons, system is crashes, no
> > logs, i
> > > > > must make hard reset
> > > > >
> > > > > if there is just one device (webcam or kingston) all is ok
> > > > >
> > > > >
> > > > > Why?
> > > > >
> > > > 
> > > > -- 
> > > > Regards,
> > > > Kim-man "Punky" Tse
> > > > 
> > > > * Open Source Embedded Solutions and Systems
> > > >    - Voyage Linux (http://linux.voyage.hk)
> > > >    - Voyage ONE   (http://linux.voyage.hk/voyage-one)
> > > >    - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
> > > > * Voyage Store   (http://store.voyage.hk)
> > > 
> > > v o i p t e l e . n e t , dzwon najtaniej jak to mozliwe
> > > e r a u r . c o m , rozwiazania internetowe dla firm i klientow
indywidualnych
> > > 
> > > _______________________________________________
> > > Voyage-linux mailing list
> > > Voyage-linux at list.voyage.hk
> > > http://list.voyage.hk/mailman/listinfo/voyage-linux





More information about the Voyage-linux mailing list