olistudent
IPPF-Urgestein
- Mitglied seit
- 19 Okt 2004
- Beiträge
- 14,787
- Punkte für Reaktionen
- 13
- Punkte
- 38
#! /bin/sh
# Create the block file to send the commands
test ! -b /dev/ndas && mknod -m 644 /dev/ndas c 60 0
M=0
# Let's create the block device files to access the hard disk.
# Just for 8 hard disk, but you can increase if you want.
for s in a b c d;
do
test ! -b /dev/nd${s} && mknod -m 644 /dev/nd${s} b 60 $M
for t in 1 2 3 4 5 6 7;
do
M=$(($M + 1))
test ! -b /dev/nd${s}${t} && mknod -m 644 /dev/nd${s}${t} b 60 $M
done
done
# Now load the system abstraced layer implementation for NDAS technology
insmod /lib/modules/`uname -r`/ndas_sal.* > /dev/null 2>&1
if [ ! $? ] ; then
echo " kernel version or gcc compiler version is not matched";
exit 1;
fi
# Load the NDAS core functions
insmod /lib/modules/`uname -r`/ndas_core.* > /dev/null 2>&1
if [ ! $? ] ; then
echo " fail"
exit 1;
fi
# Load the block device implementation for NDAS
insmod lib/modules/`uname -r`/ndas_block.* > /dev/null 2>&1
if [ ! $? ] ; then
echo " fail"
exit 1;
fi
# Start the service
/usr/sbin/ndasadmin start > /dev/null 2>&1
if [ ! $? ]; then
echo " fail"
exit 1;
fi
BusyBox v1.12.4 (2009-07-27 19:35:28) built-in shell (ash)
Enter 'help' for a list of built-in commands.
ermittle die aktuelle TTY
tty is "/dev/pts/0"
Console Ausgaben auf dieses Terminal umgelenkt
/var/mod/root # cd /var/media/ftp/uStor01/
/var/media/ftp/uStor01 # ./ndas
/var/media/ftp/uStor01 # ls /dev/n*
/dev/nda /dev/nda4 /dev/ndas /dev/ndb3 /dev/ndb7 /dev/ndc3 /dev/ndc7 /dev/ndd3 /dev/ndd7
/dev/nda1 /dev/nda5 /dev/ndb /dev/ndb4 /dev/ndc /dev/ndc4 /dev/ndd /dev/ndd4 /dev/new_led
/dev/nda2 /dev/nda6 /dev/ndb1 /dev/ndb5 /dev/ndc1 /dev/ndc5 /dev/ndd1 /dev/ndd5 /dev/null
/dev/nda3 /dev/nda7 /dev/ndb2 /dev/ndb6 /dev/ndc2 /dev/ndc6 /dev/ndd2 /dev/ndd6
/dev/net:
tun
/var/media/ftp/uStor01 # ndasadmin register xxxxx-KSR59-xxxxx-AUF6X-B7CDX -name NetHDD
Failed to open /dev/ndas [COLOR="Blue"]<=========== hier kommt der erste Fehler, kein Plan warum.[/COLOR]
#! /bin/sh
# Create the block file to send the commands
test ! -b /dev/ndas && mknod -m 644 /dev/ndas c 60 0
M=0
# Let's create the block device files to access the hard disk.
# Just for 8 hard disk, but you can increase if you want.
for s in a b c d;
do
test ! -b /dev/nd${s} && mknod -m 644 /dev/nd${s} b 60 $M
for t in 1 2 3 4 5 6 7;
do
M=$(($M + 1))
test ! -b /dev/nd${s}${t} && mknod -m 644 /dev/nd${s}${t} b 60 $M
done
done
# Now load the system abstraced layer implementation for NDAS technology
insmod /lib/modules/2.6.13.1-ohio/kernel/fs/ndas/ndas_sal.ko > /dev/null 2>&1
if [ ! $? ] ; then
echo " Module ndas_sal failed to load";
exit 1;
fi
# Load the NDAS core functions
insmod /lib/modules/2.6.13.1-ohio/kernel/fs/ndas/ndas_core.ko ndas_dev=lan > /dev/null 2>&1
if [ ! $? ] ; then
echo " Module ndas_core failed to load"
exit 1;
fi
# Load the block device implementation for NDAS
insmod /lib/modules/2.6.13.1-ohio/kernel/fs/ndas/ndas_block.ko > /dev/null 2>&1
if [ ! $? ] ; then
echo " Module ndas_block failed to load"
exit 1;
fi
# Start the service
/usr/bin/ndasadmin start > /dev/null 2>&1
if [ ! $? ]; then
echo " ndasadmin start failed"
exit 1;
fi
# Register the Device
/usr/bin/ndasadmin register ****hier dein code*** --name TrekStor
sleep 5
# Done
/usr/bin/ndasadmin enable -s 1 -o r
sleep 5
mkdir /var/media/ndas
mkdir /var/media/ndas/TrekStor
# ntfs-3g -o ro /dev/nda1 /var/media/ndas/TrekStor
sleep 5
/var/media/ftp/uStor01 # ./ndas
Failed to open /dev/ndas
Check NDAS device file exists, driver module is loaded and started by administration tool
Failed to open /dev/ndas
Check NDAS device file exists, driver module is loaded and started by administration tool
/var/media/ftp/uStor01 #
/var/media/ftp # insmod /lib/modules/2.6.13.1-ohio/kernel/fs/ndas/ndas_sal.ko
insmod: cannot insert '/lib/modules/2.6.13.1-ohio/kernel/fs/ndas/ndas_sal.ko': invalid module format
/var/media/ftp #
Kann es sein, dass du an verschiedenen Ecken was falsch machst? Der Trunk bootet nicht zwangsläufig neu, nur wenn du was falsch machst beim menuconfig (oder nicht weisst, was du tust).
Schaff erstmal das Problem aus der Welt, und versuchs dann mal weiter.
/var/media/ftp # ./ndas
'TrekStor' is registered successfully.
Please find the slot # by
cat /proc/ndas/devices/TrekStor/slots
Then execute the following command to enable the slot
For read-only mode
ndasadmin enable -s <slot#> -o r
For exclusive-write mode
ndasadmin enable -s <slot#> -o w
For GFS mode
ndasadmin enable -s <slot#> -o s
enable: slot 1 does not exist
mount: mounting /dev/nda1 on /var/media/ndas/TrekStor failed: No such device or address
/var/media/ftp #
/var/media/ftp # cat /proc/ndas/devices/TrekStor/slots
/var/media/ftp #
/var/media/ftp # lsmod
Module Size Used by Tainted: P
ndas_block 40480 0
ndas_core 188480 1 ndas_block
ndas_sal 29152 4 ndas_block,ndas_core
sch_sfq 5088 4
sch_llq 8896 1
sch_tbf 5888 1
ext3 127840 1
jbd 58016 1 ext3
ext2 60032 0
mbcache 8144 2 ext3,ext2
vfat 11392 0
fat 49072 1 vfat
nls_cp437 5312 0
nls_iso8859_1 3680 0
usb_storage 33296 1
sd_mod 15024 2
scsi_mod 92560 2 usb_storage,sd_mod
userman 33328 2
tiap 452800 0
kdsldmod 878208 7 userman
usbahcicore 26064 0
usbcore 113328 3 usb_storage,usbahcicore
capi_codec 143040 0
isdn_fbox_fon4 899840 1 capi_codec
ubik2 85440 2 capi_codec,isdn_fbox_fon4
tiatm 112544 1 ubik2
Piglet 10656 0
/var/media/ftp #
/dev/ndas c 60 0
/dev/nda b 60 0
/dev/nda1 b 60 1
/dev/nda2 b 60 2
...
/dev/nda7 b 60 7
/dev/ndb b 60 8
/dev/ndb1 b 60 9
...
usw.
NET: Registered protocol family 29
ndas: Initializing NDAS driver version 1.1.20
ndas: Setting max request size to 64kbytes
ndas: registering network interface lan
ndas: registered ndas device at major number 60
ndas-13500368-0: p1 p2 p3 p4 < p5 p6 p7 >
ndas: /dev/ndas-13500368-0 enabled
EXT2-fs warning (device ndas-13500368-0p1): ext2_fill_super: mounting ext3 filesystem as ext2
EXT2-fs warning: maximal mount count reached, running e2fsck is recommended
major minor #blocks name
31 0 8192 mtdblock0
31 1 6926 mtdblock1
31 2 7616 mtdblock2
31 3 64 mtdblock3
31 4 256 mtdblock4
31 5 256 mtdblock5
31 6 64 mtdblock6
31 7 7552 mtdblock7
60 0 293034136 ndas-13500368-0
60 1 19535008 ndas-13500368-0p1
60 2 4883760 ndas-13500368-0p2
60 3 19535040 ndas-13500368-0p3
60 4 1 ndas-13500368-0p4
60 5 19663528 ndas-13500368-0p5
60 6 19679593 ndas-13500368-0p6
60 7 209736576 ndas-13500368-0p7
mount /dev/nda2 /var/media/ftp/ndas2/
mount: mounting /dev/nda2 on /var/media/ftp/ndas2/ failed: Invalid argument
/var/media/ftp #