LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Thread Tools
Old 11-14-2009, 02:05 PM   #16
milomak
Member
 
Registered: May 2009
Posts: 55
Thanked: 1

Original Poster

[Log in to get rid of this advertisement]
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

Last edited by milomak; 11-14-2009 at 02:14 PM..
linuxdebian milomak is offline     Reply With Quote
Old 11-14-2009, 03:14 PM   #17
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,381
Thanked: 143
Quote:
you misread the label bit. it is -L label.
I did, sorry, but you got the message.

Quote:
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.
linuxubuntu tredegar is offline     Reply With Quote
Old 11-14-2009, 04:00 PM   #18
lewc
Member
 
Registered: Nov 2009
Distribution: Gentoo, Slackware or Debian
Posts: 76
Blog Entries: 1
Thanked: 5
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.
lewc is offline     Reply With Quote
Old 11-15-2009, 10:24 AM   #19
milomak
Member
 
Registered: May 2009
Posts: 55
Thanked: 1

Original Poster
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?

I have a LVM partition that is ext4 on my HDD.

So I tried seeing if fstab creates the same issue
Code:
UUID=0a18d897-0aab-4098-a711-12f5f8c943c9               /data/ext               ext4            relatime,exec   0 0
/dev/sdd1                                               /mnt/usb                ext4            relatime,exec   0 0
linux-qu47 ~ # mount -a
linux-qu47 ~ # chown -R :users /mnt/usb/
linux-qu47 ~ # exit
logout
milomak ~ $ cp /data/ext/yum.txt /mnt/usb/
cp: cannot create regular file `/mnt/usb/yum.txt': Permission denied
milomak ~ $ cp /data/ext/yum.txt /data/ext/yum-replace.txt
milomak ~ $

EDIT: The above done in openSUSE 11.2

Last edited by milomak; 11-15-2009 at 10:25 AM..
linuxsuse milomak is offline     Reply With Quote
Old 11-15-2009, 11:16 AM   #20
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,381
Thanked: 143
Quote:
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" ?

Could you try changing that line in fstab to:

Code:
/dev/sdd1   /mnt/usb  ext4   relatime,defaults   0 0
linuxubuntu tredegar is offline     Reply With Quote
Old 11-15-2009, 12:19 PM   #21
lewc
Member
 
Registered: Nov 2009
Distribution: Gentoo, Slackware or Debian
Posts: 76
Blog Entries: 1
Thanked: 5
there is definitely something we are being kept in the dark bout on this issue and I move to dismiss
lewc is offline     Reply With Quote
Old 11-15-2009, 06:15 PM   #22
milomak
Member
 
Registered: May 2009
Posts: 55
Thanked: 1

Original Poster
i have personally made no fundamental system changes to all 4 distros.

having used linux for 5 years, i feel somewhat slighted about the accusations.
linuxsuse milomak is offline     Reply With Quote
Old 11-15-2009, 09:42 PM   #23
kapz
Member
 
Registered: Mar 2009
Posts: 75
Thanked: 0
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.

Last edited by kapz; 11-15-2009 at 09:51 PM..
linux kapz is offline     Reply With Quote
Old 11-16-2009, 03:40 AM   #24
arubin
Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 13 (multilib)
Posts: 922
Thanked: 2
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.
windows_98_nt_2000 arubin is offline     Reply With Quote
Old 11-16-2009, 05:30 AM   #25
tredegar
Senior Member
 
Registered: May 2003
Location: London, UK
Distribution: Kubuntu6.06.1LTS (still excellent!). Kubuntu 8.04.1
Posts: 4,381
Thanked: 143
Maybe this helps (kubuntu 8.04.1):

mount lists my auto-mounted USB ext3 disk as:
Code:
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal,data=ordered)
And the perms on /media/disk are:
Code:
drwxrwxrwx 22 root root  4096 2009-11-09 09:39 disk
I have nothing in fstab relating to /dev/sdb

Both hald and udevd are running.
linuxubuntu tredegar is offline     Reply With Quote
Old 11-17-2009, 07:59 PM   #26
kapz
Member
 
Registered: Mar 2009
Posts: 75
Thanked: 0
Thanks for your replies arubin and tredegar.

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.

Last edited by kapz; 11-17-2009 at 08:13 PM..
linux kapz is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NTFS -> FAT32 mounting help adds2one Slackware 5 09-20-2005 03:07 PM
Trouble mounting FAT32 and NTFS under SuSE 9.2 nitroid Suse/Novell 2 12-07-2004 09:55 AM
Mounting NTFS & FAT32 DJWS Linux - Newbie 10 06-21-2004 07:55 AM
Mounting and reading NTFS and FAT32 patitions Forezt Linux - Software 10 02-25-2004 02:19 PM
Mounting different usb-sticks robertmarkbram Linux - Hardware 3 10-22-2003 08:16 AM


All times are GMT -5. The time now is 02:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration