My technical adventures, hacks or what I do in my free time.

Saturday, May 06, 2006

Failed to get uNSLUng on my cute NSLU2

Its been pending for a long time and this week I decided to upgrade my Linksys NSLU2 to unslung firmware. I already run V2.3R63 and planning to go for unslung V2.3R63-uNSLUng-6.8-beta. I started off early in the morning (around 07:00) and still having troubles in restoring it.

I followed religiously what was told in the readme.txt of the firmware. I got it flashed and when trying to unsling to my disk, I got lost. I loaded up the firmware, boot with the disks and it was very much fine showing me all the disks and shared music over samba. I reboot it without disks, enable telnet and telnet into the box with root. Now I connect the disk1 and try to unsling, it says mounted disk not found.

I reboot without the disks and connect disk1 again. I login as root and check the mounted partitions. It is shown briefly

# mount
/dev/mtdblock4 on / type jffs2 (rw)
/proc on /proc type proc (rw)
usbdevfs on /proc/bus/usb type usbdevfs (rw)
/dev/mtdblock4 on /dev.state type jffs2 (rw)
ramfs on /dev type ramfs (rw)
/dev/mtdblock4 on /var.state type jffs2 (rw)
ramfs on /var type ramfs (rw)
none on /tmp type ramfs (rw)
/dev/sdb1 on /share/hdd/data type ext3 (rw)
/dev/sdb2 on /share/hdd/conf type ext3 (rw,sync)

# ls /share/hdd/data
caps lost+found public quota.user
quota.user~

# ls /share/hdd/conf
backup_sh.conf config config.bin group
group.ttt lost+found passwd
passwd.ttt server.log share share.info
share.info.ttt smb.conf smb.conf.ttt
smbpasswd smbpasswd.ttt tmp upgrade
usrgrp.info usrgrp.info.ttt


But the mount is lost after some time. Curious, I go out and check /var/log/messages.

<47>May 6 16:31:44 klogd: WARNING: USB Mass Storage data integrity not assured
<47>May 6 16:31:44 klogd: USB Mass Storage device found at 2
<46>May 6 16:31:47 klogd: kjournald starting. Commit interval 5 seconds
<44>May 6 16:31:47 klogd: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended
<46>May 6 16:31:47 klogd: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,17), internal journal
<46>May 6 16:31:47 klogd: EXT3-fs: mounted filesystem with ordered data mode.
<46>May 6 16:31:48 klogd: kjournald starting. Commit interval 5 seconds
<46>May 6 16:31:48 klogd: EXT3 FS 2.4-0.9.19, 19 August 2002 on sd(8,18), internal journal
<46>May 6 16:31:48 klogd: EXT3-fs: recovery complete.
<46>May 6 16:31:48 klogd: EXT3-fs: mounted filesystem with ordered data mode.
<46>May 6 16:31:52 klogd: Adding Swap: 120480k swap-space (priority -1)
<44>May 6 16:33:07 klogd: EXT3-fs warning: maximal mount count reached, running e2fsck is recommended

So doing a fsck now to get the disk1 in order before proceeding. It is not going to finish by today.

Monday, May 01, 2006

New blog for technical posts

Most of the times I write only technical stuff interleaved with personal life. I decided to split this and hence have opened this blog exclusively for technical posts including the new I try out from time to time. My other blog will become a pure personal blog.