FedoraThis forum is for the discussion of the Fedora Project.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi
I have used truecrypt as portable backup between OS including w$
Ubuntu works well. however, Fedora16 mounts my vfat harddisk partition readwrite but my pendrive vfat partition readonly, evan as root. I have tried many mount options from posts, specifying the filesystem, uid's, gid's, shmee-id's, you name it, I've had a go.
So I moved to realcrypt. That always prompts for a root password, then the truecrypt partitions mount as root only, with no ability to change- but now (at last) with read-write access.
I have setup sudoers and can start anything as user with su privileges, and the files can then be viewed by user, but now mounted read only. However, I feel that a line to allow access to whatever command launches realcrypt might work.
What I would like to achieve is any form of container encryption that I can move between platforms. I use scripts to backup, and the present rootonly access will cause problems.
I feel I'm getting close to a solution.
Is there something I can do to modify the way realcrypt starts up? At present I can see that usr/bin/realcrypt is only a link to /usr/bin/consolehelper but changing my sudoers to allow user to run commands realcrypt and consolehelper as root, in the same way as /usr/bin/truecrypt (btw the latter is only a filename, not a command) has had no effect. So I haven't been able to achieve the startup as user, which might solve the problem.
I hope someone has seen the same problem- but if not please point me in a direction to solve it.
If not, then I'll go outside the box and use encrypted tarballs to achieve the same, but I fear it'll be messy.
Last edited by sonichedgehog; 03-31-2012 at 02:19 PM.
Reason: Simplification- some of what I said was duplicated
Ubuntu works well. however, Fedora16 mounts my vfat harddisk partition readwrite but my pendrive vfat partition readonly, evan as root.
That's odd. If the pen drive is mounted ro at the HW level then no VFS option will turn ro into rw. Do you mount the pen drive at boot or do you insert it only when needed? Does it make a difference when you insert it? What's the pen drives layout? Do all partitions fsck OK? What's the subsystem that automounts devices? Is it the same in both distributions? And what's the /etc/fstab difference in both distributions? Any clues in 'dmesg'?
Thank you for the reply
Working through your queries:
I insert the pen drive when needed, but there is no difference if it is inserted when I boot up.
Layout:
Code:
Disk /dev/sdg: 8032 MB, 8032092160 bytes
248 heads, 62 sectors/track, 1020 cylinders, total 15687680 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xc296954c
Device Boot Start End Blocks Id System
/dev/sdg1 2048 10741759 5369856 83 Linux
/dev/sdg2 10743808 15687679 2471936 83 Linux
Disk /dev/mapper/truecrypt2: 5498 MB, 5498470400 bytes
255 heads, 63 sectors/track, 668 cylinders, total 10739200 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Result of fsck- I have noted from other posts that this type of issue occurs with damaged filesystems and that fsck repairs have been effective, but firstly believe that this has been used only on partitions that mount directly- fsck should only be forced on a truecrypt partition in read only mode, also my truecrypt partition is working on another OS. Here is the result:
partition 1 (fat32)
Code:
fsck from util-linux 2.20.1
Unsupported: replay_log()
Unsupported: check_volume()
Checking 108864 MFT records.
Unsupported cases found.
partition 2 (truecrypt, unmounted)
Code:
fsck from util-linux 2.20.1
Unsupported: replay_log()
Unsupported: check_volume()
Checking 10304 MFT records.
Unsupported cases found
partition 2 (truecrypt mounted)
Code:
fsck /dev/mapper/truecrypt2
fsck from util-linux 2.20.1
dosfsck 3.0.11, 24 Dec 2010, FAT32, LFN
There are differences between boot sector and its backup.
Differences: (offset:original/backup)
67:85/45, 68:21/79, 69:15/fe, 70:ca/b8
1) Copy original to backup
2) Copy backup to original
3) No action
? 3
etc, many queries relating to filenames
Subsystem that mounts devices:
I don't know how to access this info. I have seen references to "memstick" as the subsystem for ubuntu but have not found anything corresponding for fedora
You mention fstab, but I only mount using truecrypt favourites, therefore fstab has no entries relating to this issue- so I have shown the relevant part of mtab:
Thanks for the output, much appreciated. So as it seems Ubuntu mounts Truecrypt volume 2 OK and Fedora mounts the Realcrypt volume OK but at a the device-mapper level Fedora detects Truecrypt volume 2 contains VFAT errors... Now as far as I've read Realcrypt is basically modified Truecrypt so if Realcrypt reads Truecrypt volume 2 OK then maybe go with that? I don't know where to start troubleshooting Fedora device-mapper problems the quick and easy way.
Agreed, I'm not going to try anything else. Something in /usr/sbin/realcrypt will not allow any user except root to run Realcrypt, even with an appropriate sudoers entry. It would be necessary to examine the code, and neither eclipse nor HT has been able to interpret the file.
I have made significant changes since the above posts, by downloading kde. This requires the installation of a large number of applications, and I can only assume that one or more of these have changed the way Fedora handles removable media (recalling that there has never been a problem with mounting hd partitions, including encrypted ones). Perhaps something related to the trayicon for handling media?
I will not mark as solved as I don't know why the problem has gone away.
For now, I don't propose to do anything else, but if it will assist other users I will try to answer questions relating to this installation.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.