Protect Base Packages



Windows Host Steps on HOW to enable NTFS support on CentOS Linux version: STEP 1:Before opening VirtualBox, make sure your usb device is not connectedSTEP 2:Setup USB connector within Virtualbox and the Instance-- select instance, then settings, then usb-- Make sure both check boxes and selectedSTEP 3:Start instance, but don't login yetplug in usb drive or stickconnect usb / then close box from host when it opens / then right-click "usb" icon and select the "device"STEP 4:log into Linuxactivate internet connectionopen terminal window and log in as "root"STEP 5: running commands to verify usb device is recognizeddmesg fdisk -l (displays existing partitions and sizes)STEP 6: create directory to mount devicemkdir /mnt/usbSTEP 7: see if device will mountmount /dev/sdb1 /mnt/usb-- If you get "unknown filesystem type 'ntfs'. . . we have more steps to complete before mount is completefollow these steps before Trying mount again:STEP 1: reference url: RHEL 6.x / CentOS 6.x UsersType the following command as root user to install repo:# rpm -Uvh Base PackagesYou need to to protect base and core packages from EPEL and other repositories. Type the following command under RHEL 6/CentOS 6:# yum install yum-plugin-protectbase.noarchSTEP 2: reference url: Do I Install NTFS-3G?Type the following command as root user:# yum install ntfs-3gHow Do I Find Out NTFS Partition Name?Simply type the following command:# fdisk -l /dev/sda# fdisk -l /dev/sdbTime to try "Mount" again:First, load the fuse driver, enter:# modprobe fuse-- directory location to mount usb device should be created already: /mnt/usbmount command: mount -t ntfs-3g /dev/sdb1 /mnt/usbOR mount -t ext4 /dev/sdb1 /mnt/usb2Other commands I may use:find a directory: find / -type d -name 'httpdocs'df -h (shows filesystem usage)Last Resort if other steps didn't work:STEP ?:Download the NTFS-3G.2015.3.14 tar.gz file, which is an open Source Linux driver that allows users to read and write on NTFS partitionsURL: STEP ?:Extract and Install a tar.gz file:Without further ado, here’s how to extract and install a downloaded tar.gz file on Linux (CentOs is my flavor):1. ?Download the tar.gz file from the internet. ?When/if asked, ask to “save” this file rather than extract it. ?It should automatically save to your /home/user/Downloads directory (where “user” is replaced with your own username, as in /home/tom/Downloads).2. ?Change to superuser mode[tom@localhost usr]$ su -Password:3. ?Change to the directory under which you want to create a new directory to hold the unzipped files. (I have no idea where the “proper” location is. ?I have put things in usr/local and usr/share with sheer abandon. ?I will probably get smited one day by the big sudo in the sky (which is much different than getting smitten by Cupid)).[root@localhost ~]# cd /usr/local4. ?Create a new directory especially for this unzippage. ?For this example, I have used the Apache Maven binaries.[root@localhost local]# mkdir apache-maven5. Change to the new directory, to verify it is there (because we are paranoid).[root@localhost local]# cd apache-maven/6. If you don’t remember the name of the tar.gz file you downloaded, list files in the Downloads folder or wherever the tar file has been downloaded to get the file name. Notice that unless you’ve been a tidy little housekeeper, all the other files you’ve downloaded will still be there. ?Eyeball the one you want; in this case “apache-maven-blahblahblah”.[root@localhost Downloads]# ls /home/tom/Downloadsapache-maven-3.0.4-bin.tar.gz sun-javadb-demo-10.6.2-1.1.i386.rpmjdk-6u35-linux-amd64.rpm sun-javadb-docs-10.6.2-1.1.i386.rpmjdk-6u35-linux-x64-rpm.bin sun-javadb-javadoc-10.6.2-1.1.i386.rpmsun-javadb-client-10.6.2-1.1.i386.rpm yum-3.4.3sun-javadb-common-10.6.2-1.1.i386.rpm yum-3.4.3.tar.gzsun-javadb-core-10.6.2-1.1.i386.rpm7. ?Move the tar file from the Downloads directory to the directory you created as this application’s new home. ?Remember to use the tab key to autocomplete so that you don’t have to risk mistyping such intricate names:[root@localhost Downloads]# mv /home/tom/Downloads/apache-maven-3.0.4-bin.tar.gz /usr/local/apache-maven8. ?Change back to the target directory and verify the file is there[root@localhost Downloads]# cd /usr/local/apache-maven[root@localhost apache-maven]# lsapache-maven-3.0.4-bin.tar.gz9. ?Extract the files[root@localhost apache-maven]# tar xf apache-maven-3.0.4-bin.tar.gz10. ?Verify that there are extracted files now in your directory using the -l option so that you can also see the permissions:[root@localhost apache-maven]# ls -ltotal 4764drwxr-xr-x. 6 root root 4096 Oct 4 22:46 apache-maven-3.0.4-rw-rw-r--. 1 tom tom 4873043 Oct 4 21:06 apache-maven-3.0.4-bin.tar.gz11. ?Make sure that root has permissions all the way through the unzipped directory[root@localhost apache-maven]# chown -R root:root apache-maven-3.0.412. ?If you’re sure you’re done, and won’t need the downloaded file again, delete it:[root@localhost apache-maven]#rm apache-maven-3.0.4-bin.tar.gzSTEP 3:=================================================================================RELATED COMMANDS:# dmesg | tail -n10yum install libpmount0.0==========================================================================================Troubleshot: unable to enumerate USB device on port 3But I finally found a solution here: [Solved] Unable to enumerate USB device (Disabling ehci_hcd). I need to disable ehci_hcd. In my case, the commands is:# cd /sys/bus/pci/drivers/ehci_hcd# echo -n "0000:00:1a.7" > unbindAs a side effect, I do not have USB 2.0 on this bus anymore, but it is not a problem.24.02.2010, updateTo issue the command automatically on boot, one could edit /etc/rc.local, but in my case I need to have network loaded before. The best solution (I hope) is based on advice here: can disable this on boot by creating a /etc/udev/rules.d/disable-ehci.rules file containing:ACTION=="add", SUBSYSTEM=="pci", DRIVER=="ehci_hcd", \ RUN+="/bin/sh -c 'echo -n %k > %S%p/driver/unbind'"======================================================================================== ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download