Mounting of USB sticks (not formatted as FAT32/NTFS)
Linux - GeneralThis forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
tredegar - you misread the label bit. it is -L label.
but in any event, I am beginning to think it might be that I have not created a partition (eg sdd1). I will do that now to check.
EDIT: Creating a primary partition hasn't helped
# mkfs.ext4 /dev/sdd1 -L euroTEK
Code:
mke2fs 1.41.9 (22-Aug-2009)
Filesystem label=euroTEK
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
62976 inodes, 251712 blocks
12585 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=260046848
8 block groups
32768 blocks per group, 32768 fragments per group
7872 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
# exit
$ cd /media/euroTEK/
/media/euroTEK $ echo "Test" > test
[/quote]
bash: test: Permission denied[/quote]
I think what would be useful is if you (tredegar and lewc) posted your udev
I think what would be useful is if you (tredegar and lewc) posted your udev
Not so easy: /etc/udev/rules.d/ is 39 files and 78KB. So I don't think LQ will permit this. I do not have the time to go through all of them to find the setting that you (maybe) have mis-configured.
Because you have tried different distros, with no success and I have used several, always with success, I think there must be something else going on. Meanwhile, I need to eat & sleep on it.
It would be helpful if you could post your Location (see mine, at left?) so I know your timezone. I could woof you the udev rules files (Don't worry, you don't have to install anything), but my IP is dynamic (doesn't change that often) and we'd have to time things right.
well being that I am using a stock udev mine would be that which comes with gentoo, but i have used ubuntu, debian, redhat(fedora), suse, mandriva and many others so I suppose it would be easier for you to install a stock sytsem, I'm really not convinced this is not your doing as nobody else has come forward as having this problem or a solution, I once had an ntfs drive not mount because of the chown and chmod issue however I have posted how to fix that.
the thing is that i have not touched any udev files across all of the distros I run. So I fail to see how it can be a user issue. Have I formatted my USB stick the same way you have? As root? with the same options?
the thing is that i have not touched any udev files across all of the distros I run.
Then your system should be running as normally as ours do.
I wonder if there is something fundamental, and important, that you have forgotten to tell us. For example that you are running on a "Virtual Machine" ?
Hi, I use Arch(KDE4) and Slack(Gnome) and m trying to mount my external USB HDD. My external HDD has three partitions, 2 NTFS and 1 ext4. Whenever I plugin the HDD in both DE's the NTFS partitions are mounted as read/write automatically(by HAL or Udev) but ext4 is mounted as read only(for normal users, only root has read/write access).
So I believe, if anyone who uses a pen drive or USB HDD, which are not fixed and hence volatile, they can't be added to fstab. Hence it most certainly it does not depend upon what "Distro" you use,but depends on Policykit(Thats what I've concluded from error messages given by Dolphin. Freeorg.desktop prevented..bla-bla...). Now I've been surfing all day trying to "control" HAL or whatever that takes care of automounts but couldn't find anything useful. If anyone has some valid info then please help us all.
P.S - I tried the HAL code in ArchWiki, but that still wont let me mount ext4 read/write as normal user.
I would again suggest the workaround that I suggested earlier. As root, create a folder in the ext3/4 drive. Then either chown it to your user or chmod it so that users have write access. You should be able to write to the folder.
arubin - chmod(ing) a read write directory worked fine for me(had to move all data in one dir). But it has to be done recursively.
tredegar - I did chmod 777 to the media/Maxtor directory and works fine after mounting and unmounting it.
In both the cases, what if the pen drives keep changing and the directory under /media/'random-name' also keeps changing?? Is there any hidden group or any specification in hal to mount USB drives, the way I want them to be mounted(ro or rw like in fstab)?
*Edit - Removed a stupid Q about how to chown. *Edit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.