OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: Jon_J on March 16, 2006, 04:46:30 pm

Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: Jon_J on March 16, 2006, 04:46:30 pm
I searched for topics on "Files AND Tab" without the quotes. I got 8 pages of results.
I spent the last hour ½ reading these results.
What I want to do is to have my Hdd3 show up in the "Files Tab" on the Qtopia desktop.
C3100 & Cacko ROM here.
I've enclosed a mock-up screenshot.
Is this possible?
BTW "Internal Disk" is the "Documents" folder and you cannot go up from there to Hdd3.

I have my Hdd3 root directory set up just like my SD cards in both my Palm and my Zaurus. Now that I have Picsel Browser card inserted all the time, I want to be able to use my Hdd3 for data files, and NOT use the SD card anymore for writing/re-writing files. This is why I want to be able to access the root of Hdd3 from the Files Tab.
Thank you,
Jon
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 17, 2006, 12:48:54 am
actually if you could get it to goto root "/" this would be of great use, as the files tab shows thumbnails(I think), good for tweaking themes....
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: Jon_J on March 17, 2006, 01:54:57 am
Is there a *.conf file for the "Files" tab?
Can one be created? or, What controls the drive/directory access from the "Files" tab?

Jon
EDIT: Here's some odd behavior, when I use PC Link in the settings, and switch from SD card to Internal HDD,
I get a notice that says this:
"Internal disk is Documents Directory"
(I'm using the "Storage" option).
When I connect thru USB on my desktop, (Win-xp),
I can access all of hdd3, not just "Documents", like the message had me assume.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 17, 2006, 03:09:58 am
wonder if you can symlink a symlink....?
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: Jon_J on March 17, 2006, 03:58:22 am
I tried a symlink, but hdd3 on my C3100 is Fat, and it didn't work.
Also tried a windoze shortcut. These don't work in Linux.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 17, 2006, 04:09:23 am
there is Launcher.conf, it has a DocsTabConfig section  but its empty...
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 17, 2006, 04:17:27 am
ok I found this, it may help in the search, I too now am searching for this as well

Thanks to XavierXeon for this info]
F irst, change the /etc/mtab file from being a symlink to /proc/mounts into being a regular file. Then edit the file and comment out those mounted filesystems you don't want the Documents tab to scan.

To change mtab from a symlink to an editable file:
# cd /etc
# cp mtab mtab.old
# rm mtab
# mv mtab.old mtab

Then just edit mtab, comment out /dev/hda1 (CF card) /dev/mmcda1 (SD card) if you want to remove all files on those two sources completely. Or just append /Documents to the end of each to only show files in the Documents directory on each inside the Documents tab. NOTE: This might break things like the ipkg manager.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: derekp on March 17, 2006, 10:55:57 am
Look at this topic:
https://www.oesf.org/forums/index.php?showtopic=11513 (https://www.oesf.org/forums/index.php?showtopic=11513)

Apparently, the mappings are hard-coded into qtopia.  That is, the devices are hard-coded, and it will look at where that device is currently mounted (via /etc/mtab) to figure out what to put in the files tab.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 18, 2006, 01:07:24 am
yea but when a usbdrive is......wait, i think I have a solution...perhaps

hows about making a folder under /mnt, call it vroot, and have it mounted to root, that should work....of course after tweaking the rc.rofilesys or hddmount(for cacko)
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: Meanie on March 18, 2006, 01:40:43 am
to force /hdd2 to be shown on the files tab

mount -o bind /hdd2 /mnt/ide

this will show /hdd2 with a CF icon


to force /hdd3 to be shown on the files tab

mount -o bind /hdd3 /hdd3

this will show /hdd3 as an Internal Disk, so you will now have two Internal Disk listed, one is /hdd3/Documents while the other is /hdd3

to force / to be shown on the files tab

ln -s /dev/mtdblock3 /dev/hdd
mkdir /mnt/root
mount /dev/hdd /mnt/root

this will show / as a Storage device on /dev/hdd

now be careful with this. the above can also be changed around to display the icons differently, but there is also a big chance of corrupting your filesystem if you overdo it.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on March 18, 2006, 03:09:41 am
killer useful info's, definately adding it to the site, thanks meanie, thats the route I thought was going to work.
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: Jon_J on March 18, 2006, 12:56:15 pm
Quote
to force /hdd2 to be shown on the files tab

mount -o bind /hdd2 /mnt/ide

this will show /hdd2 with a CF icon


to force /hdd3 to be shown on the files tab

mount -o bind /hdd3 /hdd3

this will show /hdd3 as an Internal Disk, so you will now have two Internal Disk listed, one is /hdd3/Documents while the other is /hdd3

to force / to be shown on the files tab

ln -s /dev/mtdblock3 /dev/hdd
mkdir /mnt/root
mount /dev/hdd /mnt/root

this will show / as a Storage device on /dev/hdd

now be careful with this. the above can also be changed around to display the icons differently, but there is also a big chance of corrupting your filesystem if you overdo it.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119107\"][{POST_SNAPBACK}][/a][/div]
Are these changes permanent? After a reboot, would the "New" drives/directories still be in Qtopia's Files tab?
Thank you,
Jon
EDIT: Thank you very much meanie!
Now I can browse my hdd3 in the files tab and view all my images with one click.
This is very helpful if someone asks you if they can view a picture that you have.
It's a lot quicker than opening an imaging program/editor, then browsing for the file.
Also, "Thumbnails view" works perfectly!
Title: Hdd3 In Files Tab On Qtopia Desktop?
Post by: bam on April 29, 2006, 08:44:00 pm
question: what causes the external storage mounting to be "named" and not the "others", I would like to see a internal drive but with the name below it where its mounted, just an idea.