Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
you see here the lrwxrwxrwx bit for "Downloads/".
That tells you what permissions and some other stuff is set.
It says,
Code:
l = i'm a link to somewhere else
r = the owner can read me
w = the owner can write to me
x = the owner can execute me
r = the group can read me
w = the group can write to me
x = the group can execute me
r = everybody else can read me
w = everybody else can write to me
x = everybody else can execute me
So why you ask can't you "chown" or "chmod" me, well..... it's cause i'm a link, all standard links are created like me. What you need to do is find where i point to. Then see what permissions are set to were i point and change them.
Try running "ls -alh" in the directory where i am, then it should show you where i point to.
oh, and if my "l" was a "d" then i'd be a directory.
and another oh, tis not really a question for the networking forum, please use linux general for something like this.
Last edited by snowtigger; 06-15-2008 at 03:49 AM.
But it raised another question for me......
It's that
This folder is mounted for a external USB 120GB HDD which will be used to bt on my nas. When I start the BT software, there's no connected peers found. But If i use other drives on the nas for bting, it's ok. Do you know what's the problem is??? I just thinking of the permission problem but you've shown me that it isn't. Can you or any bros teach me / help me to solve it??????
hummmm i don't know anything about BT stuff. It does sound like its just not connecting right.
Or it could still be a problem with being able to write to the drive. Although the links says everybody can read/write that does not mean you have the right permissions on the mount point.
A little example, this is part of the output from "ls -alh" i was in /usr at the time.
our trusty old friend mr. FAT32.
The default way of mounting a FAT32 formatted device is that it only gives root access. But i'm wondering why it has only done it to this disk when you say you have plugged others in before.
But anyways, if you would let us see the out put of "mount" and the contents of "fstab" then i'm sure we can sort this out.
Then how can I format my external usbhdd into ext3 since my nas do not have the command mkfs. Instead, there's a command called mkfs.xfs. When I type mkfs.xfs --help, it shows the following:
no device name given in argument list
Usage: mkfs.xfs
/* blocksize */ [-b log=n|size=num]
/* data subvol */ [-d agcount=n,agsize=n,file,name=xxx,size=num,
(sunit=value,swidth=value|su=num,sw=num),
sectlog=n|sectsize=num,unwritten=0|1]
/* inode size */ [-i log=n|perblock=n|size=num,maxpct=n,attr=0|1|2]
/* log subvol */ [-l agnum=n,internal,size=num,logdev=xxx,version=n
sunit=value|su=num,sectlog=n|sectsize=num,
lazy-count=0|1]
/* label */ [-L label (maximum 12 characters)]
/* naming */ [-n log=n|size=num,version=n]
/* prototype file */ [-p fname]
/* quiet */ [-q]
/* realtime subvol */ [-r extsize=num,size=num,rtdev=xxx]
/* sectorsize */ [-s log=n|size=num]
/* version */ [-V]
devicename
<devicename> is required unless -d name=xxx is given.
<num> is xxx (bytes), xxxs (sectors), xxxb (fs blocks), xxxk (xxx KiB),
xxxm (xxx MiB), xxxg (xxx GiB), xxxt (xxx TiB) or xxxp (xxx PiB).
<value> is xxx (512 byte blocks).
Its likely that your NAS doesn't have the programs to format ext3. Maybe it only can do xfs, which is a good alternative if not better, but thats another debate altogether.
By all means use xfs.
mkfs.xfs gave you that output because you didn't tell it what device to format, and example would be "mkfs.xfs /dev/hda". But you need to tell it the right device, otherwise you may format another drive in your system! If we can see the output of "mount" we can possible find out which device it is calling itself. Other than that you will have to look through the system logs to find it out. But lets see "mount" before we go diving through the logs.
well after finding sometime to read about this device i have found the following out.
It definitely uses Linux, but its not any publicly distribution. Its something Thecus have brewed up themselves. The source is a available for all the GPL bits but i think the have some closed source bits in the too.
And from reading the manual it seems that any eSATA or USB disk needs to be formatted in either FAT32 or NTFS. It can read and write to FAT32, but only read from NTFS. As for the permission issues your having, as long as you went through their web interface to setup the ACLs then it should be working just fine.
Oh and it does say you need to format any eSATA or USB drives on another computer first.
Other than that i can't tell you much else cause i don't have one here to play with.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.