Personal Loans | Myspace Layouts | Shares | Personal Finance | Nicole Scherzinger
Two more Linux questions [Archive] - ZGeek

PDA

View Full Version : Two more Linux questions


dogwomble
02-08-2006, 09:31 PM
Hey guys,

Jut got a couple more Linux questions for ya all.

One is to do with hard drive space. I've got a number of drives set up in here that are being shared through Samba.. One is an 80 gb drive, and the other is my 4x320gb RAID array. Now on the 80gb, it's using 175mb of disk space (according to Linux) and 3.90gb according to Windows (I'm actually inclined to believe Windows because 73Gb - 185Mb certainly does not equal 69Gb). And in the RAID partition, 205Mb is used (according to Linux) and 59.8Gb!!!! is used (according to Windows). Now considering that there are actually no files yet stored on these drives - only a couple of directories waiting for me to put all my stuff into them - I would imagine the iNodes or something are taking up all that space? Either way, is it safe to reduce the amount of disk space used, because over 60gb of disk space is a hell of a lot of space to lose.....

Secondly is in relation to setting up Samba. What I'm wanting to do is set up Roaming Profiiles so when I connect via Windowsr regardless of which box is plugged in or whether I decide to rebuild my box, my settings are saved centrally. The way I want to do it is all through the home directory, as this is the way I've always done it with AD so that all settings, documents, email are stored in an easy-to-back-up way. The way that i want it to work is that I create a share called 'Home' which is a share for all home directories. When I log in, a drive gets mapped to \\kelpie\home\dogwomble. I would in this case want the profile path to be \\kelpie\\home\dogwomble\profile. This is where, on the Samba side of things, it gets a little interesting.

I've already shared the home volume (which is the 80gb drive on /home) successfully and can get access to it. I've used the following command to create the Samba user and nominate the home directory and profile path:

pdbedit -a DogWomble -u dogwomble -h \\\\kelpie\\home\\dogwomble -p \\\\kelpie\\home\\dogwomble\\profile

According to the Man pages, the -h switch should set the home directory and -p should set the profile. The thing is, when I look at the account later using pdbedit -L, I get:

Unix username: dogwomble
Home Directory: \\kelpie\dogwomble
Profile Path: \\kelpie\dogwomble\profile

So what it's doing is taking out the 'home' bit and it wants me to create a share for every home directory on the system - something that I find particularly untidy, particularly if I want to have a large number of home directories at a later stage. What could be causing this to act in this manner, and what can I do to correct it?

Spingo
03-08-2006, 06:27 PM
One is to do with hard drive space. I've got a number of drives set up in here that are being shared through Samba.. One is an 80 gb drive, and the other is my 4x320gb RAID array. Now on the 80gb, it's using 175mb of disk space (according to Linux) and 3.90gb according to Windows (I'm actually inclined to believe Windows because 73Gb - 185Mb certainly does not equal 69Gb). And in the RAID partition, 205Mb is used (according to Linux) and 59.8Gb!!!! is used (according to Windows). Now considering that there are actually no files yet stored on these drives - only a couple of directories waiting for me to put all my stuff into them - I would imagine the iNodes or something are taking up all that space? Either way, is it safe to reduce the amount of disk space used, because over 60gb of disk space is a hell of a lot of space to lose.....

Can you provide details on how you get these figures? I'm a bit confused as to how exactly you know how much Windows is reporting and how Linux is reporting the free space. Please supply commands and procedures on how you get these figures and there should be an explaination somewhere...

In regards to roaming profiles under Samba.. Ugh! I've never tried it, and roaming profiles are enough of a PITA to deal with under native Windows domains, let alone Samba... I shall go through some docs tonight and should be able to come up with something though...

dogwomble
03-08-2006, 11:29 PM
I'll let you know once i get the server booting again ... as mentioned in my other linux thread (http://forums.zgeek.com/showthread.php?t=55497), I've got to work out how to get the dman machine booting agin :)

Directed
04-08-2006, 12:47 AM
It can depend on how your directory is formatted as well. If you formatted a partition UFS, in Linux it would appear free, and in Windows it would not.

dogwomble
04-08-2006, 08:09 AM
HJmmmm, well it is formatted with ext3. As I understand it they're related (just did a quick goopgle(. I'll probablyend up reformatting the /home and /sahred/raid partitions as XFS, if I can work out how :)