Showing posts with label NTFS. Show all posts
Showing posts with label NTFS. Show all posts

Monday, March 18, 2013

Media Server Headaches Ep.2?


Now the Media Server is giving me more and more NTFS problems.  I need to change the permission on it to allow owner full access which I don't need to change it, but I need to change the group and others permission and regardless of how I mount it or change permission or ownership or group ownership it will NOT allow me access.  So, I'm done

Mounted my new external 3Tb drive.  

Copied a whole folder from old 1Tb drive into new 3Tb drive as an initial test and I have ownership and full permission.  

It's so refreshing and out of my permission claustrophobia sorta say lol

I'll leave it copying the 400Gbs of data from the 1Tb drive to the 3Tb drive.  Tomorrow or the next day I will move just the media files I want the Media Server to have back onto the 1Tb drive which I will make sure that I have full permission even if I must blow away the partition and setup new partition on it.  This is once all my precious and sentimental data is safely stored away in the new 3Tb drive.

 

HomeLab Headaches Ep.5

Here we are back at it again

Figured something interesting out, if I mount my external drive using

mount /dev/sdd1 /mnt/ExtDrv

I can copy the data out of it that I need and paste it locally, but if I mount using

mount -t ntfs-3g /dev/sdd1 /mnt/ExtDrv

Which is suppose to help with ntfs permission I can't copy data off of the drive, but I did change the permission on the /mnt/ExtDrv using chmod like this

chmod 755 -R /mnt/ExtDrv

I use ss64.com as a reference for chmod, they actually have a little table that you can click on what access you want and it will spit out the numeric and symbolic permission codes.
I use ss64.com to cross-reference for alot of my commands since I don't know too many.  I google what I need done and when -h or --help doesn't give me enough explanation to what the command does I go to ss64.com.  Great site and from year ago or so to now they've added a few more languages like powershell.

So I don't know if it was the chmod that actually gave me the permission to copy data from the external drive or if it was using mount without the -t switch along with ntfs-3g. 

While I was in the chmod mood, I changed the permission on my iso repository which is /VM_iso_Repo to owner would be root, group vboxusers will have full, read, write and execute access and others only read access.

Changing folder group ownership use chgrp

chgrp -R vboxusers /VM_iso_Repo

Changing folder permission access is as above

chmod -R 774 /VM_iso_Repo

Need to learn how to allow only a group access to a program.

Now I finally spun up the first of many Windows VMs on this machine.

Tuesday, March 12, 2013

Home test lab setup progress part 3

Free RAM doesn't always work... that doesn't sound right for some reason, meh!

The RAM I got from work didn't work on the Dell 2950(Server#1), but it worked on my older server my Dell 850.  I don't know what I want to do with my 850 yet. No, no one can't have it.  

Figured out how to configure\edit the /etc/fstab so it auto-mounts my other drives

First I tried it on my own no knowledge just throw stuff at it and see what comes of it just by looking at what was in the fstab already. for some reason it had entries like this :

tmpfs      /dev/shm     tmpfs      defaults     0 0
devpts    /dev/pts      devpts     defaults     0 0
sysfs       /sys            sysfs        defaults     0 0
proc       /proc          proc        defaults     0 0

so I added

RnDm       /dev/sdb     ext4     defaults     0 0
RnDm2     /dev/sdc      ext4     defaults    0 0

Rebooted and it didn't work, so I found this post, How to add a new partition to the fstab file

OH! There's the formula, [Device] [Mount Point] [File System Type] [Options] [Dump] [Pass]

so then I changed the fstab to 

/dev/sdb     /RnDm       auto     defaults     0 0
/dev/sdc     /RnDm2     auto     defaults     0 0

Rebooted and BAM! they auto-mounted.  Actually it didn't the first time because I had made a mistake on the mount point but after fixing that it worked.

Now after all this I once again face NTFS permission road blocks in my CentOS server.  fuck it, copying iso's from external drive using cli.

Correction on yesterdays post, drive /dev/sdb which is one of the pair of 146Gb drives is setup as RAID0, not RAID1. This is so I can benefit the read\write performance, where I'm going to keep my VMs. The single 146Gb drive /dev/sdc is going to keep my isos.