Author Topic: Hdd3 In Files Tab On Qtopia Desktop?  (Read 4136 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Hdd3 In Files Tab On Qtopia Desktop?
« 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
« Last Edit: March 16, 2006, 05:00:44 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #1 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....
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #2 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.
« Last Edit: March 17, 2006, 02:02:49 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #3 on: March 17, 2006, 03:09:58 am »
wonder if you can symlink a symlink....?
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #4 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.
« Last Edit: March 17, 2006, 03:59:41 am by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #5 on: March 17, 2006, 04:09:23 am »
there is Launcher.conf, it has a DocsTabConfig section  but its empty...
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #6 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.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

derekp

  • Full Member
  • ***
  • Posts: 154
    • View Profile
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #7 on: March 17, 2006, 10:55:57 am »
Look at this topic:
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.

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #8 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)
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #9 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.
« Last Edit: March 18, 2006, 02:16:54 am by Meanie »
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #10 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.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #11 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!
« Last Edit: March 18, 2006, 04:22:49 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

bam

  • Hero Member
  • *****
  • Posts: 1213
    • View Profile
    • http://thegrinder.ws
Hdd3 In Files Tab On Qtopia Desktop?
« Reply #12 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.
SL-C3100 current: Stock/Tetsu 18h
Socket BT CF Card
Linksys WCF-12 802.11b/Cheapie USB Ethernet

The Grinder