General NAS-Central Forums

Welcome to the NAS community
It is currently Wed May 24, 2017 7:41 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Read Only Filesytem
PostPosted: Thu Jun 13, 2013 5:10 pm 
Offline

Joined: Thu Jun 13, 2013 5:05 pm
Posts: 1
I just purchased a EZ Media and backup 2TB and was looking to install transmission and sickbeard on it. I tried the previous threads suggestion on installing transmission but with the FS being read-only I can't really accomplish this. Even after I do it seems to go back to default after a reboot. I really don't need any of the other software running on the NAS so was wondering is there any way to just do a fresh install of debain or at a minimal get transmission and sickbeard installed?
Thanks


Top
 Profile  
 
 Post subject: Re: Read Only Filesytem
PostPosted: Tue Nov 26, 2013 2:10 am 
Offline

Joined: Tue Nov 26, 2013 1:26 am
Posts: 1
Hi,

Starting from http://iomega.nas-central.org/wiki/Hacking_%28Home_Media_CE%29,
I found http://soeuni.dlinkddns.com:7870/pogo/bbs/board.php?bo_table=mine&wr_id=7
This should also work for you (using ssh root@<IP> / soho<pwd>) :
Code:
cd /tmp
mkdir RWAppsHack
cd RWAppsHack
dd if=/dev/sda skip=$((8192*8+1)) bs=64 count=$((0x$(dd if=/dev/sda skip=$((8192*128+3)) bs=4 count=1 2>/dev/null|hexdump -ve '/1 "%02x"')/64+1)) | zcat > initrd
mkdir rootfs
mount -o loop initrd rootfs
cd rootfs
nano common.sh

change
Code:
"mount -o loop,ro $APPS_IMAGE sysroot/mnt/apps"

in func do_normal_boot() to rw
Code:
 "mount -o loop,rw $APPS_IMAGE sysroot/mnt/apps"

then :
Code:
cd /mnt/system
wget http://www.isysop.com/wp-content/uploads/2012/06/uImage.py
cd /tmp/RWAppsHack
umount rootfs
gzip -f initrd
python /mnt/system/uImage.py -c -A arm -T ramdisk -C gzip -O linux -d initrd.gz uimage.new
dd if=uimage.new of=/dev/sda seek=8192

Finally
Code:
reboot

And after reboot :
Code:
mount | grep loop0
gives
/dev/loop0 on /mnt/apps type ext2 (rw,relatime) :D

Let me know if it helps you (or plz complete if necessary)


Top
 Profile  
 
 Post subject: Re: Read Only Filesytem
PostPosted: Wed Sep 17, 2014 8:38 pm 
Offline

Joined: Tue Sep 16, 2014 11:07 am
Posts: 9
I tryied this metod but faced several problems:

1th
Code:
dd if=/dev/sda skip=$((8192*8+1)) bs=64 count=$((0x$(dd if=/dev/sda skip=$((8192*128+3)) bs=4 count=1 2>/dev/null|hexdump -ve '/1 "%02x"')/64+1)) | zcat > initrd

responded:
Code:
gzip: stdin: not in gzip format

I'm not sure is it ok?

2nd
Code:
mount -o loop initrd rootfs

returned:
Code:
mount: you must specify the filesystem type

But before that I had to do this:
Code:
mknod /dev/loop3 b 7 3

because without this i had and answer that "no loop device is available".

And basicly thats the place im stuck
i tried
Code:
mount -o loop initrd rootfs -t ext2

but it also didn't work


Top
 Profile  
 
 Post subject: Re: Read Only Filesytem
PostPosted: Wed Feb 25, 2015 10:28 pm 
Offline

Joined: Wed Feb 25, 2015 10:18 pm
Posts: 1
I am experiencing the exact same problem as Voytec. Any solutions?

I replaced zcat with gzip and *seemed* to have a higher degree of sucess in that I didn't receive any errors, but the mount still fails. As well, the gzip'd initrd is only 24k which seems way too small.

My firmware is: 4.1.108.32627


Any assistance would be greatly appreciated as I need to get apt-get working asap!

Cheers!

Code:
root@ix2-2:/tmp# mount -o loop initrd rootfs
mount: you must specify the filesystem type


Top
 Profile  
 
 Post subject: Re: Read Only Filesytem
PostPosted: Thu Feb 26, 2015 3:58 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5994
What is the size of your initrd file?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 5 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