Showing posts with label drive. Show all posts
Showing posts with label drive. Show all posts

Tuesday, October 25, 2016

Prevent access to specific partition or drive

Sometimes we would like to prevent users from accessing tons of data. we can do this by hiding the drive but it does not prevent the access completely. This trick will not hide the drive but users cannot access it. After preventing access, you can hide the drive to ensure full protection. To do this, perform the following steps:-

  • Log into the account where you want the users not to access the drive.
  • Open registry editor.
  • Go to HKEY_CURRENT_USER >> Software >> Microsoft >> Windows >> CurrentVersion >> Policies >> Explorer.
  • Right-click to create a new DWORD value with the name NoViewOnDrive.
  • Double-Click on this entry, Select the radio button named Decimal.
  • In the value data field put the value of the drive you want to prevent access.
  • The value is calculated using the formula 2n-1, where n is the number of the drive which you want to prevent access-1 for A, 2 for B, 3 for C and so on...
  • If you need to hide more than one drive, add the respective drive numbers and enter it into the value data field. For example, to hide drive C you need to enter 4 (2 3-1); to hide drives D and E you need to enter 24 (2 4-1 +2 5-1).
  • To apply the change to all users in the system, follow the same method, but use the key HKEY_LOCAL_MACHINE >> Software >> Microsoft >> Windows >> CurrentVersion >> Policies >> Explorer instead.
  • To remove all restrictions, just delete the entry.
  • To hide the drive click here.
Read More..

Tuesday, September 20, 2016

Mounting the home directory on a different drive on the Raspberry Pi


I found myself struggling with SD card corruption this week.
I think it was due to a combination of overclocking and an old SD card. Although I use svn or git with most of my code, occasionally I do a lot of work in a day and forget to add a file. After this last time, I decided to move my home directory to a partition on an external HDD just in case.

I will be posting some file recovery methods later in case you have also lost data.

Start by making sure your external drive is connected and open a terminal.
First of all you need to have root privileges to do all this (or use sudo privileges)
Make sure your drive is not mounted. To unmount it:
umount /mntpoint
If you already have your external drive partitioned, skip to Step 4.

Step 1: Partition External Drive

The fdisk command with the -l flag can list all of your drives and partitions. So start by running that:
fdisk -l
Pick the HDD you want to use (mine was /dev/sdb but Ill put sdx and you can fill in appropriately) and run fdisk again to see partition information
fdisk /dev/sdx
You should be in an interactive prompt. Type p to see the partitions. There should be none. If there arent any, skip to Step 3.

Step 2: Deleting or resizing

If you need the old partitions and want to shrink them, type q to exit the fdisk prompt, otherwise skip to Step  3.
If you are using the partitions and just want to resize them, then there are various commands to do that (also its a good idea to have a back up).
For ext3/ext4, just use: resize2fs /dev/sdx #size
Or use parted
parted /dev/sdx (opens interactive prompt)
resize #size
For ntfs: 
ntfsresize --size #sizeM /dev/sdx
Then open back up the fdisk prompt, you need to make new partitions that match.

Step 3: Writing partition changes

(Open fdisk back open if you closed it)
Now just use d #partition to delete any old partitions.
Then type n to make a new partition followed by p to make it a primary partition. If this is the only partition you need, you can make it the whole disk size. If you shrank a partition, you need to make two new partitions, with the first one having a size that matches your resize options.
Now type w to write changes to disk then q to quit. It will probably give you some warnings, it almost always does. Pay attention to them but dont freak out.
Now format the new partition (If you only made one partition #=1):
mkfs.ext4 /dev/sdx#

Step 4: Copying over your home directory files

Mount your new partition:
sudo mkdir /media/tmp
sudo mount -t ext4 /media/tmp
Navigate to your root folder
cd /home
Copy all your data recursively (this option seems to have worked the best for me to get all of the files including .bashrc and .vimrc files)
sudo cp -rp ./ /media/tmp

Step 5: Mounting your new home directory

Once that is finished, you can move the home directory and mount the new one (make sure no program is currently using the home directory or you will get errors).
sudo umount /media/tmp
sudo rm -rf /media/tmp (get rid of the tmp folder)
sudo mv /home /old_home
sudo mkdir /home
sudo echo "/dev/sdx# /home ext4 defaults,noatime,nodiratime 0 0" >> /etc/fstab
Again replacing x# with your drive number (mine was b2).
Now we can test it by mounting home. If this doesnt work, somewhere you messed up
sudo mount /home
After you have confirmed everything is working and copied over and you dont need your old home directory, you can delete it.
sudo rm -fr /old_home


Now you dont need to worry about SD Corruption.
References for help:
http://joshua14.homelinux.org/blog/?p=660
http://linuxtechres.blogspot.com/2007/08/how-to-use-ntfsresize-from-command-line.html



Consider donating to further my tinkering.


Places you can find me
Read More..

Thursday, February 25, 2016

Computer hard drive drivers Download

CompanyDrivers page
APS TechAPS Tech hard drive drivers
ConnerConner hard drive drivers
FujitsuFujitsu hard drive drivers
HitachiHitachi hard drive drivers
IBMIBM hard drive drivers
MaxtorMaxtor hard drive drivers
QuantumQuantum hard drive drivers
SeagateSeagate hard drive drivers
Western DigitalWestern Digital hard drive drivers
Read More..

Monday, October 27, 2014

AC Drive training cource



A.C. Drives Course
 ·        Introduction to A. C. Drives.
·        Selection criteria of drives for particular application i.e.  Speed /torque characteristics etc.
·        Configuration of different motor parameters for drives i.e.
     Speed and torque control
     types of braking
     ramp selection
     Jog/ Inch selection
     flux optimization
     no. of poles
     load equalization
     selection of slip and skip frequencies
     preset speed selection
     RPM etc.
·        Remote and local operation of A. C. drives
·        Communication with PLC, MMI, SCADA software
·        Study of different operational methods like
  •      PWM method
  •      Flux vector control
  •      Vector voltage control
  •      Direct torque control etc. on which Variable speed drives work.
·        Troubleshooting
·        Case study and different applications of Drives in the Industry.


Read More..
 
Copyright 2009 Information Blog
Powered By Blogger