Author Topic: How do I make a root.bin from wdtv.bin?  (Read 3843 times)

May 19, 2009, 09:38:22 AM
Read 3843 times

draadloos

  • Jr. Member

  • Offline
  • **

  • 84
Fellow wdtv-mod-ers,

There already are several modded wdtv.bin firmwares going around on the forum. Can you please tell me if and how I can make a root.bin from a wdtv.bin myself to use in ext3-boot? .

thanx :)
wireless-WDTV running FW 1.02.07/ext3 0.9.2 with wireless-mod.app.bin 0.3. ICIDU WLAN-adapter, zd1211b (EUR 9.95 at www.mycom.nl).
Streaming all media wireless from WD MyBook World Edition NAS through Sweex wireless router (LC000070). WLAN security by MAC-filter.

May 19, 2009, 10:02:44 AM
Reply #1

3dxr

  • Global Moderator
  • Sr. Member

  • Offline
  • *****

  • 411
check wiki and check mkcramfs or loop fs on google

first you need decide how much space you need
then for example 50mb ext2 fs

dd if=/dev/zero of=myfilesystem.bin bs=1024k count=52
this should create 52mb file with zeros

Why 52mb ?
becouse :-p, you need more space in file becouse FS require some space for internal structures
in this case reserved space for INODES superblocks etc..
2mb should be enought

then

losetup /dev/loopX ./myfilesystem.bin

loopX use next free loop device

mkfs -t ext2 /dev/loopX

man mount

or
mount  /dev/loopX /mnt/myloopfs
cd /mnt/myloopfs

touch hello.txt
ls -la hello.txt

done.

next time you can use for mounting

mount -t ext2   ./myfilesystem.bin /mnt/myloopfs -o loop

lo setup is only required first time when you need bind file to loopdevice and create fs
next time fs in file exist isnt nescessay but is possible also use it


whole how to is from head I am not on Linux OS at now probably there are something missing or there are some typos.


May 19, 2009, 10:11:22 AM
Reply #2

3dxr

  • Global Moderator
  • Sr. Member

  • Offline
  • *****

  • 411
http://www.walkernews.net/2007/07/01/create-linux-loopback-file-system-on-disk-file/
or
http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/ref-guide/s1-filesystem-ext3-create.html

and about cramfs experiments will be better dont public nothing experimental keep on mind
other users will try everythink and dont have enought skills repair own WDTV or always WARN all users using
non official fw on own risk and breaking warantry WDTV is well designed for testing and  recovery but its possible
brick it up. with custom FW

May 19, 2009, 10:31:16 AM
Reply #3

draadloos

  • Jr. Member

  • Offline
  • **

  • 84
Thanks. I understand I must use root.bin where you say myfilesystem.bin? Now I can create an empty root.bin, what do I put inside root.bin? I can see existing root.bin's are about 65mb where standard wdtv.bin is about 12.5mb.
wireless-WDTV running FW 1.02.07/ext3 0.9.2 with wireless-mod.app.bin 0.3. ICIDU WLAN-adapter, zd1211b (EUR 9.95 at www.mycom.nl).
Streaming all media wireless from WD MyBook World Edition NAS through Sweex wireless router (LC000070). WLAN security by MAC-filter.

May 19, 2009, 12:06:35 PM
Reply #4

3dxr

  • Global Moderator
  • Sr. Member

  • Offline
  • *****

  • 411
use
Code: [Select]
file root.bin

Code: [Select]
file wdtv.bin

one is cramfs or romfs and second one is normal fs

you need extend ext2/ext3 I am not sure I am not using Z. or Brad-c fw's


May 25, 2009, 01:15:26 PM
Reply #5

draadloos

  • Jr. Member

  • Offline
  • **

  • 84
use
Code: [Select]
file root.bin

Code: [Select]
file wdtv.bin

one is cramfs or romfs and second one is normal fs

you need extend ext2/ext3 I am not sure I am not using Z. or Brad-c fw's



Thanx, So these are the file names, what do I put in it? Does 12.5 megs of normal fs grow to 65mb in cramfs?
wireless-WDTV running FW 1.02.07/ext3 0.9.2 with wireless-mod.app.bin 0.3. ICIDU WLAN-adapter, zd1211b (EUR 9.95 at www.mycom.nl).
Streaming all media wireless from WD MyBook World Edition NAS through Sweex wireless router (LC000070). WLAN security by MAC-filter.

October 27, 2013, 01:41:10 PM
Reply #6

arfgh

  • Newbie

  • Offline
  • *

  • 47
can someone to explain more about to perform my own root.bin ?