SDHC Card Fun

Discussion in 'Acer Aspire One' started by NeilB, Sep 27, 2008.

  1. NeilB

    RockDoctor

    Joined:
    Aug 21, 2008
    Messages:
    963
    Likes Received:
    0
    Location:
    Minnesota, USA
    If it works ... fix it until it breaks

    As for running blkid - it tends to use it's previously-collected info. Run
    Code:
    blkid -g
    to get rid of the junk before running
    Code:
    blkid
    . Or, if you need te junk for some reason, run
    Code:
    blkid -c /dev/null
    . Either method should give you valid results.
     
    RockDoctor, Sep 30, 2008
    #21
  2. NeilB

    Ace_Rimmer

    Joined:
    Aug 16, 2008
    Messages:
    103
    Likes Received:
    0
    OH @#@$!*#, I'm still not out of the woods!

    Turns out that with my changes /media/disk is owned by root (of course!) and I can't write to it. I opened a root terminal from /media and did chmod a+rw -vR disk, which reported that everything had been changed to 0777. However, going to /media/disk and doing ls -lh still shows everything as -rwxr-xr-x 1 root root .... chgrp and chown were reported as "not allowed."

    Once again I don't know where to go from here. Guess I will put /etc/fstab and /etc/.../xfce4-session.rc back the way they were for now.

    :cry:
     
    Ace_Rimmer, Sep 30, 2008
    #22
  3. NeilB

    kevin

    Joined:
    Sep 18, 2008
    Messages:
    274
    Likes Received:
    0
    Is your card formatted vfat? If it is, then the problem is that the vfat system does not understand ownership, and the owner of _all_ files on the card will be the account that did the mount operation. You do it as root, it ends up mounted as root. You can get around this problem by adding the option `user' to the flags section in /etc/fstab. Then the files and directories will still be owned by the user that does the mount, but now non-privileged users can mount as well.

    When Thunar mounts a filesystem, I believe it does an ordinary mount as the non-priv user if the relevant entry for UUID is in the fstab. Otherwise it relies on gnone-vfs (or something) to create something in /media and do the mount in some sleight-of-hand way. Anyhow, if I have UUID=xxx in fstab and the `user' flag, then I can either do `mount /media/disk' from the prompt or just click the `My disk' thing in Thunar, and it gets mounted.

    To be honest, I'm not sure how fragile this set-up is, or what sort of minor changes elsewhere in the system could break it. This whole storage expansion shebang is done by Acer-specific tweaks inside Thunar, as far as I can see. Heaven knows what else they've changed.
     
    kevin, Sep 30, 2008
    #23
  4. NeilB

    Ace_Rimmer

    Joined:
    Aug 16, 2008
    Messages:
    103
    Likes Received:
    0
    Just came back from doing a bit of mowing, and while I was out it occurred to me that since root had created /media/disk, that might be the source of the problem.

    I started over and this time created /media/disk as user, did the mount, and all was well.

    Rebooted and I am back to root owning /media/disk and all files. I changed fstab to defaults,user for the SD card and rebooted, but the problem persists.

    Maybe I should format the card as fat32? This is getting interesting! Your comment about fragility is, I think, a good one. Might do well to leave this alone and not risk some future update breaking everything!
     
    Ace_Rimmer, Sep 30, 2008
    #24
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.