Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > More E-Book Readers > iRex

Notices

Reply
 
Thread Tools Search this Thread
Old 05-20-2008, 01:38 PM   #1
amirshim
Member
amirshim doesn't litteramirshim doesn't litteramirshim doesn't litter
 
Posts: 18
Karma: 207
Join Date: Aug 2007
Device: irex iliad
e2fs 1.40.8

I hope I am not replicating something someone has done, but I needed to create ext2 partitions from the Iliad, so I built the e2fsprogs package for it.

***Please be careful with it***

The Iliad doesn't support inodes bigger than 128 bytes, so if you are creating a file system that you want to use on the Iliad, use the "-I 128" option. I also usually don't need to reserve space for the super-user, so I use the "-m 0" option.

For example: If you want to create an ext2 partition on the compact flash, run
mke2fs -I 128 -m 0 /dev/hda1

You might need to run fdisk on the partition to make the file system type "linux" (83).
For example: to make a partition on the compact flash be an "ext2" aka "linux" partition
type: fdisk /dev/hda
then type 't' and select type 83 (for a single partition drive)
then type 'w' to write the new info to the drive.

Again... please be careful
I hold no responsibility for anything that may happen.
________________________
http://blog.amirshimoni.com/
Attached Files
File Type: gz e2fs-1.40.8.tar.gz (1.32 MB, 371 views)
amirshim is offline   Reply With Quote
Old 05-28-2008, 03:09 AM   #2
Atk
Bla , Bla , Bla
Atk began at the beginning.
 
Atk's Avatar
 
Posts: 3
Karma: 10
Join Date: May 2008
Location: K.S.A
Device: N95 , Iliad (Not by Homer)
just to confirm , it works perfectly on iliad i formated my USB stick to ext2 through this utility as i did not had access to linux , any how follow are the areas to be carefully checked before formating. ( i am writing specificly for USB but i guess same will be applied for oher storage. )

- You should have terminal porting available on iliad.
- first run only mount command wich will help you identify the real device name of the sd card / cf card / or USB device.
- after noting the device name unmount this device as till it is not unmounted it will not be formated
- now run the commands by replacing the device name exactly the way written by amir in above post.
- after that use the ext2 driver for windows to access this usb in windows as by default windows will not be able to read/write usb with ext2 format.
- now copy the wikipedia etc. or any other program you want to run from this storage.
- now when you will connect it back to iliad that time surprisingly iliad does not detect it automatically ( does not mount actually automatically ). I handle this problem by writing a one line "mount" script to mount it manually. (you might consider changing /etc/fstab things for automation business ).
- after this the last problem is by since you copied it from windows and now this is ext2 so your program might not work at first as there is no execute permissions on the binaries so settle that through terminal program again by running "chmod" commands.
- and finally your progarams ( in my case wikipedia full english edition ) start working.
Atk is offline   Reply With Quote
Advert
Old 05-28-2008, 06:05 AM   #3
Martijn
Connoisseur
Martijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-booksMartijn has learned how to read e-books
 
Martijn's Avatar
 
Posts: 68
Karma: 855
Join Date: Jan 2007
Location: Netherlands
Device: iLiad
I changed the line
Code:
/dev/hda1            /mnt/cf              vfat       defaults,iocharset=utf8,sync,dirsync  0 0
into:
Code:
/dev/hda1            /mnt/cf              auto       defaults,sync                         0 0
in /etc/fstab.

Now my iLiad automatically mounts the CF card that is in there, regardless of whether it is formatted as vfat or ext2.
EDIT: I guess a similar change will work for the USB drive.

Last edited by Martijn; 05-28-2008 at 06:08 AM.
Martijn is offline   Reply With Quote
Old 12-30-2008, 10:37 AM   #4
PabloQui
Junior Member
PabloQui began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2008
Device: iLiad
More questions than answers

Hi everybody,

Understanding the logic of Atk instructions, I lack the syntaxis. How to mount-unmount a CF in the iLiad?. Can you at least point me to any reference source?

I suppose for you this question may look näive, but it has been 12 years since I left HP UX environments to work on the windoze side and lots of things have changed... I am getting old

Thanks mates!!!,
PabloQui is offline   Reply With Quote
Old 02-15-2009, 07:41 AM   #5
PabloQui
Junior Member
PabloQui began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2008
Device: iLiad
Thanx for your help

Partition Magic 8 will do the trick of partitioning to ext2 if you are a windows user, without minimum, minimum risk.
Then Ext2IFS can be used to access the partition from Vista, XP, NT 4.0 or 2000.

Thanx again
PabloQui is offline   Reply With Quote
Advert
Old 02-22-2009, 09:47 AM   #6
Antartica
Evangelist
Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.Antartica ought to be getting tired of karma fortunes by now.
 
Antartica's Avatar
 
Posts: 423
Karma: 1517132
Join Date: Jun 2006
Location: Madrid, Spain
Device: quaderno, remarkable2, yotaphone2, prs950, iliad, onhandpc, newton
Quote:
Originally Posted by PabloQui View Post
Understanding the logic of Atk instructions, I lack the syntaxis. How to mount-unmount a CF in the iLiad?. Can you at least point me to any reference source?
I've not tested the following in the iliad, but it should work .

To list the supported filesystems:

# cat /proc/filesystems

To mount /dev/hda1 in /tmp/mnt, letting the system to guess the filesystem

# mkdir /tmp/mnt
# mount -t auto /dev/hda1 /tmp/mnt

To umount /tmp/mnt

# umount /tmp/mnt

If you have to specify the filesystem, the most common ones are vfat for windows-formatted partitions (digital camera SD cards and the like) and ext2 for linux ones (explicitly formatted with mke2fs):

# mount -t vfat /dev/hda1 /tmp/mnt

or

# mount -t ext2 /dev/hda1 /tmp/mnt

In all the above examples I've used /dev/hda1, that is the first partition of the CF, but if you have more partitions, you would have to look at the exact number using fdisk diskdev "print[ENTER]quit[ENTER]"or "sfdisk -d diskdev" (probably in you laptop instead; anyway out of scope for this little reminder).

Hope that helps .
Antartica is offline   Reply With Quote
Old 04-07-2009, 10:33 AM   #7
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I just converted /mnt/free to ext2 from vfat.
Here is my steps:
0. backup /mnt/free
1. edit /etc/fstab and add a "#" in front of the line containing "/mnt/free"
2. reboot
3. execute "mke2fs -I 128 -m 0 /dev/tffsa6"
4. remove that "#" added in step 1.
5. reboot and /mnt/free will be ext2 format

One question:
What is /mnt/protected used for? It occupies 32MB and seems not used. If possible, I want to merge it with /mnt/free.

Added:
Martjin's suggestion is convenient. Do remember to retain "iocharset=utf8" or characters beyond ascii won't display correctly.

Last edited by ericshliao; 04-07-2009 at 10:55 AM.
ericshliao is offline   Reply With Quote
Old 04-07-2009, 11:15 AM   #8
ericshliao
Guru
ericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enoughericshliao will become famous soon enough
 
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
I guess that /mnt/protected was created for containing upgrade pacakge download from iRex. Since iRex no longer provides firmware upgrade, maybe there is a better way to use those space.
ericshliao is offline   Reply With Quote
Old 04-08-2009, 03:11 PM   #9
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
Originally Posted by ericshliao View Post
I guess that /mnt/protected was created for containing upgrade pacakge download from iRex. Since iRex no longer provides firmware upgrade, maybe there is a better way to use those space.
/mnt/protected will be used by the iLiadOS community project for updates as well.

I'm not sure that repartitioning the internal file system of the iLiad is such a good idea... It seems like a big risk for something with little reward.
Adam B. is offline   Reply With Quote
Old 04-09-2009, 06:11 AM   #10
hansel
JSR FFD2
hansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheesehansel can extract oil from cheese
 
hansel's Avatar
 
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
Quote:
Originally Posted by Adam B. View Post
I'm not sure that repartitioning the internal file system of the iLiad is such a good idea... It seems like a big risk for something with little reward.
In the long run it would be good to have a larger root partition (upgrading to newer gtk/gdk/ark/glib/etc will need more room). /mnt/free can be smaller...
hansel is offline   Reply With Quote
Old 04-09-2009, 08:18 AM   #11
Adam B.
Addicted to Porting
Adam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the roughAdam B. is a jewel in the rough
 
Adam B.'s Avatar
 
Posts: 1,697
Karma: 7194
Join Date: Oct 2006
Location: Indianapolis, IN
Device: iRex iLiad, Nokia 770, Samsung i760
Quote:
Originally Posted by hansel View Post
In the long run it would be good to have a larger root partition (upgrading to newer gtk/gdk/ark/glib/etc will need more room). /mnt/free can be smaller...
I agree, it would definitely be nice to have.

But until we can perform a hardware level reflash, I think that it will be too dangerous to do en masse for the average user.
Adam B. is offline   Reply With Quote
Reply


Forum Jump


All times are GMT -4. The time now is 05:08 AM.


MobileRead.com is a privately owned, operated and funded community.