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 |
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
Due to network maintenance being performed by our provider, LQ will be down starting at 05:01 AM UTC. The exact duration of the downtime isn't currently known. We apologize for the inconvenience.
|
 |
|
08-02-2010, 01:00 AM
|
#1
|
|
Member
Registered: Jan 2009
Posts: 59
Rep:
|
chmod fails without error
I have an external USB hard drive (sdb1) mounted at /media/Iomega HDD.
When I try to do a chmod to a directory on this drive, chmod doesn't give me an error, but it doesn't change the privs - even when I'm root. Why is this?
Code:
root@d-desktop:/media/Iomega HDD# ls -lart
total 2176732
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# chmod -v a+rwx Unison
mode of `Unison' changed to 0777 (rwxrwxrwx)
root@d-desktop:/media/Iomega HDD# ls -larth
total 2.1G
drwx------ 1 dan dan 456 2010-08-01 16:24 Unison
root@d-desktop:/media/Iomega HDD# /usr/lib/klibc/bin/fstype /dev/sdb1
FSTYPE=unknown
FSSIZE=0
root@d-desktop:/media/Iomega HDD
Last edited by WantLinuxHelp; 08-02-2010 at 01:04 AM.
|
|
|
|
|
Click here to see the post LQ members have rated as the most helpful post in this thread.
|
08-02-2010, 01:22 AM
|
#2
|
|
Guru
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,861
Rep: 
|
Couldn't have anything to do with "FSTYPE=unknown", could it  ?
|
|
|
0 members found this post helpful.
|
08-02-2010, 01:23 AM
|
#3
|
|
Member
Registered: Jun 2009
Location: Texas
Distribution: Slackware
Posts: 605
|
If the filesystem type is NTFS, you may not be able to change the permissions without using a non-native driver for NTFS filesystems. That, or it may be mounted read-only. Can you write to the drive at all? What does the 'mount' command report?
Note that the type is showing as "UNKNOWN"
|
|
|
|
08-02-2010, 01:24 AM
|
#4
|
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 42,702
|
what is the filesystem of the device? It'd need to be a valid posix filesystem in order to hold the rights you want in the filesystem metadata. fstype there doesn't give one, but mount must do.
|
|
|
|
08-02-2010, 10:33 AM
|
#5
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by paulsm4
Couldn't have anything to do with "FSTYPE=unknown", could it  ?
|
I don't know. That's why I checked and included it in the posting.
|
|
|
|
08-02-2010, 10:35 AM
|
#6
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Thanks for the response.
Quote:
Originally Posted by foodown
If the filesystem type is NTFS, you may not be able to change the permissions without using a non-native driver for NTFS filesystems.
|
I saw that somewhere, which is why I tried the fstype command. Why does it say "unknown?" Remember, it is a USB device, so it was automounted. I don't know the file type. It was preconfigured. It might very well be NTFS (preconfigured for windows users).
Quote:
Originally Posted by foodown
That, or it may be mounted read-only. Can you write to the drive at all?
|
I can write to the drive.
Quote:
Originally Posted by foodown
What does the 'mount' command report?
|
Here's what it says
Code:
d@d-desktop:~$ mount
...
/dev/sdb1 on /media/Iomega HDD type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)
d@d-desktop:~$
I don't know what that means, though. Does it tell me anything useful?
Quote:
Originally Posted by foodown
Note that the type is showing as "UNKNOWN"
|
Yes, I know. That's why I included that. How do I find out what the file system type is???
|
|
|
|
08-02-2010, 10:37 AM
|
#7
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Thanks for the response.
Quote:
Originally Posted by acid_kewpie
what is the filesystem of the device? It'd need to be a valid posix filesystem in order to hold the rights you want in the filesystem metadata. fstype there doesn't give one, but mount must do.
|
OK. I included the output from the "mount" command in the response I just posted above this one. I don't see where it tells me anything about the file system type.
|
|
|
|
08-02-2010, 10:38 AM
|
#8
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Maybe I should just reformat the entire drive? If so, what should I use? ext4? It's a 1 Tera byte drive (999 Gb)
|
|
|
|
08-02-2010, 10:50 AM
|
#9
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by WantLinuxHelp
Maybe I should just reformat the entire drive? If so, what should I use? ext4? It's a 1 Tera byte drive (999 Gb)
|
It took me a few years of dual booting Windows/Linux to get to the point of where I'm completely off of Windows. I haven't booted Windows now for 6 months or maybe a year. However, just in case, I want the external drive to be able to be used by windows. If I reformat it, is there a filesystem type I could use that meets all these criteria: - Readable and writeable by both OS's (Linux Ubuntu 10.04 and Windows XP)
- Allows chmod from Linux
- Supports a 1Tb drive
Last edited by WantLinuxHelp; 08-02-2010 at 11:40 AM.
|
|
|
|
08-02-2010, 01:32 PM
|
#11
|
|
Guru
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 6,002
|
Quote:
1. Readable and writeable by both OS's (Linux Ubuntu 10.04 and Windows XP)
2. Allows chmod from Linux
3. Supports a 1Tb drive
|
1] = NTFS FAT32 or FAT16
2] = any linux filesystem
3] = ext2 ext3 ext4 reiser .....
Please do not cross-post / double-post your Q: I am going around in a loop here
The problem is that you want linux's chmod to apply to a non-linux filesystem (NTFS). This isn't going to work: NTFS (AFAIK) has no concept of rwxrwxrwx.
I believe there is a recently released win program that will enable win to read ext3 partitions, but as I haven't used win in years, I don't use it and have have forgotten what it might be called. "You know who" is your friend
So, find the win utility, install it, then format the drive as ext3: chmod will work on it (from linux) but win is not likely to understand what that means, or even obey the restrictions that work correctly with linux.
So I think your requirements (1,2,3) are mutually exclusive. Sorry.
An alternative would be to format the drive as ext3/4 and then allow win to access it over your network by running samba on your linux box. This would be my preferred choice.
HTH.
|
|
|
2 members found this post helpful.
|
08-02-2010, 01:48 PM
|
#12
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by WantLinuxHelp
How do I find out what the file system type is???
|
I found out how to determine this. Gparted says it is NTFS. It's strange, though. Gparted says it cannot read the drive nor can it find the mount point.
|
|
|
|
08-02-2010, 01:56 PM
|
#13
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by tredegar
Quote:
Originally Posted by WantLinuxHelp
- Readable and writeable by both OS's (Linux Ubuntu 10.04 and Windows XP)
- Allows chmod from Linux
- Supports a 1Tb drive
|
- = NTFS FAT32 or FAT16
- = any linux filesystem
- = ext2 ext3 ext4 reiser .....
|
Thanks, HTH, for this and the other information in this post.
Quote:
Originally Posted by tredegar
Please do not cross-post / double-post your Q: I am going around in a loop here 
|
I didn't. The other question was written by someone else in 2006. I did post a link to this thread in the other thread stating that more information was here, since that one was never solved. Sorry if that was confusing.
Last edited by WantLinuxHelp; 08-02-2010 at 01:57 PM.
|
|
|
|
08-02-2010, 02:21 PM
|
#14
|
|
Member
Registered: Jan 2009
Posts: 59
Original Poster
Rep:
|
Quote:
Originally Posted by tredegar
3] = ext2 ext3 ext4 reiser .....
|
I found that NTFS has a 16Eb partition size limit (that's appx 16,000 Tb). Ubuntu forums had that here:
http://ubuntuforums.org/archive/inde...t-1497666.html
|
|
|
|
08-03-2010, 09:12 AM
|
#15
|
|
Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 5,294
|
If you enter the drive in /etc/fstab, and enter your info
/dev/sda /mnt/hd auto noauto,user 1 2
/wandering
The user part allows users play with it. Writing NTFS is a black art, since windows is supposed to spot if you change anything and go crazy - that was the idea behind ntfs back in the days when M$ thought it was OK for an OS to do a BSOD. Now it's a distinct (and repeated) embarrassment that they try to minimize.
/returning to subject
Don't leave it ntfs; it's hassle writing it from linux. Use fat32 - no hassle for any OS
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 07:29 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
|
|