Read Only Filesytem

Post Reply
bcre3306
Posts: 1
Joined: Thu Jun 13, 2013 5:05 pm

Read Only Filesytem

Post by bcre3306 » Thu Jun 13, 2013 5:10 pm

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

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

Re: Read Only Filesytem

Post by Zog » Tue Nov 26, 2013 2:10 am

Hi,

Starting from http://iomega.nas-central.org/wiki/Hack ... edia_CE%29,
I found http://soeuni.dlinkddns.com:7870/pogo/b ... ne&wr_id=7
This should also work for you (using ssh root@<IP> / soho<pwd>) :

Code: Select all

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: Select all

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

Code: Select all

 "mount -o loop,rw $APPS_IMAGE sysroot/mnt/apps"
then :

Code: Select all

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: Select all

reboot
And after reboot :

Code: Select all

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)

Voytec
Posts: 9
Joined: Tue Sep 16, 2014 11:07 am

Re: Read Only Filesytem

Post by Voytec » Wed Sep 17, 2014 8:38 pm

I tryied this metod but faced several problems:

1th

Code: Select all

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: Select all

gzip: stdin: not in gzip format
I'm not sure is it ok?

2nd

Code: Select all

mount -o loop initrd rootfs
returned:

Code: Select all

mount: you must specify the filesystem type
But before that I had to do this:

Code: Select all

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: Select all

mount -o loop initrd rootfs -t ext2
but it also didn't work

funemahn
Posts: 1
Joined: Wed Feb 25, 2015 10:18 pm

Re: Read Only Filesytem

Post by funemahn » Wed Feb 25, 2015 10:28 pm

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: Select all

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

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: Read Only Filesytem

Post by Mijzelf » Thu Feb 26, 2015 3:58 pm

What is the size of your initrd file?

Post Reply