General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Oct 18, 2017 9:37 am

All times are UTC




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
PostPosted: Thu Feb 07, 2013 1:44 am 
Offline

Joined: Sun Aug 26, 2012 11:11 am
Posts: 20
deanodley wrote:
@olderzeus - once debian.tgz is installed on the hmnhd-ce, is there an easy way to upgrade to Debian wheezy/testing?
I think the kernel must be upgraded first or there will be problems with udev.
I assume the new kernel must be written directly to the disk rather than using apt/aptitude?
Any suggestions? Thanks.


You can upgrade some package to debian wheezy or sid , only to modify the sourcelist of apt.
If you want to upgrade udev, hmnhd-ce will brick(I have experienced) because kernel version is too older and no new can use.

My Kernel is fork from Stefan at https://github.com/seidler2547/kernel-oxnas820
I found a newer kernel in github, but it's need modify to hmnhd-ce: https://github.com/WarheadsSE/OX820-3.1-Linux


Top
 Profile  
 
PostPosted: Wed Feb 13, 2013 5:53 am 
Offline

Joined: Wed Feb 13, 2013 5:48 am
Posts: 3
hi,
first you've done a great job.

I recently installed Debian to the original disk (destroyed the original partitions first) by plugging the internal disk to another computer (via a USB adapter). Installation worked quite well, and the system is running, but I'm curios about the performance.
With the original firmware I got read performance of about 40-50 MBytes/sec (via SMB), now it's about 15! (tried via NFS).

do you have any ideas what the root cause is?

additionally, during installation I've seen the output that the partition is not perfectly aligned.


Top
 Profile  
 
PostPosted: Thu Feb 14, 2013 5:49 am 
Offline

Joined: Wed Feb 13, 2013 5:48 am
Posts: 3
as I've read in another thread here, I did some local filesystem tests which also showed that bad performance. for that reason I've switched to ext2 for my data-partition. IO performance is much better (not as fast as with the original firmware, but hopefully more stable)


Top
 Profile  
 
PostPosted: Tue Feb 19, 2013 9:44 am 
Offline

Joined: Tue Jun 22, 2010 3:08 pm
Posts: 21
Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.


Top
 Profile  
 
PostPosted: Wed Feb 20, 2013 1:38 am 
Offline

Joined: Sun Aug 26, 2012 11:11 am
Posts: 20
jaimealm wrote:
Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.


At first, boot up from usb only means boot from a usb rootfs, but the first stage & kernel & initrd be must on inner HDD.
Create a usb boot device, you can do follow steps:

1.create a first part on usb storage device and format as ext2 or ext3 filesystem.
2.mount this part on a linux system and extract my rootfs (debian or arch) file to this mount point.
3.create a file named "boot.from.here" on root directory of this mount point.

done


Top
 Profile  
 
PostPosted: Wed Feb 20, 2013 6:31 am 
Offline

Joined: Fri Jul 13, 2012 8:12 am
Posts: 110
jaimealm wrote:
Hi.
olderzeus, you said it's possible to boot up from usb. can you explain how to do this?.
Every time I broke my debian installation(so far many times), i have to open my hmnhd-ce to connect my hard drive to my computer, and maybe if i was able to boot from usb i can repair it withouth open it.


Or viewtopic.php?p=28065#p28065 if you're using mine or if olderzeus has included the usb_recovery too.

Stefan


Top
 Profile  
 
PostPosted: Tue Mar 05, 2013 5:51 am 
Offline

Joined: Wed Feb 13, 2013 5:48 am
Posts: 3
I've installed minidlna from debian wheezy but it crashes with SIGSEGV. I've tried to build it by myself with debug information, but neither running it with gdb gives me a backtrace, nor do I get a core dump when I enable them by
Code:
ulimit -c unlimited
.

Does anyone have a idea how to find the reason for the problem.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 2:37 pm 
Offline

Joined: Thu Mar 21, 2013 2:20 pm
Posts: 1
Hi Guys,
I trying install Debian in my HMNHDCE and I am having problems when I executes command:

Code:
tar -C /tmp/usb -zxf Debian.tgz

The system is returning error:

Code:
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors


Anybody, can help me, please?

I try execute:

Code:
tar -C /tmp/usb -zx Debian.tgz

But, the command is running for more than 12 hours and did not record anything on USB.

I'm using olderzeus tutorial's and files available in https://github.com/olderzeus/Iomega-HMNHDCE.


Top
 Profile  
 
PostPosted: Thu Mar 21, 2013 2:59 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6048
garotinho wrote:
Code:
tar -C /tmp/usb -zxf Debian.tgz

I try execute:
Code:
tar -C /tmp/usb -zx Debian.tgz
You didn't give the 'f' flag, so tar is trying to extract stdin.


Top
 Profile  
 
PostPosted: Sat Apr 27, 2013 11:28 am 
Offline

Joined: Sat Apr 27, 2013 11:26 am
Posts: 3
Hello,

thaks for the tutorial, it workd great!

The only Problem that I am having is that the samba experiance is quite slow (10,9 MB/s on a gigabit lan, I used to have over 30 with the original firmware)

Is there anything I can do to get back the old speed?

edit:// I tried to set it to spindown my HDD with hdparm. I use the command "hdparm -y /dev/sda
". The Drive spins down, but it spind right back up after a Second .. Not accessing any files on the NAS


Top
 Profile  
 
PostPosted: Wed Feb 05, 2014 2:48 am 
Offline

Joined: Sun Feb 02, 2014 3:22 pm
Posts: 4
Hey olderzeus, Thank you.

I saw in the download folder a kernel 3.12.6 (http://downloads.iomega.nas-central.org ... %20wheezy/), it works? can I use it?


Top
 Profile  
 
PostPosted: Wed Apr 09, 2014 8:25 am 
Offline

Joined: Wed Apr 09, 2014 8:12 am
Posts: 1
I've tried to make automatic synchronization of my Kindle with the directory on nas with debian.

Kindle discovers /dev/sdb, but /dev/sdb1 apperears only after e.g. entering and quitting parted. I've tried to install autofs to automatically mount Kindle fs, but there's autofs4 module missing.

Is it possible to kompile this module? Where should I look for advice?

PS
Thanks for great system and tutorial.

Kuba


Top
 Profile  
 
PostPosted: Fri May 23, 2014 5:01 am 
Offline

Joined: Fri May 23, 2014 4:35 am
Posts: 5
Hello!

I have a new drive (WD40EZRX) with a 4kB sector size and what to install a debian on it.
Therefore I have the same challenge as tyux2.
tyux2: Did you managed it with the 4kB-sector size drive?

I changes the scripts as following:

Code:
#!/bin/sh

if [ "$1-" = "-" ]; then
   echo "You must choose a device!"
   exit 1
elif [ -e $1 ]; then
   echo "Fill zero data to $1 first 32M"
   dd if=/dev/zero of=$1 bs=1M count=32
   echo "Made GPT part table"
   parted $1 mklabel gpt
   echo "Create first part from 32M sizeof 20G"
   parted $1 mkpart primary 33554432B 8623489023B
   wait
   echo "Waitting for format ${1}1"
   sleep 5
   echo "Formatting ${1}1"
   mkfs.ext3 "${1}1"
   exit 0
else
   echo "$1 not exists"
   exit 1
fi


Code:
parted /dev/sdX mkpart primary 8623489024B 100%
mkfs.ext3 /dev/sdX2


Code:
#!/bin/sh

if [ "$1-" = "-" ]; then
   echo "You must choose a device!"
   exit 1
elif [ -e $1 ]; then
   dd if=bootrom.warpped of=$1 bs=512 ibs=512 obs=512
   dd if=stage1.wrapped of=$1 seek=34b bs=512 ibs=512 obs=512
   dd if=u-boot.sd.wrapped of=$1 seek=154b bs=512 ibs=512 obs=512
   dd if=u-boot.sd.env of=$1 seek=558b bs=512 ibs=512 obs=512
   dd if=uImage.wrapped of=$1 seek=1290b bs=512 ibs=512 obs=512
   dd if=initrd.wrapped of=$1 seek=16674b bs=512 ibs=512 obs=512
   dd if=serial.warpped of=$1 seek=57080b bs=512 ibs=512 obs=512
   dd if=stage1.wrapped of=$1 seek=57088b bs=512 ibs=512 obs=512
   dd if=u-boot.sd.wrapped of=$1 seek=57208b bs=512 ibs=512 obs=512
   dd if=uImage.wrapped of=$1 seek=58344b bs=512 ibs=512 obs=512
   sync
   exit 0
else
   echo "$1 not exists"
   exit 1
fi


I untared the Debian.tgz as common. Put the internal drive in the HMNHDCE and power it on.

The device did not get an IP, thus I can not ssh to it.
The red warning LED is ON. What does it mean?

What I did not understand: Where the u-boot.sd.wrapped is written on the drive?
"seek=154b" means, that it starts at 154*512=78848.
And there is a 4kB-Sektor on the disk, which starts at 77824 and ends at 81920.
I guess, the seek-value have to be a multiple of 4kB.

But in which way the files *.wraped can be aligned on the 4kB-drive?

Jockel


Top
 Profile  
 
PostPosted: Wed May 28, 2014 2:16 pm 
Offline

Joined: Fri May 23, 2014 4:35 am
Posts: 5
Hi!

Because nobody stepped in, I tried to get the drive working with 512B-logical-sector-block-size.

Following results for drive WD40EZRX:

1. USB3.0-SATA-controller from WD My Book 4TB: 4kB logical sector block size, 4kB physical sector block size
2. USB2.0-SATA-controller from Logilink QP0002: 512B logical sector block size, 512B physical sector block size, limitation to 1,8TB :-( !!!
3. PC with SATA-Controller: 512B logical sector block size, 4kB physical sector block size

Last version worked with current files from olderzeus for Debian-wheezy.

Now I hope, it was the "best" operation system for my HMNHDCE.....

It is the newest one and with most ability and a lot of packages.
But performance and stability????

We will see in the future ;-)

Another question: Can the SATA-controller of HMNHDCE work with a drive with 4kB logical block size??? Does it depend on the hardware SATA-controller, on the driver of the SATA-controller or on the kernel-oxnas820???

Jockel


Top
 Profile  
 
PostPosted: Wed May 28, 2014 7:22 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6048
Quote:
Another question: Can the SATA-controller of HMNHDCE work with a drive with 4kB logical block size??? Does it depend on the hardware SATA-controller, on the driver of the SATA-controller or on the kernel-oxnas820???
I *think* the SATA controller won't have a problem with it, and nor will the kernel. But I wouldn't be surprised if the first stage bootloader (embedded in the SoC) cannot handle it. So you could have a hard time to get the system booted.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group