Fedora This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
04-04-2007, 01:55 AM
|
#1
|
Member
Registered: Mar 2007
Posts: 192
Rep:
|
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
|
|
|
04-04-2007, 02:52 AM
|
#2
|
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:
|
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.
|
|
|
04-04-2007, 06:00 PM
|
#3
|
Member
Registered: Mar 2007
Posts: 192
Original Poster
Rep:
|
[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.
|
|
|
04-04-2007, 06:32 PM
|
#4
|
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:
|
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.
|
|
|
04-04-2007, 09:10 PM
|
#5
|
Member
Registered: Mar 2007
Posts: 192
Original Poster
Rep:
|
I got this error.
"failed to access '/dev/sdb1': no such file or directory"
|
|
|
04-05-2007, 04:43 AM
|
#6
|
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:
|
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
|
|
|
All times are GMT -5. The time now is 11:07 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|