Jeszcze kawałek loga z uruchomienia

Apr  3 13:57:07 Gargoyle daemon.warn exportfs[2086]: could not open /var/lib/nfs                                 /.etab.lock for locking: errno 2 (No such file or directory)
Apr  3 13:57:07 Gargoyle user.info sysinit: exportfs: could not open /var/lib/nf                                 s/.etab.lock for locking: errno 2 (No such file or directory)
Apr  3 13:57:07 Gargoyle daemon.err exportfs[2086]: can't lock /var/lib/nfs/etab                                  for writing
Apr  3 13:57:07 Gargoyle user.info sysinit: exportfs: can't lock /var/lib/nfs/et                                 ab for writing

A to reszta

Apr  3 14:05:40 Gargoyle user.info kernel: usb 1-1: new high speed USB device us                                 ing ar71xx-ehci and address 2
Apr  3 14:05:40 Gargoyle user.info kernel: usb 1-1: configuration #1 chosen from                                  1 choice
Apr  3 14:05:40 Gargoyle user.info kernel: scsi0 : SCSI emulation for USB Mass S                                 torage devices
Apr  3 14:05:40 Gargoyle user.debug kernel: usb-storage: device found at 2
Apr  3 14:05:40 Gargoyle user.debug kernel: usb-storage: waiting for device to s                                 ettle before scanning
Apr  3 14:05:41 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Gener                                 ic Product=USB_Storage Serial=000000000207
Apr  3 14:05:45 Gargoyle user.notice kernel: scsi 0:0:0:0: Direct-Access     Gen                                 eric  STORAGE DEVICE   0207 PQ: 0 ANSI: 0
Apr  3 14:05:45 Gargoyle user.debug kernel: usb-storage: device scan complete
Apr  3 14:05:46 Gargoyle user.notice kernel: sd 0:0:0:0: [sda] 7744512 512-byte                                  logical blocks: (3.96 GB/3.69 GiB)
Apr  3 14:05:46 Gargoyle user.notice kernel: sd 0:0:0:0: [sda] Write Protect is                                  off
Apr  3 14:05:46 Gargoyle user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 0b 00                                  00 08
Apr  3 14:05:46 Gargoyle user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache                                 : write through
Apr  3 14:05:46 Gargoyle user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache                                 : write through
Apr  3 14:05:46 Gargoyle user.info kernel:  sda: sda1 sda2
Apr  3 14:05:46 Gargoyle user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache                                 : write through
Apr  3 14:05:46 Gargoyle user.notice kernel: sd 0:0:0:0: [sda] Attached SCSI rem                                 ovable disk
Apr  3 14:05:49 Gargoyle user.info kernel: EXT4-fs (sda1): mounted filesystem wi                                 th ordered data mode

No i dalej nic.
A po /etc/init.d/usb_storage start pomyślał, pomyślał i nic. Błędu żadnego nie wywaliło.

Hmmm, ten plik wydaje mi się, że mam standardowy ponieważ nic nie zmieniałem.
Oto jego zawartość:

#!/bin/sh /etc/rc.common

START=56

update_sharetype()
{
        section="$1"
        config_get path $1 path
        if [ "$path" = "$cur_mount" ] ; then
                shared=1
        fi
}


usb_lock()
{
        timeout=15
        got_lock=0
        while [ -e /tmp/usb_restart.lock ] && [ $timeout -gt 0 ] ; do
                sleep 1
                timeout=$(($timeout - 1))
        done
        if [ ! -e /tmp/usb_restart.lock ] ; then
                touch /tmp/usb_restart.lock
                got_lock=1
        fi
        echo "$got_lock"
}

usb_unlock()
{
        rm -rf /tmp/usb_restart.lock
}


start()
{
        got_lock=$(usb_lock)
        if [ "$got_lock" = "1" ] ; then
                do_start
                usb_unlock
        fi
}

do_start()
{
        gdisplay=$(uci get gargoyle.display.system_usb_storage 2>/dev/null)
        if [ -z "$gdisplay" ] ; then
                uci set gargoyle.display.system_usb_storage='NoĹiki USB'
                uci set gargoyle.scripts.system_usb_storage='usb_storage.sh'
                uci set gargoyle.system.usb_storage='350'
                uci commit
        fi

        rm -rf /tmp/mounted_usb_storage.tab
        drives=$(blkid | sed 's/:.*UUID=\"/:/g' | sed 's/\".*$//g')

        echo "$drives" >/tmp/drives_found.txt
        date >>/tmp/drives_found.txt

        mounted=""
        for devid in $drives ; do
                id=$(echo $devid | sed 's/^.*://g')
                d=$(echo $devid | sed 's/:.*$//g')
                dev=$(echo $d | sed 's/[0-9]*$//g')
                type=$(disktype "$d" | egrep -o "Ext.|FAT..|NTFS")
                err="";
                if [ "$type" = "FAT32" ] || [ "$type" = "FAT16" ] ; then
                        mkdir -p "/tmp/usb_mount/$id"
                        chmod 777 "/tmp/usb_mount/$id"
                        umount "/tmp/usb_mount/$id" 2>/dev/null
                        err=$(mount -t vfat -o umask=0,dmask=0 "$d" "/tmp/usb_mount/$id")
                elif [ "$type" = "NTFS" ] ; then
                        mkdir -p "/tmp/usb_mount/$id"
                        chmod 777 "/tmp/usb_mount/$id"
                        umount "/tmp/usb_mount/$id" 2>/dev/null
                        err=$(ntfs-3g "$d" "/tmp/usb_mount/$id")
                elif  [ -n "$type" ] ; then
                        mkdir -p "/tmp/usb_mount/$id"
                        chmod 777 "/tmp/usb_mount/$id"
                        umount "/tmp/usb_mount/$id" 2>/dev/null
                        err="tmp"
                        ext_num=4
                        while [ -n "$err" ] && [ $ext_num -ge 2 ] ; do
                                type="ext$ext_num"
                                err=$(mount -t $type -o noatime "$d" "/tmp/usb_mount/$id" 2>&1)
                                ext_num=$(($ext_num-1))
                        done
                fi
                if [ -n "$err" ] ; then
                        umount "/tmp/usb_mount/$id" 2>/dev/null
                else
                        share_type=""
                        cur_mount="/tmp/usb_mount/$id"

                        shared=0
                        config_load "samba"
                        config_foreach update_sharetype "sambashare"
                        if [ "$shared" = "1" ] ; then share_type="S" ; fi

                        shared=0
                        config_load "nfsd"
                        config_foreach update_sharetype "nfsshare"
                        if [ "$shared" = "1" ] ; then share_type="N$share_type" ; fi
                        if [ -z "$share_type" ] ; then share_type="-" ; fi

                        share_size=$(df  | grep "$d" | awk '{ print $2 }')
                        if [ -z "$share_size" ] ; then share_size="-" ; fi
                        if [ -n "$share_size" ] ; then share_size=$(($share_size*1024)) ; fi

                        echo "$d        /tmp/usb_mount/$id      $type   $share_size     $share_type"  >>/tmp/mounted_usb_storage.tab
                        mounted="$mounted /tmp/usb_mount/$id"
                fi
        done
}

stop()
{
        got_lock=$(usb_lock)
        if [ "$got_lock" = "1" ] ; then
                do_stop
                usb_unlock
        fi
}

restart()
{
        got_lock=$(usb_lock)
        if [ "$got_lock" = "1" ] ; then
                do_stop
                do_start
                usb_unlock
        fi
}


do_stop()
{
        if [ -e /tmp/mounted_usb_storage.tab ] ; then
                old_mounts=$(cat /tmp/mounted_usb_storage.tab | awk ' { print $2 ; } ' )
                for m in $old_mounts ; do
                        umount "$m" 2>/dev/null
                done
                rm -rf /tmp/mounted_usb_storage.tab
        fi
}

No to rozumiem, tylko nie wiem czemu nośniki automatem się nie montują. Sprawdziłem systemy plików. Co jeszcze może być powodem? Gargoyle jest świeże.

W taki sposób jestem w stanie zamontować pena. Odmontować go mogę tylko z opcją -l.
Sprawdziłem plik e2fsck i jest wszystko w porządku.
Niestety poprzez Gargoyle nadal nic się nie montuje. Nadal jest napisane, że nie podłączono żadnego nośnika USB.

Mam teraz wpięty pendrive,
próbuję ręcznie mount /dev/sba1 /mnt oraz mount -t /dev/sba1 /mnt i nie działa.
W GUI dalej nic nie mam.
A to wynik komendy mount

rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime,size=30992k)
tmpfs on /dev type tmpfs (rw,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
/dev/mtdblock4 on /overlay type jffs2 (rw,relatime)
mini_fo:/overlay on / type mini_fo (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)

Czy to mogą być jakieś pozostałości w pamięci routera po innych obrazach? Zainstalowałem oryginalnego Gargoyla i też to samo. Parę dni temu bawiłem się routerem i nie pamiętam abym miał takie kłopoty. Tylko, że więcej używałem LUCI (teraz też nie mogłem zamontować przez LUCI tego dysku twardego, na tomato działa).

Witam,
mam problem z automontowaniem dysków w Gargoyle. Chciałbym używać GUI a niestety coś mi nie chce za bardzo to wszystko działać. Może zacznę od tego, że to moje początki z openwrt i nie posiadam jeszcze dużej wiedzy (to tak delikatnie mówiąc wink ).
Korzystam ze spolszczonego obrazu Gargoyle, ostatniej wersji Cezarego, router WNDR3700.

Problem jest, że po podłączeniu dysku partycje się nie montują. W opcji "Nośniki USB" w GUI Gargoyle można przeczytać tylko, że nie podłączono żadnego nośnika USB. Podłączam właściwie trzy nośniki (pendrive na NTFS, pendrive na EXT2 + partycja SWAP) oraz obudowę SATA dla dysku 2,5" 120GB (trzy partycje, pierwsze 0,5 GB EXT3, druga 256MB swap, trzecia- reszta EXT3).
Udało mi się zamontować ręcznie na /mnt ale nadal nie było nic widoczne nic w zakładce "Nośniki USB".
Czy coś robię nie tak, czy też o czymś może nie wiem? Sądziłem, że Gargoyle dobrze sobie radzi z automontowaniem zasobów.
Zdaję sobie sprawę, że wszystko można zrobić w konsoli, no ale właśnie mi chodzi o GUI. Nie tylko ja będę ewentulanie obsługiwał router.

To pokazuje logread.

Apr  2 18:22:34 Gargoyle user.info kernel: usb 1-1: new high speed USB device using ar71xx-ehci and address 5
Apr  2 18:22:34 Gargoyle user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Apr  2 18:22:34 Gargoyle user.info kernel: scsi3 : SCSI emulation for USB Mass Storage devices
Apr  2 18:22:34 Gargoyle user.debug kernel: usb-storage: device found at 5
Apr  2 18:22:34 Gargoyle user.debug kernel: usb-storage: waiting for device to settle before scanning
Apr  2 18:22:39 Gargoyle user.notice kernel: scsi 3:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
Apr  2 18:22:39 Gargoyle user.debug kernel: usb-storage: device scan complete
Apr  2 18:22:39 Gargoyle user.notice kernel: sd 3:0:0:0: [sda] 15753215 512-byte logical blocks: (8.06 GB/7.51 GiB)
Apr  2 18:22:39 Gargoyle user.notice kernel: sd 3:0:0:0: [sda] Write Protect is off
Apr  2 18:22:39 Gargoyle user.debug kernel: sd 3:0:0:0: [sda] Mode Sense: 45 00 00 08
Apr  2 18:22:39 Gargoyle user.err kernel: sd 3:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:22:39 Gargoyle user.err kernel: sd 3:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:22:39 Gargoyle user.info kernel:  sda: sda1
Apr  2 18:22:39 Gargoyle user.err kernel: sd 3:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:22:39 Gargoyle user.notice kernel: sd 3:0:0:0: [sda] Attached SCSI removable disk
Apr  2 18:23:03 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=SanDisk Product=U3_Cruzer_Micro Serial=49636202A9D38EB1
Apr  2 18:30:33 Gargoyle user.info kernel: usb 1-1: USB disconnect, address 5
Apr  2 18:30:38 Gargoyle user.info kernel: usb 1-1: new high speed USB device using ar71xx-ehci and address 6
Apr  2 18:30:38 Gargoyle user.info kernel: usb 1-1: configuration #1 chosen from 1 choice
Apr  2 18:30:38 Gargoyle user.info kernel: scsi4 : SCSI emulation for USB Mass Storage devices
Apr  2 18:30:38 Gargoyle user.debug kernel: usb-storage: device found at 6
Apr  2 18:30:38 Gargoyle user.debug kernel: usb-storage: waiting for device to settle before scanning
Apr  2 18:30:43 Gargoyle user.notice kernel: scsi 4:0:0:0: Direct-Access     FUJITSU  MHY2120BH             PQ: 0 ANSI: 0
Apr  2 18:30:43 Gargoyle user.debug kernel: usb-storage: device scan complete
Apr  2 18:30:43 Gargoyle user.notice kernel: sd 4:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
Apr  2 18:30:43 Gargoyle user.notice kernel: sd 4:0:0:0: [sda] Write Protect is off
Apr  2 18:30:43 Gargoyle user.debug kernel: sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
Apr  2 18:30:43 Gargoyle user.err kernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:30:43 Gargoyle user.err kernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:30:43 Gargoyle user.info kernel:  sda: sda1 sda2 sda3
Apr  2 18:30:43 Gargoyle user.err kernel: sd 4:0:0:0: [sda] Assuming drive cache: write through
Apr  2 18:30:43 Gargoyle user.notice kernel: sd 4:0:0:0: [sda] Attached SCSI disk
Apr  2 18:31:01 Gargoyle cron.err crond[2422]: USER root pid 3965 cmd /usr/bin/set_kernel_timezone >/dev/null 2>&1
Apr  2 18:31:03 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=Super_Top Product=USB_2.0_SATA_BRIDGE Serial=M6116018VF16

dmesg

scsi 0:0:0:0: Direct-Access     FUJITSU  MHY2120BH             PQ: 0 ANSI: 0
sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
usb-storage: device scan complete
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda1): mounted filesystem with ordered data mode
ar71xx-wdt: enabling watchdog timer
usb 1-1: USB disconnect, address 2
usb 1-1: new high speed USB device using ar71xx-ehci and address 3
usb 1-1: configuration #1 chosen from 1 choice
scsi1 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 3
usb-storage: waiting for device to settle before scanning
scsi 1:0:0:0: Direct-Access     FUJITSU  MHY2120BH             PQ: 0 ANSI: 0
usb-storage: device scan complete
sd 1:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 1:0:0:0: [sda] Assuming drive cache: write through
sd 1:0:0:0: [sda] Attached SCSI disk
usb 1-1: USB disconnect, address 3
usb 1-1: new high speed USB device using ar71xx-ehci and address 4
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 4
usb-storage: waiting for device to settle before scanning
scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 2:0:0:0: [sda] 15753215 512-byte logical blocks: (8.06 GB/7.51 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Mode Sense: 45 00 00 08
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
usb 1-1: USB disconnect, address 4
usb 1-1: new high speed USB device using ar71xx-ehci and address 5
usb 1-1: configuration #1 chosen from 1 choice
scsi3 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 3:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
usb-storage: device scan complete
sd 3:0:0:0: [sda] 15753215 512-byte logical blocks: (8.06 GB/7.51 GiB)
sd 3:0:0:0: [sda] Write Protect is off
sd 3:0:0:0: [sda] Mode Sense: 45 00 00 08
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 3:0:0:0: [sda] Assuming drive cache: write through
sd 3:0:0:0: [sda] Attached SCSI removable disk
usb 1-1: USB disconnect, address 5
usb 1-1: new high speed USB device using ar71xx-ehci and address 6
usb 1-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 6
usb-storage: waiting for device to settle before scanning
scsi 4:0:0:0: Direct-Access     FUJITSU  MHY2120BH             PQ: 0 ANSI: 0
usb-storage: device scan complete
sd 4:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/111 GiB)
sd 4:0:0:0: [sda] Write Protect is off
sd 4:0:0:0: [sda] Mode Sense: 03 00 00 00
sd 4:0:0:0: [sda] Assuming drive cache: write through
sd 4:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2 sda3
sd 4:0:0:0: [sda] Assuming drive cache: write through
sd 4:0:0:0: [sda] Attached SCSI disk
 

fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0c33337c

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          61      489951   83  Linux
/dev/sda2              62          92      249007+  82  Linux swap / Solaris
/dev/sda3              93       14593   116479282+  83  Linux

disktype

--- /dev/sda
Block device, size 111.8 GiB (120034123776 bytes)
DOS/MBR partition map
Partition 1: 478.5 MiB (501709824 bytes, 979902 sectors from 63)
  Type 0x83 (Linux)
  Ext3 file system
    Volume name "exroot"
    UUID FEB1A2E1-E6B3-46B1-9B6D-1E2E68771534 (DCE, v4)
    Volume size 478.5 MiB (501706752 bytes, 489948 blocks of 1 KiB)
Partition 2: 243.2 MiB (254983680 bytes, 498015 sectors from 979965)
  Type 0x82 (Linux swap / Solaris)
  Linux swap, version 2, subversion 1, 4 KiB pages, little-endian
    Swap size 243.2 MiB (254971904 bytes, 62249 pages of 4 KiB)
Partition 3: 111.1 GiB (119274785280 bytes, 232958565 sectors from 1477980)
  Type 0x83 (Linux)
  Ext3 file system
    Volume name "dysk"
    UUID 7B394D95-3817-48D6-8EBB-6D71F8A08AEA (DCE, v4)
    Last mounted at "/mnt"
    Volume size 111.1 GiB (119274782720 bytes, 29119820 blocks of 4 KiB)