OpenWrt Forum Archive

Topic: NLSU2 experience: the good, the bad...

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,
first post here after lurking for some days.

I'm a Linux enthusiast and I'm quite familiar with console and commands of the free world. I bought a second NSLU2 some days ago and curious like a child I installed the 7.09. It's perfectly clear for me OpenWrt it's better on a router than a NAS, but it's extremely lite and fast compared to Unslug firmware, even if I not understood why some simple things are not available with simple packages. I'm talking about USB auto mount for example: what the hell isn't a package to make it available immediately after plug-in? Dmesg found the devices but I must manually mount them (ext3 are ok, vfat no). I see there are some script around here like 01-mount,  but I cannot found an interesting wiki nor a good thread.

I'm missing something on the forum? Could someone drive me to the right direction for use it with automount, samba etc?

Thank you in advance for your patience.

Federico

I could not agree more (unfortunately).
Filesystems to mount should be listed in /etc/config/fstab as far as I can figure out.

There are some information scattered around in the Wiki, that's not completely outdated and offer some clues, but be prepared to read through the init-scripts yourself to understand whats going on.
http://wiki.openwrt.org/SambaHowto
http://wiki.openwrt.org/LocalFileSystemHowTo

Kamikaze 7.09 is getting old and I suggest that you try and build a more recent trunk version. It's not that hard, it's in the build-system that OpenWrt really excels!

You should also be aware of these still open tickets:
https://dev.openwrt.org/ticket/1945
https://dev.openwrt.org/ticket/3287

automount does work, just make sure that you installed all optional fs modules

michu wrote:

automount does work, just make sure that you installed all optional fs modules

Could you gently tell me which one and why I can't find a wiki about it?

NMI wrote:

I could not agree more (unfortunately).

Indeed. Probably at the moment is just a geek thing, but has a GREAT potential. I think left it without waste some time for it isn't the right choice. I'm reading the wiki you provide right now, thanks for the links. Compiling isn't a good idea if you are looking for stability, but I'll think on it...

automount is done when you for example connect a usb memorystick to your router. the the automount script is started. in this script the device gets mounted. its path is /sbin/usb-storage.

what kind of moudules you neeed depends on you, but perhaps kmod-nls*, kmod-fs-ext3, kmod-fs-vfat..

cheers

michu wrote:

automount is done when you for example connect a usb memorystick to your router. the the automount script is started. in this script the device gets mounted. its path is /sbin/usb-storage.

what kind of moudules you neeed depends on you, but perhaps kmod-nls*, kmod-fs-ext3, kmod-fs-vfat..

cheers

Automount does not work on my NSLU2.  I tried with a simple USB thumb (512MB):

root@OpenWrt:~# fdisk -l

Disk /dev/sda: 508 MB, 508624384 bytes
255 heads, 63 sectors/track, 61 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1          61      489951    b  W95 FAT32

root@OpenWrt:~# mkdir /mnt/disk
root@OpenWrt:/mnt# mount /dev/sda1 /mnt/disk
mount: mounting /dev/sda1 on /mnt/disk failed

Packages installed:

kmod-fs-ext2    2.6.21.6-ixp4xx-1    
kmod-fs-ext3    2.6.21.6-ixp4xx-1    
kmod-fs-msdos    2.6.21.6-ixp4xx-1    
kmod-fs-nfs    2.6.21.6-ixp4xx-1    
kmod-fs-vfat    2.6.21.6-ixp4xx-1    
kmod-nls-base    2.6.21.6-ixp4xx-1    
kmod-nls-cp1250    2.6.21.6-ixp4xx-1    
kmod-nls-utf8    2.6.21.6-ixp4xx-1

Disk status leds are off even if a device is recognized.
Before do a script modify or try other packages I'll try with a snapshot firmware as proposed by Sonic but I don't know which one because there a re two bin files, openwrt-nslu2-squashfs.bin and openwrt-nslu2-squashfs-16mb.bin.
Just a couple of questions: need I to upgrade in red boot mode or simply I can use the upgrade page on X-wrt? Must I cancel the JFFS2 partition?
Thanks to all.

Federico

(Last edited by EffE on 20 May 2008, 21:02)

EffE wrote:
michu wrote:

automount is done when you for example connect a usb memorystick to your router. the the automount script is started. in this script the device gets mounted. its path is /sbin/usb-storage.

what kind of moudules you neeed depends on you, but perhaps kmod-nls*, kmod-fs-ext3, kmod-fs-vfat..

cheers

Automount does not work on my NSLU2.  I tried with a simple USB thumb (512MB):

...
Federico

just another question, did you installed all needed usb modules? what does syslog say?

and yes, using the trunk version is (almost every time) a good idea..

This might be a stupid question, but are you sure cp1250 is the correct one and not cp850 and/or cp437?

I just tried if automount works on my slug by connecting a 4GB usb-stick and it worked.
But I'm using trunk r10252 and have the following packages installed:

kmod-fs-ext2 - 2.6.23.14-ixp4xx-1 - 
kmod-fs-ext3 - 2.6.23.14-ixp4xx-1 - 
kmod-fs-vfat - 2.6.23.14-ixp4xx-1 - 
kmod-nls-base - 2.6.23.14-ixp4xx-1 - 
kmod-nls-cp437 - 2.6.23.14-ixp4xx-1 - 
kmod-nls-cp850 - 2.6.23.14-ixp4xx-1 - 
kmod-nls-iso8859-1 - 2.6.23.14-ixp4xx-1 - 
kmod-nls-iso8859-15 - 2.6.23.14-ixp4xx-1 - 
kmod-nls-utf8 - 2.6.23.14-ixp4xx-1 -

Personally I really like OpenWrt's minimalistic approach, (might be my SunOS4 and NetBSD upbringing). It's really a rough diamond that just needs a lot of polish to really shine. smile

EffE you need to use "logread" to read cause of mounting errors ... I'm sure it's caused by missing packages, NMI packages list will fix your problem with snapshot firmware. The firmware to use is about 8Mb ( http://downloads.x-wrt.org/xwrt/kamikaz … uashfs.bin )

@michu: Yep. Drivers are ok.
@Sonic: here's the log:

May 21 09:00:47 (none) user.info kernel: usb 1-2: new high speed USB device using ehci_hcd and address 2
May 21 09:00:47 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
May 21 09:00:47 (none) user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 21 09:00:47 (none) user.debug kernel: usb-storage: device found at 2
May 21 09:00:47 (none) user.debug kernel: usb-storage: waiting for device to settle before scanning
May 21 09:00:48 (none) user.info : /sbin/hotplug-call: /etc/hotplug.d/usb/10-usb-storage: 12: /sbin/usb-storage: Permission denied 
May 21 09:00:52 (none) user.notice kernel: scsi 0:0:0:0: Direct-Access     CBM      Flash Disk       4.00 PQ: 0 ANSI: 2
May 21 09:00:52 (none) user.notice kernel: SCSI device sda: 993407 512-byte hdwr sectors (509 MB)
May 21 09:00:52 (none) user.notice kernel: sda: Write Protect is off
May 21 09:00:52 (none) user.debug kernel: sda: Mode Sense: 00 00 00 00
May 21 09:00:52 (none) user.err kernel: sda: assuming drive cache: write through
May 21 09:00:52 (none) user.notice kernel: SCSI device sda: 993407 512-byte hdwr sectors (509 MB)
May 21 09:00:52 (none) user.notice kernel: sda: Write Protect is off
May 21 09:00:52 (none) user.debug kernel: sda: Mode Sense: 00 00 00 00
May 21 09:00:52 (none) user.err kernel: sda: assuming drive cache: write through
May 21 09:00:53 (none) user.info kernel:  sda1
May 21 09:00:53 (none) user.notice kernel: sd 0:0:0:0: Attached scsi removable disk sda
May 21 09:00:53 (none) user.debug kernel: usb-storage: device scan complete
NMI wrote:

This might be a stupid question, but are you sure cp1250 is the correct one and not cp850 and/or cp437?

After a mount:

May 21 09:03:45 (none) user.err kernel: FAT: codepage cp437 not found
May 21 09:03:45 (none) user.err kernel: FAT: codepage cp437 not found

This package isn' available even after a ipkg update. Moving to a snapshot firmware today.

(Last edited by EffE on 21 May 2008, 06:15)

hi,
ie got the same Problem
here a output vom logread :
ay 22 03:41:57 OpenWrt user.info kernel: scsi0 : SCSI emulation for USB Mass Storage devices
May 22 03:41:57 OpenWrt user.debug kernel: usb-storage: device found at 2
May 22 03:41:57 OpenWrt user.debug kernel: usb-storage: waiting for device to settle before scanning
May 22 03:41:58 OpenWrt user.notice root: usb device is mass storage
May 22 03:41:58 OpenWrt user.notice root: waiting on usb drive 0 ...
May 22 03:41:58 OpenWrt user.info kernel: eth0: link down
May 22 03:41:59 OpenWrt user.notice root: waiting on usb drive 1 ...
May 22 03:42:00 OpenWrt user.notice root: waiting on usb drive 2 ...
May 22 03:42:01 OpenWrt user.notice root: waiting on usb drive 3 ...
May 22 03:42:01 OpenWrt user.info kernel: eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
May 22 03:42:02 OpenWrt user.notice root: waiting on usb drive 4 ...
May 22 03:42:02 OpenWrt user.notice kernel: scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Mini      0.2  PQ: 0 ANSI: 2
May 22 03:42:02 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] 250879 512-byte hardware sectors (128 MB)
May 22 03:42:02 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
May 22 03:42:02 OpenWrt user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
May 22 03:42:02 OpenWrt user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
May 22 03:42:02 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] 250879 512-byte hardware sectors (128 MB)
May 22 03:42:02 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
May 22 03:42:02 OpenWrt user.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
May 22 03:42:02 OpenWrt user.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
May 22 03:42:02 OpenWrt user.info kernel:  sda:
May 22 03:42:02 OpenWrt user.info kernel:  sda1
May 22 03:42:02 OpenWrt user.notice kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
May 22 03:42:02 OpenWrt user.debug kernel: usb-storage: device scan complete
May 22 03:42:03 OpenWrt user.notice root: waiting on usb drive 5 ...
May 22 03:42:06 OpenWrt user.notice root: waiting on usb drive 6 ...
May 22 03:42:10 OpenWrt user.notice root: waiting on usb drive 7 ...
May 22 03:42:13 OpenWrt user.notice root: waiting on usb drive 8 ...
May 22 03:42:17 OpenWrt user.notice root: waiting on usb drive 9 ...
May 22 03:42:20 OpenWrt user.notice root: waiting on usb drive 10 ...

Someone an idea ?

if I remember in the 7.09  the /sbin/usb-storage file isn't executable by default ... you need to chmod it

chmod a+x /sbin/usb-storage

so automount will work.
For

user.err kernel: FAT: codepage cp437 not found

you can't fix it with 7.09 repository and 7.09 firmware, you must use snapshot image, it's my opinion ... I'm not guru of openwrt and nslu2 ... to work correctly I use snapshot where cp437 package is available ... Good luck !

Sonic,
I'll be very happy to use the snapshot if it work...
I upgraded trough upslug2 because the x-wrt upgrade page didn't work (nslu2 need redboot mode before upgrade it). Upgraded ok but my NAS did not up. Tried twice and the file md5sum is right, I think is not a image issue.
Now I'm back to Linksys r63 original firmware. I'll wait a new snapshot revision before make another attempt with openwrt.
Thanks to all for now.

Federico

Hi,
can someone send me his .config file in that this automount work ?  so i can compile it by my self !
Thanks

in the latest snapshot automount wouldnt work too ... ;-(

Hi there.
Busy days... But I found the time to try two different snapshots on my slug.
The result is still the same: I can upload firmware but it didn't up.  Unslug and original firmware works perfectly.
Don't know if I need to erase the jffs2 partition as proposed as an option on Webif upgrade page but I prefer stay sharp and due to those issues obviously I'm back to the old-but-good Unslug for now. I'll wait a new stable version of Openwrt before give it a try again.

Cheers,

Federico

I got mine working, but it was painstaking. The good news is after all the manual package installs, the samba config, etc.. It's back up essentially the way it was with linksys's firmware but better, far more stable, and I don't have to worry about my file dates being set to 1970 anymore since the unit can now keep a friggin' set date.

I am having similar problems on 7.09 and FAT disks with my slug. Samba is working fine with Ext2 and Ext3 formated disks but I also get the cp437 error with FAT disks. I have tried to find the relevant kmod-cp437 package so I am thinking of using a snapshot image but I do not know how to use a snapshot image.  If someone could point me at a how-to on snapshot usage I would be grateful. I am confused by the ZImage, and the different .bin files, they are different from the release names.

The discussion might have continued from here.