LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-14-2005, 09:51 PM   #1
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Rep: Reputation: 0
How to chk a file/folder size ? what's the command? i only knows repquota


hi, i've updateds some apar in red hat 9 and after the updates, the new users cant access the drive in windows GUI. however, they can access the shared drive using LInux environment. This does not affect the existing users before the apar updates. All existing users can map their drive manually.

ONly new users added into the group cannot access the winxp gui. but they can access it via linux command prompt.

is it something to do wit samba?

these are teh APAR that i've updated

squirrelmail-1.4.3-0.f0.9.3.legacy
mysql-server-3.23.58-1.90.6.legacy
mysql-devel-3.23.58-1.90.6.legacy
mysql-3.23.58-1.90.6.legacy
kernel-doc-2.4.20-43.9.legacy
kernel-BOOT-2.4.20-43.9.legacy
kernel-2.4.20-43.9.legacy
kernel-source-2.4.20-43.9.legacy
gd-progs-1.8.4-11.1.legacy
gdk-pixbuf-devel-0.22.0-7.90.3.legacy
gd-devel-1.8.4-11.1.legacy
gdk-pixbuf-gnome-0.22.0-7.90.3.legacy
gdk-pixbuf-0.22.0-7.90.3.legacy
gd-1.8.4-11.1.legacy
curl-devel-7.9.8-5.2.legacy
cpio-2.5-3.2.legacy
curl-7.9.8-5.2.legacy

Last edited by karmakid; 08-23-2005 at 03:07 AM.
 
Old 08-21-2005, 02:33 PM   #2
michael@greg:~>
LQ Newbie
 
Registered: Mar 2005
Location: Norridge, IL
Distribution: SuSE 9.2 Pro / Zenwalk 1.2 / Minislack 1.0.1
Posts: 12

Rep: Reputation: 0
I am sorry but I do not clearly understand the problem.

Are the new users on RedHat 9 or Windows XP?
What type of user accounting are you using (LDAP, Active Directory, PAM, SQL)?
"cant access the drive in windows GUI," is "the drive" a network share or a local share?
How are you accessing the "drive" on RedHat 9?
How are you accessing the "drive" on Windows XP?
Is the sentence, "All existing users can map their drive manually," stated from the standpoint of a Windows XP user or a RedHat 9 user?
"cannot access the winxp gui," does this mean that you cannot boot an OS or does it mean that you cannot access a file share?

If you are using SQL to manage your user accounts, please notice that you updated SQL. If you use SQL, the update might have affected the method you use to add users.

Also, the 2.4.20-43.9 kernel changelog might give you some insight into your problem.
 
Old 08-23-2005, 03:07 AM   #3
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Original Poster
Rep: Reputation: 0
there are 2 clients.

one is using winxp platform (client)

one is using redhat platform (host).

they are connecting via samba services.

i discover the temporary solution, which is restarting the machine few times (client one), and disconnect and reconnect and it works fine now. it's an intermitant issue..i stil couldnt figure out what's the main problem.


now, i have another issue. how to check the file/folder size inside a server.

For example,

Root - Students - Name - Age
Root - Teacher - Name - Age

etc...

Root is the main root folder and there are few subfolders inside. Students and Teacher are 2 of the subfolders. Inside these subfolders, there are few more subfolders and files.

Q : How to I check the file/folder size of Students or Teacher?
 
Old 08-23-2005, 08:46 AM   #4
michael@greg:~>
LQ Newbie
 
Registered: Mar 2005
Location: Norridge, IL
Distribution: SuSE 9.2 Pro / Zenwalk 1.2 / Minislack 1.0.1
Posts: 12

Rep: Reputation: 0
Quote:
Q : How to I check the file/folder size of Students or Teacher?
First, you must log onto your server as root. Then, change directory (cd) to the directory that you want to measure.
Ex.
Code:
cd /Students
or
Code:
cd /Students/HPrinter
Next, type
Code:
du -hs
to print the disc usage for the contents of that directory. Please remember that the figure printed is for the contents of the directory where your terminal is pointing (/Students/ or /Students/HPrinter). The figure does not include the size of the pointed to directory, which is a few bytes (~3 bytes)*.

If you want to widen or narrow the scope of your report, you must change to the appropriate directory.
Code:
cd /Students/HPrinter/FirstPeriod
du -hs
To print the disc usage for individual files throughout a file tree rooted at the directory where your terminal is pointing, type
Code:
cd /directory
tree -as | more
tree prints its output in bytes. You will notice I piped ( | ) the output to "more" so that the administrator has a chance to read the output. To limit your search to only non-hidden files and directories.
Code:
tree -s | more
If you want to print the disc usage for the current directory's contents only, excluding the contents of subdirectories, type
Code:
ls -l | more
ls also prints its output in bytes. Note: The last number before the date in the printout is the object's disc usage in bytes.

* If you want find the disc usage for a whole tree including the parent directory, change to the parent of the directory in question. Then type
Code:
du -bs directory
This instance of "du" will print its output in bytes for exactness. For example if you want to know the exact disc usage of "/Students",
Code:
cd /
du -bs Students
will print the disc usage in bytes of everything encompassed by "/Students" including the space used by the directory itself.
 
Old 08-25-2005, 08:29 PM   #5
karmakid
LQ Newbie
 
Registered: Jul 2005
Posts: 18

Original Poster
Rep: Reputation: 0
thx michael..hope u can teach me one more thing.

i want to chk how many the hdd capacity in my server..
wat's the rpm, disc capacity...

wat's the command to use?
 
Old 09-01-2005, 12:34 PM   #6
michael@greg:~>
LQ Newbie
 
Registered: Mar 2005
Location: Norridge, IL
Distribution: SuSE 9.2 Pro / Zenwalk 1.2 / Minislack 1.0.1
Posts: 12

Rep: Reputation: 0
To check the capacity of each partition:
Type
Code:
df
as root.

To check the capacity of a drive:
Type, as root,
Code:
dmesg | grep hda
for /dev/hda.

Each IDE drive has a designation beginning with hd (hda, hdb, hdc, hdd, ...). If your hard drive is SCSI based, the designation will begin with sd (sda, sdb, ...). Please use the correct designation for the device you are examining. You might have to poke around before something familiar is printed.

Example
Code:
dmesg | hda
...
dmesg | hdb
...
dmesg | hdc
...
... (4310 MB) ... <- This looks about right to me.  HDC must be my hard disc.
To be clear the symbol after "dmesg" is a pipe (|). You can type it with a " Shift + \ " keystroke.

For RPM, you will have to open the computer case and copy the model number and manufacturer/website off of the hard disc itself. This might require removing the hard disc. Visit the manufacturer's website and enter the model number. Assuming you find the correct drive, all of the characteristics should be printed on the hard disc's website including the RPM.
 
  


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
After APAR updates, new users cannot map drive in winxp GUI karmakid Linux - Newbie 3 08-15-2005 12:08 AM
Winbind lists AD users, but doesn't map them Thakowbbery Linux - Networking 1 08-02-2005 01:09 PM
samba - map winbind users to nis uids and gids bkurnik Linux - Networking 0 09-20-2004 06:47 AM
Map a drive? Steve1445 Linux - Networking 1 04-07-2004 12:26 PM
Map to share then allow users to access subfolders problem in SAMBA ryanzietlow Linux - Software 1 03-26-2004 06:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:41 AM.

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