Author Topic: "hidden" Documents Menu  (Read 6255 times)

Harpalus

  • Newbie
  • *
  • Posts: 7
    • View Profile
"hidden" Documents Menu
« on: September 21, 2007, 05:50:41 pm »
I've had this problem as long as I can remember. However, for almost that long I've been using OpenBSD on my Zaurus (it's dual-boot), so when I recently started using Cacko again I noticed the annoyance and now I'm posting it here.

It seems that the "Documents" folder, ie /home/zaurus/Documents, is unaccessible to the Qtopia gui. I can't browse my files there under the 'Files' tab, when I'm changing wallpaper in Plasterer or the Appearance applications I can't browse there either. (I CAN change my wallpaper, but only if I manually type out the path myself. Read access to the files, but not the folders? They have the same permissions, though...)

It works fine in the console, though. I can browse there, whathaveyou...

My /home/zaurus/Documents folder is not a symlink anywhere else. The permissions are zaurus:qpe, and of course, 755 permissions set for the folder and all contents.

/home/root/Documents seems to link right back to /home/zaurus/Documents.

I am entirely unsure what it's supposed to be, or how I can allow my Qtopia applications access to this folder. It's not so big a deal for me - I'm much more of a console guy anyways...but as it currently stands I can't really use many of the Qtopia applications properly.

pengunassasin

  • Newbie
  • *
  • Posts: 18
    • View Profile
    • http://
"hidden" Documents Menu
« Reply #1 on: September 22, 2007, 05:29:37 pm »
Quote
I've had this problem as long as I can remember. However, for almost that long I've been using OpenBSD on my Zaurus (it's dual-boot), so when I recently started using Cacko again I noticed the annoyance and now I'm posting it here.

It seems that the "Documents" folder, ie /home/zaurus/Documents, is unaccessible to the Qtopia gui. I can't browse my files there under the 'Files' tab, when I'm changing wallpaper in Plasterer or the Appearance applications I can't browse there either. (I CAN change my wallpaper, but only if I manually type out the path myself. Read access to the files, but not the folders? They have the same permissions, though...)

It works fine in the console, though. I can browse there, whathaveyou...

My /home/zaurus/Documents folder is not a symlink anywhere else. The permissions are zaurus:qpe, and of course, 755 permissions set for the folder and all contents.

/home/root/Documents seems to link right back to /home/zaurus/Documents.

I am entirely unsure what it's supposed to be, or how I can allow my Qtopia applications access to this folder. It's not so big a deal for me - I'm much more of a console guy anyways...but as it currently stands I can't really use many of the Qtopia applications properly.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167751\"][{POST_SNAPBACK}][/a][/div]


nermanermanermanerma... *magic happens!*

What version of QTopia are you running? what version of Cacko? are you RUNNING OFF THE SD CARD??? (*spastic sersiure*)
if the SD card is running, check that sdmgr or cardmgr is running -- if it is, kill it. if not, start it to see if it sees the sd card.
Cacko/Crow rom from Schwag (rom --.--) on an SL-5500 with
AmbiCom 802.11b wifi card (CF) + 1gb SanDisl SD Card (/home/) Usb-storage_1.0.0_arm and sudo_2.3_unofficial for mounting /home/ as a removable ext2 disk
ext2ifs for WinXP QTopia Desktop 2 (some version)
HancomOffice (Word, Sheet, Presenter) from Stock SHARP rom (ripped by hand!)

Harpalus

  • Newbie
  • *
  • Posts: 7
    • View Profile
"hidden" Documents Menu
« Reply #2 on: October 01, 2007, 04:22:54 pm »
Quote from: pengunassasin
Quote
I've had this problem as long as I can remember. However, for almost that long I've been using OpenBSD on my Zaurus (it's dual-boot), so when I recently started using Cacko again I noticed the annoyance and now I'm posting it here.

It seems that the "Documents" folder, ie /home/zaurus/Documents, is unaccessible to the Qtopia gui. I can't browse my files there under the 'Files' tab, when I'm changing wallpaper in Plasterer or the Appearance applications I can't browse there either. (I CAN change my wallpaper, but only if I manually type out the path myself. Read access to the files, but not the folders? They have the same permissions, though...)

It works fine in the console, though. I can browse there, whathaveyou...

My /home/zaurus/Documents folder is not a symlink anywhere else. The permissions are zaurus:qpe, and of course, 755 permissions set for the folder and all contents.

/home/root/Documents seems to link right back to /home/zaurus/Documents.

I am entirely unsure what it's supposed to be, or how I can allow my Qtopia applications access to this folder. It's not so big a deal for me - I'm much more of a console guy anyways...but as it currently stands I can't really use many of the Qtopia applications properly.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=167751\"][{POST_SNAPBACK}][/a][/div]


nermanermanermanerma... *magic happens!*

What version of QTopia are you running? what version of Cacko? are you RUNNING OFF THE SD CARD??? (*spastic sersiure*)
if the SD card is running, check that sdmgr or cardmgr is running -- if it is, kill it. if not, start it to see if it sees the sd card.

Apologies for the slow response. I had a small vacation, then completely forgot I'd opened a forum post here.

I'm running the full version of Cacko 1.23. It's not running off an SD card, it's running in flash. I rarely even have an SD card inserted - I've been avoiding it as habit as the OpenBSD version I'm using doesn't work well with it. (I'll have to upgrade, the new version does, but that's off-topic and not important)

Would a dmesg be helpful? Any information I can provide? Again, I'm running a full Cacko 1.23 install, with small modifications by mathemajikian to make it avoid the microdrive. Perhaps one of his modifications is causing the problem? It certainly seems like a bug, because my permissions are set as they should be. (from what I can tell)

EDIT: This is on a borzoi, Zaurus C3100.
« Last Edit: October 01, 2007, 04:23:32 pm by Harpalus »

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
"hidden" Documents Menu
« Reply #3 on: October 01, 2007, 05:14:10 pm »
On my SL-C3100 running Cacko 1.23, /home/zaurus/Documents has always been a symlink to /hdd3/Documents
The actual files/folders reside on the hard drive (/hdd3/Documents)
My /home/root/Documents is linked to /home/zaurus/Documents
Maybe that's why you don't have access to these files/folders, check your /hdd3
The default format for /hdd3 is FAT
This is what my mount command gives for my hard drive:
/dev/hda1 on /hdd1 type ext3 (ro,noatime)
/dev/hda2 on /hdd2 type ext3 (ro,noatime)
/dev/hda3 on /hdd3 type vfat (ro,noatime)
« Last Edit: October 01, 2007, 05:15:12 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

Harpalus

  • Newbie
  • *
  • Posts: 7
    • View Profile
"hidden" Documents Menu
« Reply #4 on: October 01, 2007, 08:23:45 pm »
Quote from: Jon_J
On my SL-C3100 running Cacko 1.23, /home/zaurus/Documents has always been a symlink to /hdd3/Documents
The actual files/folders reside on the hard drive (/hdd3/Documents)
My /home/root/Documents is linked to /home/zaurus/Documents
Maybe that's why you don't have access to these files/folders, check your /hdd3
The default format for /hdd3 is FAT
This is what my mount command gives for my hard drive:
/dev/hda1 on /hdd1 type ext3 (ro,noatime)
/dev/hda2 on /hdd2 type ext3 (ro,noatime)
/dev/hda3 on /hdd3 type vfat (ro,noatime)

Maybe that's the problem. My hard drive, hdd2 and hdd3, are taken up by BSD. /home is mounted on /dev/mtdblock3.

Don't tell me that the GUI keeps looking for /hdd3/Documents instead of /home/zaurus/documents....

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
"hidden" Documents Menu
« Reply #5 on: October 01, 2007, 08:36:44 pm »
Quote from: Harpalus
Don't tell me that the GUI keeps looking for /hdd3/Documents instead of /home/zaurus/documents....
Yes that is where the original folders/files in Sharp ROM are located.
This is/was where all that additional stuff from Sharp is/was located. I have deleted most of it, but a lot of qtopia programs use the folder structure that Sharp placed there originally. If you deleted these folders, some qtopia apps re-create them, (that is if they have access to this location) which in your case they don't.
Cacko also uses this location on a C3100 for these files folders.
The wallpaper files are located here also /Documents/Image_Files/wallpaper.
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

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
"hidden" Documents Menu
« Reply #6 on: October 02, 2007, 04:54:05 am »
Quote
Hello! I was hoping that perhaps you would be willing to take a look at this forum thread?

https://www.oesf.org/forum/index.php?showtopic=24724

It's a Cacko problem, but it's using your modified files, and I'm thinking that it's an issue related to the lack of a microdrive.
The following is from my original post. Read it carefully:

OpenBSD/Cacko Dual Boot

Quote
You will be prompted during the boot process to select the OS you wish to load. Type either openbsd or cacko (for now this is case sensetive); however, I suggest booting Cacko first. Once Cacko has loaded open konsole and check to see that the Documents directory is not a symbolic link. It will be a light blue color if it is and dark blue if it isn't.

# ls or ls -l
If it is a symbolic link then:
# rm -R Documents
and then reboot into Cacko once more to check that the Documents directory is now static,ie, not light blue.

Once everything is ok with the Documents directory I suggest changing the zaurus and root user account passwords.

Your documents directory is still symbolically linked to a directory that no longer exists; hence, you'll need to rm -R Documents and then reboot. The Documents directory will automatically be recreated with the appropriate permissions and linking after rebooting. This will fix the problem your currently encountering.
« Last Edit: October 02, 2007, 05:32:11 am by mathemajikian »

Harpalus

  • Newbie
  • *
  • Posts: 7
    • View Profile
"hidden" Documents Menu
« Reply #7 on: October 02, 2007, 08:52:40 am »
Quote from: mathemajikian
Quote
Hello! I was hoping that perhaps you would be willing to take a look at this forum thread?

https://www.oesf.org/forum/index.php?showtopic=24724

It's a Cacko problem, but it's using your modified files, and I'm thinking that it's an issue related to the lack of a microdrive.
The following is from my original post. Read it carefully:

OpenBSD/Cacko Dual Boot

Quote
You will be prompted during the boot process to select the OS you wish to load. Type either openbsd or cacko (for now this is case sensetive); however, I suggest booting Cacko first. Once Cacko has loaded open konsole and check to see that the Documents directory is not a symbolic link. It will be a light blue color if it is and dark blue if it isn't.

# ls or ls -l
If it is a symbolic link then:
# rm -R Documents
and then reboot into Cacko once more to check that the Documents directory is now static,ie, not light blue.

Once everything is ok with the Documents directory I suggest changing the zaurus and root user account passwords.

Your documents directory is still symbolically linked to a directory that no longer exists; hence, you'll need to rm -R Documents and then reboot. The Documents directory will automatically be recreated with the appropriate permissions and linking after rebooting. This will fix the problem your currently encountering.

Now I'm a bit confused. I did that, it's not a symbolic link anywhere -- ie, it's dark blue and ls -l shows that it's a real directory, as per the guide. "If it ~is~ a symbolic link then:"

Apologies if I'm missing something. It's not terribly important though. I'll delete it again when I get off work, maybe that will fix the matter.
« Last Edit: October 02, 2007, 08:54:08 am by Harpalus »

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
"hidden" Documents Menu
« Reply #8 on: October 03, 2007, 06:35:44 am »
Quote from: Harpalus
Now I'm a bit confused. I did that, it's not a symbolic link anywhere -- ie, it's dark blue and ls -l shows that it's a real directory, as per the guide. "If it ~is~ a symbolic link then:"

Apologies if I'm missing something. It's not terribly important though. I'll delete it again when I get off work, maybe that will fix the matter.
Let us know how it turns out.

Harpalus

  • Newbie
  • *
  • Posts: 7
    • View Profile
"hidden" Documents Menu
« Reply #9 on: October 03, 2007, 09:45:43 am »
Well, I'm stuck. Started out recursive grepping for Documents in /etc. Of course, Cacko grep has no recursive switch, grumble grumble grumble...

find | xargs grep -iH Documents in /etc. Found a reference to /hdd3/Documents. First guess is that the Qtopia GUI looks inside /hdd3/Documents, and that's why it's coughing up. It's the only guess I have to go by.

After a lot of find | xargs grep -iH hdd 2>/dev/null in /etc, I commented out all the nonsense that insisted on mounting the hard drive. There was still some left. The current plan, the only one I have, is to stop Cacko from mounting the hard drive, period -- let's stop that nonsense, it can't read it anyways. Then make /hdd3 a normal directory, and ln -s /hdd3/Documents to /home/zaurus/Documents. A poor quality, hackish solution, complete rubbish. Should fit in wonderfully in Sharp Linux/Qtopia.

So all the commands mounting the hard drives have been removed. Still no luck. Grumble, grumble. Ok, so -- the hddmount command looks interesting. I remove it -- reboot, D+B, mount /dev/mtdblock2 and move /sbin/hddmount to /sbin/hddmount.del. So at this point, as far as I can tell, all the internal commands to mount /hdd1, /hdd2, and /hdd3 are gone. There's still mount, of course, but no startup scripts used it for the hard drives that I can find. Nothing points to it, no commands to mount them, nothing. They're not on /etc/fstab or mtab. They never were, actually, but nevertheless they were mounted. (Unsuccessfully, of course, it's can't read OpenBSD partitions, and even if it could it seems to be looking for the default partition build anyways, to hell with what's actually there.)

/hdd1, /hdd2, and /hdd3 are still there, mocking me. I hate them. Again, my best guess is that the GUI is coded to look inside /hdd3/Documents. Can't imagine why, but I can't think of anything else. Besides, those three mount points represent, to me, a flaw in the system. Neither do I understand why there's an hddmount command at all, when clearly it doesn't need it or use it. (In my day, we just used the mount command...) I mean, it's not even there anymore, yet the hard drive is still mounted, unsuccessfully.

To illustrate what I mean:

$ ls /hdd2
NotAvailable
$

I'd descend into /usr, but it's quite a mess in there and grep dies a painful death every time it tries to recursively venture inside. Perhaps there's an option I can set in qpe.conf, qpecustom.conf, or sharpqpe.conf to ensure it looks inside /home/zaurus/Documents instead of wherever the hell it's currently looking?

Any suggestions?

EDIT: The simplest solution works best sometimes.  My adventures with hdd2, hdd3 nonsense notwithstanding, mounting /dev/mtdblock3 to /mnt/ide completely fixes the problem. It looks in /mnt/ide, not /hdd3/Documents. This successfully adds an "Internal Disk" option to the Files tab. May want to add this into the guide, mathemajikian.

SECOND EDIT: ...more adventures. Nothing's ever simple. The solution as I just stated -- first, I had no write access. Oh yes, /mnt/ide is root:root. Fix that, sudo chown zaurus:qpe ide. Now I have write access, but it's creating a new Documents folder. (/home/Documents) It seems normal Cacko mounts /home/zaurus to /mnt/ide, not /home to /mnt/ide.

Tried to fix by linking /home/zaurus to /mnt/ide, removing /mnt/ide from fstab. Rebooted. Now have a Japanese Cacko.    Root filesystem copied into /home/zaurus. Hosed Cacko. Completely unsure what happened. Must have mounted /home as I previously told it to. But the new /mnt/ide points to /home/zaurus, so it mounted /home to /home/zaurus. But I removed that line from fstab, and I'm 100% sure I saved it. Sneaky bastard, Cacko put it back in or something, mounted anyways..

I'll have to reflash. Bloody Cacko. Previous solution can still be used, for the dual-boot people, you just have to put up with a /home/Documents folder until I can fix this mess.
« Last Edit: October 03, 2007, 03:46:45 pm by Harpalus »

mathemajikian

  • Sr. Member
  • ****
  • Posts: 301
    • View Profile
    • http://exit3.i-55.com/~xikon/openbsdzaurus.html
"hidden" Documents Menu
« Reply #10 on: October 03, 2007, 05:36:02 pm »
I just tried the method I stated earlier and it worked fine. I'm not sure why it's giving you a hard time. Maybe a re-flash will sort things out.