Ticket #1110 (new enhancement)
Patch for Linux 2.6.31 (working with Ubuntu 9.10)
| Reported by: | arnaud.faucher | Owned by: | hootch |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | xplat | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | cpu/chip: | i386 | |
| Linux Distribution: | Ubuntu | Linux Dist Version: | 9.10 |
| Kernel Version (Result of "uname -r"): | 2.6.31-1-generic |
Description
Here is a patch that is fully working for me on Ubuntu 9.10 (kernel 2.6.31). Many corrections were done too for kernel versions 2.6.28 and 2.6.30. The patch is not tested against these versions, please send feedback if you can.
Debugging is enabled this patch (use dmesg or /var/log/messages).
Attachments
Change History
Changed 3 years ago by arnaud.faucher
-
attachment
ndas-core.conf
added
/etc/modprobe.d/ndas-core.conf file
comment:2 Changed 3 years ago by arnaud.faucher
On recent Ubuntu (Jaunty, Karmic), the /etc/modprobe.d/options file mentioned in ticket #839 no longer exists. Please adapt and use the "ndas-core.conf" file instead (also to be placed in /etc/modprobe.d/).
comment:3 in reply to: ↑ description Changed 3 years ago by ngaldridge
Replying to arnaud.faucher:
I got this to work - you brought me kicking and screaming up to Karmic and the 2.6.31 kernel. Didn't work with Jaunty and 2.6.28, neither with Karmic and 2.6.30... was failing due to a lack of bus_id in 'struct device' on line 883 of ndas_scsi.c.
N.
comment:4 Changed 3 years ago by ngaldridge
Do you think it's important that I'm getting a:
Assertion failed "nbio->nr_sectors == blk_rq_cur_sectors(req)",/usr/src/modules/ndas/block/block26.c,nbio_alloc,line=179
in /var/log/messages when I do a fsck?
Changed 3 years ago by arnaud.faucher
-
attachment
Linux2.6.31.patch
added
Patch for Linux 2.6.31 (patch -p1 < Linux2.6.31.patch)
comment:5 follow-up: ↓ 8 Changed 3 years ago by arnaud.faucher
Hi ngaldrige,
I've made changes to the patch in order to fix the failed assertion (wrong function being used). The module "should" now also build on 2.6.30, but it's not tested.
I would also like to help for 2.6.28, but I don't have an Ubuntu 9.04 machine. Do you remember if the patched module compiles on it ?
comment:6 Changed 3 years ago by ngaldridge
I don't think it built on 2.6.28 - compiler error ~ bus_id does not exist in 'struct device' on line 883 of ndas_scsi.c.
I'll give the revised patch a try tonight.
N.
comment:7 Changed 3 years ago by Sorcerer
tested on 2.6.30 (x86_64), compiles and works perfectly thanks :)
comment:8 in reply to: ↑ 5 Changed 3 years ago by ngaldridge
Replying to arnaud.faucher:
I've made changes to the patch in order to fix the failed assertion (wrong function being used). The module "should" now also build on 2.6.30, but it's not tested.
Ok - rebuilt with new patch. No assertions in /var/log/messages and fsck completed successfully also.
Looking good!
comment:9 Changed 3 years ago by arnaud.faucher
After testing, this patch also works for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13).
comment:10 follow-ups: ↓ 12 ↓ 22 Changed 3 years ago by psykotik
Well, it still doesn't work yet for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13-generic). Three patchs have been applied.
sudo ls /dev/ndas* /dev/ndas /dev/ndas-04431533-0 /dev/ndas-04431533-0p1
cat /proc/ndas/devs Name ID Key Serial Ver Status Slots Yuggoth-WIFI MGGU8HTL9Y6CBNC***** Yes 000036304431533 1 Online 1 Yuggoth CMLF2SN3KG1P3NX***** Yes 000060720012974 N/A Offline
cat /etc/fstab | grep /dev/ndas-04431533-0p1 /dev/ndas-04431533-0p1 /media/Yuggoth ntfs-3g defaults 0 0
sudo mount /media/Yuggoth/ Failed to read last sector (781417601): Argument invalide HINTS: Either the volume is a RAID/LDM but it wasn't setup yet, or it was not setup correctly (e.g. by not using mdadm --build ...), or a wrong device is tried to be mounted, or the partition table is corrupt (partition is smaller than NTFS), or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount '/dev/ndas-04431533-0p1': Argument invalide The device '/dev/ndas-04431533-0p1' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
Please note it used to work on Ubuntu 8.10 Intrepid. The external hard disk has not been formated since then.
Also, "cat /proc/ndas/devices/MyDisk/slots" doesn't find anything (dunno if it is an expected behaviour)
comment:11 Changed 3 years ago by psykotik
Also from syslog :
Jul 7 17:02:16 psykotik-desktop kernel: [ 45.184039] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:576|ing serial=000036304431533 name=Yuggoth-WIFI online=1|nd/dpcd1,4772:6:54.92,3452:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.184049] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:597|name=Yuggoth-WIFI nr_unit=1 status=1, slot=1, 0|nd/dpcd1,4772:6:54.92,3452:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.184054] BL|1|ndcmd_dev_changed|/usr/src/modules/ndas/block/ctrldev.c:607|slot[0]=1|nd/dpcd1,4772:6:54.92,3452:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.184059] BL|1|slot_create|/usr/src/modules/ndas/block/ctrldev.c:137|ing s=1|nd/dpcd1,4772:6:54.92,3416:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.209856] BL|1|ndcmd_enabled_handler|/usr/src/modules/ndas/block/ctrldev.c:540|slot=1 err=0|nd/dpcd1,4772:6:54.98,3924:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.209863] BL|1|slot_enable|/usr/src/modules/ndas/block/ctrldev.c:183|mode=1|nd/dpcd1,4772:6:54.98,3864:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.209877] BL|1|slot_enable|/usr/src/modules/ndas/block/ctrldev.c:225|mode=1|nd/dpcd1,4772:6:54.98,3864:8 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.209923] ndas-04431533-0: p1 Jul 7 17:02:16 psykotik-desktop kernel: [ 45.216179] ndas-04431533-0: p1 size 781417602 limited to end of disk Jul 7 17:02:16 psykotik-desktop kernel: [ 45.218843] ndas: /dev/ndas-04431533-0 enabled
comment:12 in reply to: ↑ 10 Changed 3 years ago by arnaud.faucher
Are you on 32-bit or 64-bit Ubuntu ?
comment:13 follow-up: ↓ 14 Changed 3 years ago by psykotik
32 bits.
comment:14 in reply to: ↑ 13 ; follow-up: ↓ 15 Changed 3 years ago by ngaldridge
Replying to psykotik:
32 bits.
Just out of interest Did you make sure you deleted all the module building crud from /usr/src/modules ? From all my multiple attempts, I had a lot of old junk hanging around in there. Also did you dpkg -r all the ndas related modules?
comment:15 in reply to: ↑ 14 ; follow-up: ↓ 16 Changed 3 years ago by psykotik
Did you make sure you deleted all the module building crud from /usr/src/modules ? From all my multiple attempts, I had a lot of old junk hanging around in there. Also did you dpkg -r all the ndas related modules?
yes. I did run
sudo dpkg -r ndasadmin sudo dpkg -r ndas-modules-`uname -r` sudo dpkg -r ndas-modules-src
before reinstalling.
comment:16 in reply to: ↑ 15 ; follow-up: ↓ 19 Changed 3 years ago by arnaud.faucher
Did you also remove all the /usr/src/ndas* files before reinstalling the packages ?
comment:17 Changed 3 years ago by ngaldridge
This is a good tip - there was all manner of junk kicking around in there. The source build and some stale old cached .deb files also.
comment:18 Changed 3 years ago by arnaud.faucher
In fact I have created 3 scripts to build the packages, install and remove everything. Maybe they can be useful.
- Building:
#!/bin/sh rm -f ndas_1.1-24.dsc rm -f ndas_1.1-24_i386.changes rm -f ndas_1.1-24.tar.gz rm -f ndas_1.1.orig.tar.gz rm -f ndas-modules-src_1.1-24_all.deb rm -f ndasadmin_1.1-24_i386.deb rm -f ndas_1.1-24.diff.gz cd ndas-1.1-24 make dpkg-buildpackage -rfakeroot cd ..
- Installing:
#!/bin/sh sudo rm /usr/src/ndas* sudo dpkg -i ndas-modules-src_1.1-24_all.deb sudo m-a prepare sudo m-a auto-install ndas sudo dpkg -i ndasadmin_1.1-24_i386.deb
- Uninstalling:
#!/bin/sh #sudo umount /mnt/netdisk1 sudo dpkg -r ndasadmin sudo dpkg -r ndas-modules-`uname -r` sudo dpkg -r ndas-modules-src sudo rm /usr/src/ndas*
- And for a simple kernel update:
sudo m-a auto-install ndas
always works well (see How to build a NDAS package for Debian).
Ideas:
- For many recent distributions, it would be interesting to add a DKMS configuration file, so that the module would build automatically on kernel update.
- The ndasadmin utility could be ported to Python: one library for backend processing, and front-ends (GUI and CLI). This way, only the libndas.a proprietary library would be architecture-dependent.
comment:19 in reply to: ↑ 16 Changed 3 years ago by psykotik
Replying to arnaud.faucher:
Did you also remove all the /usr/src/ndas* files before reinstalling the packages ?
I tried, but no change.
comment:20 follow-up: ↓ 21 Changed 3 years ago by arnaud.faucher
Replying to psykotik:
Can you try to mount your NDAS drive using USB to see if you have the same error ?
comment:21 in reply to: ↑ 20 ; follow-up: ↓ 23 Changed 3 years ago by psykotik
Replying to arnaud.faucher:
Can you try to mount your NDAS drive using USB to see if you have the same error ?
It perfectly works through USB: I can copy and delete files.
comment:22 in reply to: ↑ 10 Changed 3 years ago by arnaud.faucher
Replying to psykotik:
While re-reading your comments:
Well, it still doesn't work yet for me on Ubuntu 9.04 Jaunty (kernel version 2.6.28-13-generic). Three patches have been applied.
Don't know if it's a mistake, but there are 4 patches to apply:
- 2 patches from ticket #839
- 1 patch from ticket #1105 (apply with patch -p0 < openSUSE.patch)
- 1 patch from this ticket
comment:23 in reply to: ↑ 21 ; follow-up: ↓ 24 Changed 3 years ago by arnaud.faucher
comment:24 in reply to: ↑ 23 ; follow-up: ↓ 25 Changed 3 years ago by psykotik
Replying to arnaud.faucher:
Replying to psykotik:
Can you try with the pre-built packages from ticket #1112 ?
I installed it... but still same issue.
(I didn't install the opensuse patch, since it is meant to be used by opensuse users... isn't it?)
comment:25 in reply to: ↑ 24 ; follow-up: ↓ 26 Changed 3 years ago by arnaud.faucher
Replying to psykotik:
Just for me to know... Do you have multiple NDAS devices ? What are their capacity ? Are they configured using RAID (several hard disks behind one controller) ?
Your serial numbers are 15 digits long, mine is 8 digits long:
arnaud@green:~$ cat /proc/ndas/devs Name ID Key Serial Ver Status Slots netdisk1 CSCEY0L1JQ8YMSA***** Yes 00528598 1 Online 1
Have you checked correspondance on your hard drive ?
Have you also checked with only one controller registered ?
comment:26 in reply to: ↑ 25 ; follow-up: ↓ 27 Changed 3 years ago by psykotik
Replying to arnaud.faucher:
Just for me to know... Do you have multiple NDAS devices ? What are their capacity ? Are they configured using RAID (several hard disks behind one controller) ?
One NDAS hard disk only. It's capacity is 320 Gb, and I don't use RAID.
Your serial numbers are 15 digits long, mine is 8 digits long:
Yeps, the s/n is ok. I didn't change it since ubuntu 8.10.
Have you checked correspondance on your hard drive ?
Have you also checked with only one controller registered ?
Do you mean... unregister second harddisk (which is the same NDAS, but using wire instead of wifi)?
comment:27 in reply to: ↑ 26 Changed 3 years ago by arnaud.faucher
Replying to psykotik:
Do you mean... unregister second harddisk (which is the same NDAS, but using wire instead of wifi)?
Yes. Perhaps the driver patches confuse when there are more than 1 registration (???). By the way, can you also try using wire ?
(I didn't install the opensuse patch, since it is meant to be used by opensuse users... isn't it?)
Regarding the openSUSE patch, you are right: it does not affect kernel 2.6.28 (and so Ubuntu >= 9.04)
comment:28 follow-up: ↓ 31 Changed 3 years ago by arnaud.faucher
Just to know, are there other users having the problem described by psykotyc ?
Are there users having success with this patch ?
Please indicate your distribution and linux kernel version (uname -a).
comment:29 Changed 3 years ago by l1q1d
It works on a gentoo linux 64bit systema (uname -a: Linux Laptop 2.6.31-rc2 #2 SMP Sat Jul 11 11:03:22 CEST 2009 x86_64 Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz GenuineIntel? GNU/Linux)
But if ndas_dev is disable on boot (eg rfkill on wlan0) i must restart ndas after enabling wifi!
comment:30 Changed 3 years ago by arnaud.faucher
I had a rather nasty bug starting at kernel version 2.6.31-rc5. After a bisection, I found that git kernel commit e084b2d95e48b31aa45f9c49ffc6cdae8bdb21d4 was the cause. The kernel patch may not be faulty (see the thread at http://lkml.org/lkml/2009/8/11/250), but it triggered a bug in the ndas_block module, when the requests are merged for efficiency. The symptoms of this bug are that files are filled with garbage when opened.
By looking at the code, the bug possibly affects all 2.6 kernel versions with CONFIG_HIGHMEM enabled (which is the default), but may simply be not easily triggered on these versions.
In attachment 'Linux2.6.31-1.patch' (above), I disable request merging when CONFIG_HIGHMEM is enabled. It may be less efficient (not noticeably for me), but at least it works.
comment:31 in reply to: ↑ 28 Changed 2 years ago by aniaclug
I have the same issue. I've downloaded the .deb src package for modules and ndasadmin package (1.1.24). I've also downloaded all patches mut I've found they are already applied to sources (all but Linux.2.6.31-1, but it does not affect my kernel version).
Disk is registered with wlan0, I've enabled it with
#ndasadmin enable -s 1 -o w
ls /dev/ndas* shows:
/dev/ndas, /dev/ndas-XXXXXXXXX-0 and /dev/ndas-XXXXXXXX-0p1 and fdisk -l on /dev/ndas-XXXXXXXXX-0 shows a single partition (the one with p1) type HPFS/NTFS
But when I try to mount the drive I have the issue.
Mounting the device with USB works fine for both read and write.
Distro: Ubintu 9.0.4
kernel version: 2.6.28-15-generic
ndas-modules-src 1.1-24
comment:32 follow-up: ↓ 33 Changed 2 years ago by arnaud.faucher
Hi aniaclug and psykotic, can you try to recompile the packages with all patches, including patch named Linux2.6.31-1.patch ?
I have reasons to think that it can affect positively the behavior of the driver on kernel version 2.6.28 too.
comment:33 in reply to: ↑ 32 ; follow-up: ↓ 34 Changed 2 years ago by aniaclug
I've used sources extracted from .deb (in /usr/src/modules/ndas).
I've applied the patch (with sudo patch -p1 < Linux2.6.31-1.patch)
I've rebuilt and installed modules (sudo make clean all, sudo make install).
I've rebooted.
I've mounted de volume and....... (suspance)......
It WORKS!!!!!
comment:34 in reply to: ↑ 33 Changed 2 years ago by aniaclug
No.. it doesn't.
In fact it works but not with *that* partition.
I discovered this because i left an usb NTFS disk connected to the HDD box and it exported only that disk and it mounted correctly.
The disk is formatted to 40Gb NTFS.
Tomorrow I will try reformatting the NTFS drive into my hdd box (is as factory pre-formatted ntfs disk). Now I do not have a windows machine to check the drive
comment:35 Changed 2 years ago by arnaud.faucher
Hi aniaclug,
Any news after reformatting ?
comment:36 Changed 2 years ago by marcelo
Just to report that my drive is working perfectly now.
Linux mojito 2.6.28-13-generic # 45-Ubuntu SMP Tue Jun 30 19:49:51 UTC 2009 i686 GNU/Linux
I applied the patches in ticket #839, openSUSE.patch #1105 (I don't know if it is necessary, but works with it), and Linux2.6.31.patch and Linux2.6.31-1.patch in this ticket. I can read, write and format without problems.
Thanks arnaud.faucher and Doug (#839) for your effort!
comment:37 Changed 2 years ago by imonsellato
update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see < http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted
failed to load core module
Anyone can help me?
comment:38 follow-up: ↓ 41 Changed 2 years ago by imonsellato
igor@igor-desktop:~/Scrivania$ sudo dpkg -i ndasadmin_1.1-24_amd64.deb (Lettura del database... 232365 file e directory attualmente installati.) Preparativi per sostituire ndasadmin v.1.1-24 (utilizzando ndasadmin_1.1-24_amd64.deb)... Stopping NDAS: synced umounted synced stopped modules removed Estrazione del sostituto di ndasadmin... Configurazione di ndasadmin (1.1-24)... update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see < http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted
failed to load core module Report this problem with the following messages at http://code.ximeta.com/cgi-bin/trac.cgi/newticket
============================================================================== Linux version 2.6.31-14-generic (buildd@crested) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 -rw-r--r-- 1 root root 70775 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_block.ko -rw-rw-rw- 1 root root 284965 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko -rw-r--r-- 1 root root 79770 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_sal.ko -rw-r--r-- 1 root root 73654 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_scsi.ko gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Nov 7 13:25:12 igor-desktop kernel: [ 1416.263432] ndas: Setting max request size to 64kbytes Nov 7 13:25:12 igor-desktop kernel: [ 1416.263447] ndas: fail to register network interfaces. Nov 7 13:25:12 igor-desktop kernel: [ 1416.460011] NET: Unregistered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793449] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:467|ing|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793456] NET: Registered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793460] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793466] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793471] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793475] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793481] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793486] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793490] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793495] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793499] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793505] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:548|ed|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803134] Nov 7 13:27:29 igor-desktop kernel: [ 1553.803135] ndas: Initializing NDAS driver version 1.1.24 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803370] ndas: Setting max request size to 64kbytes Nov 7 13:27:29 igor-desktop kernel: [ 1553.803384] ndas: fail to register network interfaces. Nov 7 13:27:29 igor-desktop kernel: [ 1554.020015] NET: Unregistered protocol family 29 ============================================================================== invoke-rc.d: initscript ndas, action "start" failed. dpkg: errore nell'elaborare ndasadmin (--install):
il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 1
Elaborazione dei trigger per sreadahead... Si sono verificati degli errori nell'elaborazione:
ndasadmin
This is the complete message Help me please!!!
comment:39 Changed 2 years ago by niels
hi, for some reason i cannot install ndasadmin, it seems i have the same problem as imonsellato
ubuntu 9.10, uname -srnm >> Linux niels 2.6.31-16-generic i686
(read somewhere that there was a difference between i386 vs i686, but forgot what)
i get the following output after
sudo dpkg -i ndasadmin_1.1-24_i386.deb
(Reading database ... 222104 files and directories currently installed.) Preparing to replace ndasadmin 1.1-24 (using ndasadmin_1.1-24_i386.deb) ... Stopping NDAS: synced umounted synced stopped modules removed Unpacking replacement ndasadmin ... Setting up ndasadmin (1.1-24) ... update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see <http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted failed to load core module Report this problem with the following messages at http://code.ximeta.com/cgi-bin/trac.cgi/newticket ============================================================================== Linux version 2.6.31-16-generic (buildd@rothera) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 -rw-r--r-- 1 root root 47581 Jan 2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_block.ko -rw-r--r-- 1 root root 201845 Jan 2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_core.ko -rw-r--r-- 1 root root 55608 Jan 2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_sal.ko -rw-r--r-- 1 root root 49321 Jan 2 21:57 /lib/modules/2.6.31-16-generic/kernel/drivers/block/ndas/ndas_scsi.ko gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Jan 2 22:20:07 niels kernel: [ 6534.989668] Jan 2 22:20:07 niels kernel: [ 6534.989669] ndas: Initializing NDAS driver version 1.1.24 Jan 2 22:20:07 niels kernel: [ 6534.989911] ndas: Setting max request size to 64kbytes Jan 2 22:20:07 niels kernel: [ 6534.989972] ndas: fail to register network interfaces. Jan 2 22:20:07 niels kernel: [ 6535.124524] NET: Unregistered protocol family 29 Jan 2 22:21:21 niels kernel: [ 6609.294141] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:467|ing|modprobe,1:45:9.73,3828:1 Jan 2 22:21:21 niels kernel: [ 6609.294160] NET: Registered protocol family 29 Jan 2 22:21:21 niels kernel: [ 6609.294170] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f70f2c00(lo) event=5|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294185] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f70f2c00(lo) event=1|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294198] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294209] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f65df000(eth0) event=5|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294222] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f65df000(eth0) event=1|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294234] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294245] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=f6050000(pan0) event=5|modprobe,1:45:9.73,3752:1 Jan 2 22:21:21 niels kernel: [ 6609.294259] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:548|ed|modprobe,1:45:9.73,3828:1 Jan 2 22:21:21 niels kernel: [ 6609.324966] Jan 2 22:21:21 niels kernel: [ 6609.324968] ndas: Initializing NDAS driver version 1.1.24 Jan 2 22:21:21 niels kernel: [ 6609.326669] ndas: Setting max request size to 64kbytes Jan 2 22:21:21 niels kernel: [ 6609.326781] ndas: fail to register network interfaces. Jan 2 22:21:22 niels kernel: [ 6609.468602] NET: Unregistered protocol family 29 ============================================================================== invoke-rc.d: initscript ndas, action "start" failed. dpkg: error processing ndasadmin (--install): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: ndasadmin
any news for me? thanks, niels
comment:40 Changed 2 years ago by niels
maybe it's because i have a x86_64 cpu?
comment:41 in reply to: ↑ 38 Changed 2 years ago by john3050
Replying to imonsellato:
igor@igor-desktop:~/Scrivania$ sudo dpkg -i ndasadmin_1.1-24_amd64.deb (Lettura del database... 232365 file e directory attualmente installati.) Preparativi per sostituire ndasadmin v.1.1-24 (utilizzando ndasadmin_1.1-24_amd64.deb)... Stopping NDAS: synced umounted synced stopped mesothelioma modules removed Estrazione del sostituto di ndasadmin... Configurazione di ndasadmin (1.1-24)... update-rc.d: warning: /etc/init.d/ndas missing LSB information update-rc.d: see < http://wiki.debian.org/LSBInitScripts> Starting NDAS:FATAL: Error inserting ndas_core (/lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko): Operation not permitted
failed to load core module Report this problem with the following messages at http://code.ximeta.com/cgi-bin/trac.cgi/newticket
============================================================================== Linux version 2.6.31-14-generic (buildd@crested) (gcc version 4.4.1 (Ubuntu 4.4.1-4ubuntu8) ) #48-Ubuntu SMP Fri Oct 16 14:05:01 UTC 2009 -rw-r--r-- 1 root root 70775 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_block.ko -rw-rw-rw- 1 root root 284965 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_core.ko -rw-r--r-- 1 root root 79770 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_sal.ko -rw-r--r-- 1 root root 73654 2009-11-07 09:29 /lib/modules/2.6.31-14-generic/kernel/drivers/block/ndas/ndas_scsi.ko gcc (Ubuntu 4.4.1-4ubuntu8) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Nov 7 13:25:12 igor-desktop kernel: [ 1416.263432] ndas: Setting max request size to 64kbytes Nov 7 13:25:12 igor-desktop kernel: [ 1416.263447] ndas: fail to register network interfaces. Nov 7 13:25:12 igor-desktop kernel: [ 1416.460011] NET: Unregistered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793449] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:467|ing|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793456] NET: Registered protocol family 29 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793460] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793466] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d09b000(lo) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793471] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel auto insurance quotes: [ 1553.793475] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793481] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007d014000(eth0) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793486] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793490] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=5|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793495] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:429|ing dev=ffff88007a550000(eth1) event=1|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793499] SN|1|v_notifiee|/usr/src/modules/ndas/sal/net.c:439|net change handler is not set|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.793505] SN|1|sal_net_init|/usr/src/modules/ndas/sal/net.c:548|ed|modprobe,11930:48:46.75,0:1 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803134] Nov 7 13:27:29 igor-desktop kernel: [ 1553.803135] ndas: Initializing NDAS driver version 1.1.24 Nov 7 13:27:29 igor-desktop kernel: [ 1553.803370] ndas: Setting max request size to 64kbytes Nov 7 13:27:29 igor-desktop kernel: [ 1553.803384] ndas: fail to register network interfaces. Nov 7 13:27:29 igor-desktop kernel: [ 1554.020015] NET: Unregistered protocol family 29 ============================================================================== invoke-rc.d: initscript ndas, action "start" failed. dpkg: errore nell'elaborare ndasadmin (--install):
il sottoprocesso vecchio script di post-installation ha restituito lo stato di errore 1
Elaborazione dei trigger per sreadahead... Si sono verificati degli errori nell'elaborazione:
ndasadmin
This is the complete message Help me please!!!
I have the same problem.
comment:42 follow-up: ↓ 43 Changed 2 years ago by dkall
Hi guys, I'm quite new in the Linux world, so please be patient with me if I seem stupid... I have Ubuntu 9.10, and I can't get this to work. I have applied the 5 patches from #839, #1105 and above. I have uninstalled everything by:
sudo dpkg -r ndasadmin sudo dpkg -r ndas-modules-`uname -r` sudo dpkg -r ndas-modules-src sudo rm /usr/src/ndas*
And finally, I have reinstalled, by:
sudo rm /usr/src/ndas* sudo dpkg -i ndas-modules-src_1.1-24_all.deb sudo m-a prepare sudo m-a auto-install ndas sudo dpkg -i ndasadmin_1.1-24_amd64.deb
and everything looks fine, but when I try to register my disk, I get this message: Failed to open /dev/ndas Check NDAS device file exists, driver module is loaded and started by administration tool Appreciate any help!
comment:43 in reply to: ↑ 42 ; follow-up: ↓ 44 Changed 2 years ago by gondoi
The ndas-core.conf file was jacking up the ability to load the module because the server could not bind to wlan0 since there was no such interface. Either change wlan0 to eth0 (or your interface name), or just remove it from /etc/modprobe.d altogether.
comment:44 in reply to: ↑ 43 Changed 2 years ago by dkall
Replying to gondoi:
The ndas-core.conf file was jacking up the ability to load the module because the server could not bind to wlan0 since there was no such interface. Either change wlan0 to eth0 (or your interface name), or just remove it from /etc/modprobe.d altogether.
Thank you Gondoi, now I have tried both changing to eth0, and deleted the entire file. Still the same result. Any other ideas I could try?
comment:45 Changed 2 years ago by dkall
solved it finally. Had some old kernel that was messing up the "m-a prepare".
comment:46 Changed 4 months ago by dahweeds
Announcing the open development of NDAS for Linux. Please see the article here: IOCELL Networks NDAS For Linux Project

Before applying this patch, apply patches from ticket #839 and #1105.