LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 04-04-2007, 01:55 AM   #1
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Rep: Reputation: 17
External USB hardrive permission


Fedora Core 6 autmounts my USB external hard drive in /media/disk. If I go to that folder I see an invisible file that was created that is similar to /etc/fstab for the external device. It has “hal” in its name.

I need to change the ownership of the external drive and I use the “chown –R username folder_I_want_to_change”. This does nothing. It remains the same owner. I then tried change group and chmod 0777 all with the recursion tag and they do nothing.

I need to mount this external drive so all can read, write and exec. I have search and found nothing. This seem to be a very strange thing since it does not exist in the /etc/fstab

I think this has to do with “HAL”

Many thanks in advance Lex
 
Old 04-04-2007, 02:52 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
As a suggestion try as root adding an entry in /etc/fstab for the device then, for example;

Code:
/dev/sdb1               /media/usb1             auto    noauto,users,rw 0 0
Make sure the mountpoint does exist before mounting any media; mkdir /media/usb1

Adjust to match your actual external USB drive configuration. See the output from the typed command (as root): 'tail /var/log/messages' minus the single quotemarks.
 
Old 04-04-2007, 06:00 PM   #3
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
[root@localhost media]# tail /var/log/messages
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5013)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 18144)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5089)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5095)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5126)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5128)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5132)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 5170)
Apr 4 18:57:59 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 6061)
Apr 4 18:58:00 localhost ntfs-3g[3895]: Skipping unrepresentable filename (inode 6932)

This does not work.

This is what I get when I take
"/dev/sdb1 /media/usb1 auto noauto,users,rw 0 0"
out of the fstab and set it back to the original format.

tail /var/log/messages
Apr 4 19:10:17 localhost kernel: sd 2:0:0:0: Attached scsi generic sg0 type 0
Apr 4 19:10:18 localhost ntfs-3g[4180]: Version 1.328
Apr 4 19:10:18 localhost ntfs-3g[4180]: Mounted /dev/sda1 (Read-Write, label "dont_fail", NTFS 3.1)
Apr 4 19:10:18 localhost ntfs-3g[4180]: Options: noatime,rw,noexec,nosuid,nodev,silent,allow_other,nonempty,default_permissions,fsname=/dev/sda1,blkdev,blksize=4096
Apr 4 19:10:18 localhost hald: mounted /dev/sda1 on behalf of uid 501
Apr 4 19:10:20 localhost ntfs-3g[4180]: Skipping unrepresentable filename (inode 4359)
Apr 4 19:10:20 localhost ntfs-3g[4180]: Skipping unrepresentable filename (inode 4471)
Apr 4 19:10:20 localhost ntfs-3g[4180]: Skipping unrepresentable filename (inode 15127)
Apr 4 19:10:20 localhost ntfs-3g[4180]: Skipping unrepresentable filename (inode 11281)
Apr 4 19:10:21 localhost ntfs-3g[4180]: Skipping unrepresentable filename (inode 3889)

Last edited by lindylex; 04-04-2007 at 06:16 PM.
 
Old 04-04-2007, 06:32 PM   #4
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Then edit the /etc/fstab example I gave you...........

Code:
/dev/sdb1               /media/usb1		ntfs-3g auto,users,uid=0,gid=500,umask=000,rw	0 0

Sure is nice to get the missing KEY piece of information, you failed to mention the fact that this external USB drive is formatted as NTFS.
 
Old 04-04-2007, 09:10 PM   #5
lindylex
Member
 
Registered: Mar 2007
Posts: 192

Original Poster
Rep: Reputation: 17
I got this error.

"failed to access '/dev/sdb1': no such file or directory"
 
Old 04-05-2007, 04:43 AM   #6
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You have two examples, use them as guides not the absolute solution or answer to the issue.

If your external USB hard drive is not attached when the system boots then using the auto option (see second example) is not a good idea, use the noauto option (see first example).

For the details for both example please review;

man fstab
man mount
 
  


Reply



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
change file permission external usb hdd tripled2006 Ubuntu 1 01-15-2007 03:15 PM
maxtor usb external hardrive issues mykyl Linux - Hardware 6 11-01-2006 04:15 PM
Permission issues after installing external USB disk drive Maarten_Holland Linux - Newbie 2 02-01-2006 09:27 AM
usb add on card mount external hardrive Peds222 Red Hat 1 09-10-2004 07:06 AM
Red hat 7.3 + 250GB usb external hardrive vicky4u_hyd Linux - Hardware 0 07-11-2004 02:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 09:47 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration