LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux 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
 
LinkBack Search this Thread
Old 11-14-2009, 02:05 PM   #16
milomak
Member
 
Registered: May 2009
Posts: 85

Original Poster
Rep: Reputation: 17

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.
 
Old 11-14-2009, 03:14 PM   #17
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 11-14-2009, 04:00 PM   #18
lewc
Member
 
Registered: Nov 2009
Distribution: Gentoo, Slackware or Debian
Posts: 60
Blog Entries: 1

Rep: Reputation: 18
content removed

Last edited by lewc; 11-27-2009 at 04:56 PM.
 
Old 11-15-2009, 10:24 AM   #19
milomak
Member
 
Registered: May 2009
Posts: 85

Original Poster
Rep: Reputation: 17
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.
 
Old 11-15-2009, 11:16 AM   #20
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
 
Old 11-15-2009, 12:19 PM   #21
lewc
Member
 
Registered: Nov 2009
Distribution: Gentoo, Slackware or Debian
Posts: 60
Blog Entries: 1

Rep: Reputation: 18
content removed

Last edited by lewc; 11-27-2009 at 04:56 PM.
 
Old 11-15-2009, 06:15 PM   #22
milomak
Member
 
Registered: May 2009
Posts: 85

Original Poster
Rep: Reputation: 17
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.
 
Old 11-15-2009, 09:42 PM   #23
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 187

Rep: Reputation: 16
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.
 
Old 11-16-2009, 03:40 AM   #24
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 13.37 (multilib)
Posts: 1,043

Rep: Reputation: 41
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.
 
Old 11-16-2009, 05:30 AM   #25
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 11-17-2009, 07:59 PM   #26
kapz
Member
 
Registered: Mar 2009
Location: kernel space
Distribution: Slackware_x64
Posts: 187

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 09:17 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration