Welcome! Log In Create A New Profile

Advanced

Debian on iomega storcenter ix4-200d: succes!

Posted by damacc 
Re: Debian on iomega storcenter ix4-200d: succes!
May 24, 2021 11:12AM
Made progress with the backup but load of errors trying /sys...

rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/unload_heads": Operation not supported (95)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/vendor": No data available (61)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/mbus@f1000000:pcie@82000000/pci0000:00/0000:00:01.0/0000:01:00.0/ata4/host4/target4:0:0/4:0:0:0/wwid": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/Fixed MDIO bus.0/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/driver_override": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/alarmtimer/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/driver_override": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood-cpufreq/power/runtime_suspended_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/driver_override": No data available (61)
WARNING: sys/devices/platform/kirkwood_cpuidle/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/autosuspend_delay_ms failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/control failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_active_time failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_status failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/kirkwood_cpuidle/power/runtime_suspended_time failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/uevent": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/autosuspend_delay_ms": Input/output error (5)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/control": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_active_time": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_status": No data available (61)
rsync: read errors mapping "/sys/devices/platform/kirkwood_cpuidle/power/runtime_suspended_time": No data available (61)
WARNING: sys/devices/platform/mbus@f1000000/driver_override failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/driver_override": No data available (61)
WARNING: sys/devices/platform/mbus@f1000000/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/driver_override failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/modalias failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/uevent failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/mtd/mtd0/bad_blocks failed verification -- update discarded (will try again).
WARNING: sys/devices/platform/mbus@f1000000/f4000000.nand/mtd/mtd0/bbt_blocks failed verification -- update discarded (will try again).
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/modalias": No data available (61)
rsync: read errors mapping "/sys/devices/platform/mbus@f1000000/uevent": No data available (61)

===
moderator edit: please use code tags



Edited 1 time(s). Last edit at 05/24/2021 04:41PM by bodhi.
Re: Debian on iomega storcenter ix4-200d: succes!
May 24, 2021 04:47PM
reformedfan,

Something wrong in the rsync setup. rsync should not try to back up /sys.

Did you use my instruction in the Wiki thread to set up rsync?

https://forum.doozan.com/read.php?2,111249,111249#msg-111249

Quote
https://forum.doozan.com/read.php?2,23630
Backup and Cloning rootfs

Back up a live rootfs using rsync

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 25, 2021 08:10AM
I'll check the config for rsync, I used the "on demand" one. Anyhow, once validated, I can --exclude /sys/ if needed. All in all, all working now. Env has been committed to NAND, used MDADM to fix the RAID as it was degraded, Samba configured. so far so good and almost ready to help the next person :)

Next steps (views welcome)

1)DNLA/UPNP media service, iOmega used Twonky Media server,
2)way to alert on Disk / Raid issues - thinking email service (postfix?)
3) Apple time machine
4)any other cool tools with low footprint?
Re: Debian on iomega storcenter ix4-200d: succes!
May 25, 2021 04:50PM
reformedfan,

> I'll check the config for rsync, I used the "on
> demand" one. Anyhow, once validated, I can
> --exclude /sys/ if needed. All in all, all
> working now. Env has been committed to NAND,
> used MDADM to fix the RAID as it was degraded,
> Samba configured. so far so good and almost ready
> to help the next person :)

Cool!

> 1)DNLA/UPNP media service, iOmega used Twonky
> Media server,

Install minidlna from Debian repo.

apt-get install minidlna

> 2)way to alert on Disk / Raid issues - thinking
> email service (postfix?)

There are many examples on the Internet for settings up Gmail with smartctl daemon.

> 3) Apple time machine

I'll have to look for my notes. I've done this quite a long time ago, but never actually used it daily (my wifi was too slow back in the days). But using it with Ethernet connection is decent.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 27, 2021 10:18AM
Quick one as I am being thick. Trying to set up the device so you can ping by hostname (FQDN). eg. hostname.local

>Interface is DHCP - and the file has a basic entry [iface eth0 inet dhcp}
>resolve.conf is the local router (DHCP/DNS) [nameserver 192.168.1.1]
>Hosts file only has the loopback and local hostname. I dont want to start adding to this file

Do I need a DNS forwarding service or something, or have I just missed something out?

Thanks
Matthew
Re: Debian on iomega storcenter ix4-200d: succes!
May 27, 2021 05:17PM
Matthew,

Quote

Quick one as I am being thick.

Not at all :) good question.

This hostname capability is provided by avahi. And it is already installed in the basic rootfs.

Quote

Updated 25 Aug 2019:

Basic Debian buster Kirkwood rootfs for most Kirwood plugs:

- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root


In your local network environment the host name is broadcasted by avahi. Your MacOS boxes would see it as nameofhost.local (it is debian.local if you have not changed hostname after installation).

So go ahead and ping it, or ssh in.

ping nameofhost.local

or
ssh root@nameofhost.local

See if you get response in either cases.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 03:27AM
Hi,

It really wierd,

This Debian, rootfs host doesn't resolve names. I have a few raspberry pi's (raspbian) and these work. I have crossed checked the following files and nothing seems majorly different.

/etc/nsswitch.conf
   /etc/resolv.conf
   /etc/hosts
   /etc/network/interfaces
   /etc/avahi/avahi-daemon.conf


The Pis resolve hostname.local (ping) for all of my 100 + hosts on my home network (haha) but this one doesn't:

uname -a
Linux iomega 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel GNU/Linux
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 03:43AM
Matthew,


Reboot the Store Center. Sometime a reboot will help. Check the syslog, there should be avahi activities toward the end of the log.

Or filter out avahi log:
logread | grep avahi

And ping or ssh the hostname after the system is up about 2 minutes or later.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
May 28, 2021 05:56PM
Matthew,

Is this box behind a wireless bridge?

For reference, I alsway log in to these NAS boxes from my MacBook laptop with hostname.local. Once in a long while, some of the boxes behind a wireless bridge did not advertise their host names through, for whatever reason (dmesg or syslog did show anything strange). A wireless bridge reboot cleared it up.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
June 02, 2021 05:38AM
Hi,

The plot thickens. The host (ix4-200d), can ping IPs and resolve external host names like www.google.com. it can't resolve internal hostnames if you append .local.

e.g ping hostname.local

My other linux devices work ok (raspberry pi's).

I have done an "apt update on avahi"

It is not the end of the work, just frustrating
Re: Debian on iomega storcenter ix4-200d: succes!
June 02, 2021 04:28PM
Matthew,

I think it might have something to do with avahi hosts.

Normally host names should be OK without workaround. But it does not hurt to force the hosts list to contain its own name and other in the network.

First, add the ix4 and the MacOS box or any box (you want it to see the ix4 as hostname.local) to the avahi list of hosts in
/etc/avahi/hosts
(IP address and hostname.local)

And reboot the ix4.

If that is not enough, add those same hosts to the /etc/hosts
/etc/hosts
(IP address and hostname)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
June 17, 2021 04:45AM
Back with a SMARTd (smartmontools) email challenge. Email works from command link but not from samrtd.conf. I get the following error:

[....] Restarting S.M.A.R.T. daemon: smartd
2021 Jun 17 10:41:31 iomega Test of <mail> to [removed]@gmail.com produced unexpected output (29 bytes) to STDOUT/STDERR: 
2021 Jun 17 10:41:31 iomega msmtp: invalid option -- 's'
2021 Jun 17 10:41:31 iomega Test of <mail> to [removed]@gmail.com: failed (32-bit/8-bit exit status: 16384/64)

Originally followed https://linuxconfig.org/how-to-configure-smartd-and-be-notified-of-hard-disk-problems-via-email

I have now tried msmtp, s-nail and mailx.

Any tips are gratefully received. My feeling is that it is a bug!

***FIXED***
removed all mail installs

  apt remove msmtp-mta
  apt remove mailutils
  apt remove s-nail
  apt remove msmtp-mta
  apt remove msmtp

then added Postfix, set to relay to an internal machine that can send to gmail. then installed mailutils

***end***



Edited 2 time(s). Last edit at 06/19/2021 06:50AM by reformedfan.
Re: Debian on iomega storcenter ix4-200d: succes!
June 24, 2021 06:03AM
Fixed the .local name resolution issue by installing: apt install libnss-mdns
Re: Debian on iomega storcenter ix4-200d: succes!
June 24, 2021 04:10PM
Matthew,

> Fixed the .local name resolution issue by
> installing: apt install libnss-mdns

Not sure why you need that extra package. It should work with avahi core packages already installed in the rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2, out of the box.

libnss-mdns is recommended (i.e. not required) package for avahi.

Thanks for the report. If it is helping you making it work in your network environment, then it is great to have. I'll keep that in mind for the next rootfs release.

-bodhi
===========================
Forum Wiki
bodhi's corner
cody
Re: Debian on iomega storcenter ix4-200d: succes!
September 26, 2021 08:14PM
Hi. I am curious how to perform debain install on this device the ix4-200d
Re: Debian on iomega storcenter ix4-200d: succes!
September 26, 2021 09:16PM
cody,

> Hi. I am curious how to perform debain install on
> this device the ix4-200d

Create rootfs Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2:

https://forum.doozan.com/read.php?2,12096

See here how to set up to run with stock u-boot:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374

-bodhi
===========================
Forum Wiki
bodhi's corner
Hello again. I made the USB stick. The ix4-200d doesn't have video out so how do I know if this boots into debian?
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb reset; run usb_bootcmd; usb stop; reset

Environment size: 2296/16380 bytes
Marvell>> boot
Unknown command 'usb' - try 'help'

** Block device usb 0 not supported

** Block device usb 0 not supported
## Booting image at 00800000 ...
Bad Magic Number
Unknown command 'usb' - try 'help'

I have no clue how to move this onto the device and update uboot so that the USB command is supported..uboot-1.1.4-Mar-10-2011.mtd0
Re: Debian on iomega storcenter ix4-200d: succes!
October 02, 2021 04:18PM
cody,

See this post:

https://forum.doozan.com/read.php?2,22623,115989#msg-115989

-bodhi
===========================
Forum Wiki
bodhi's corner
I am unable to ssh into the box as I cannot enable remote access.
Is there another way?
So far so good: image
Re: Debian on iomega storcenter ix4-200d: succes!
October 02, 2021 06:48PM
Cody,

I would prefer to read the serial boolog in plain text posted here, or pastebin!

-bodhi
===========================
Forum Wiki
bodhi's corner
https://pastebin.com/G13v21GD

freezes at starting kernel.
Showing

## Booting image at 00800000 ...
   Image Name:   Linux-5.13.6-kirkwood-tld-1
   Created:      2021-10-02  23:06:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    9274 Bytes =  9.1 kB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK


Supposed to be larger? What have i done?
im in..


Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1063 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.
 failed!
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1094 (klogd)
.
Running local boot scripts (/etc/rc.local)
ssh-keygen: generating new host keys: RSA
DSA
ECDSA
ED25519

Starting OpenBSD Secure Shell server: sshd
.
.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password:
Linux debian 5.13.6-kirkwood-tld-1 #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Sep 25 19:53:59 PDT 2021 from 192.168.0.100 on pts/0
debian
Iomega ix4-200d
Linux version 5.13.6-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Jul 31 22:10:39 PDT 2021
Debian 11.0
Sat Oct 2 17:14:12 PDT 2021 up 2 minutes
root@debian:~#

Re: Debian on iomega storcenter ix4-200d: succes!
October 02, 2021 10:10PM
Cool! looks great.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on iomega storcenter ix4-200d: succes!
October 15, 2021 02:20PM
Is it possible to install the openmediavault since it is based on debian?
Re: Debian on iomega storcenter ix4-200d: succes!
October 15, 2021 03:45PM
andersonf_cunha,

> Is it possible to install the openmediavault since
> it is based on debian?

It should works. See the Wiki thread:


Quote

Media Streaming

OpenMediaVault
Debian Stretch and OMV4

One thing to be aware is you will need to run the rootfs on HDD, and have a large swap file/partition (size = 4x the RAM) .

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: