Install the gcc compiler on a CD-Rom under CentOS6.1x86 and mount an ntfs disk

Source: Internet
Author: User
We started to officially learn about the server Today. the distribution selected is CentOS and the version is 6. 1. when I first got familiar with XWindow, I found that CentOS could not automatically mount an NTFS-format USB flash drive, and my machine could not access the internet and could not prepare to install it with an rpm Package. the specific steps are as follows: 1.a: insert a DVD disc...
We started to officially learn about the server Today. the distribution selected is CentOS and the version is 6. 1. when I first got familiar with X Window, I found that CentOS could not automatically mount an NTFS-format USB flash drive, and my machine could not access the internet and could not prepare to install it with an rpm Package. the specific steps are as follows:
1. a: Insert the DVD into the optical drive; B: Copy the required rpm package to a directory in the system (which of the following are required );
2. select one of the two methods a and B, and cd them to the directory where the rpm software package is placed;
3. start Installation. the command is as follows. the sequence must be correct: rpm-ivh kernel-headers-2.6.32-131.0.15.el6.i686.rpm rpm-ivh glibc-headers-2.12-1.25.el6.i686.rpm -- force -- nodeps rpm-ivh glibc-devel-2.12-1.25.el6.i686.rpm -- force -- nodeps rpm-ivh libgomp-4.4.5-6.el6.i686.rpmrpm-ivh mpfr-2.4.1-6.el6.i686.rpmrpm-ivh cpp-4.4.5-6.el6.i686.rpmrpm-ivh ppl-0.10.2-11.el6.i686.rpmrpm-ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm rpm-ivh gcc-4.4.5-6.el6.i686.rpm rpm-ivh libstdc ++-devel-4.4.5.el6.i686.rpm rpm-ivh gcc-c ++-4.4.5-6. el6.i686. rpm
Rpm-ivh is followed by the required rpm software package. The English letter should be the same as me, but the number may not be allowed, because the version number is different from CentOS 6.0, these rpm files are in the Packages directory under the CD Directory. before 6.0, it seems to be in the ps folder: When the rpm Package name cannot be determined, or when you want to download the rpm Package, we strongly recommend that you search by google, because Baidu is a scum at least in terms of rpm package search and installation source!
4. Mount ntfs in the following steps;
5. find a place to download the tgz package put down, switch to the current directory, and decompress, then compile the installation, the command is as follows: tar zxvf ntfs-3g_ntfsprogs-2011.4.12.tgzcd ntfs-3g_ntfsprogs-2011.4.12 www.2cto.com. /configuremakemake install6.mount-t NTFS-3G/dev/sda1/mnt/windows/c Note: sda1 here refers to the first partition of the SATA or SCSI hard disk, if it is an older IDE hard disk, it will be hda1. use fdisk-l to view details. For example, a single machine: [root @ CentOS ~] # Fdisk-lDisk/dev/sda: 164.6 GB, 164696555520 bytes 255 heads, 63 sectors/track, 20023 cylinders Units = cylinders of 16065*512 = 8225280 bytesDevice Boot Start End Blocks Id System/dev/sda1 * 1 2550 20482843 + 7 HPFS/NTFS/dev/sda2 2551 20022 140343840 f W95 ext 'd (LBA) /dev/sda5 5101 8924 30716248 + 7 HPFS/NTFS/dev/sda6 8925 12748 30716248 + 7 HPFS/NTFS/dev/sda7 12749 16572 30716248 + 7 HPFS/N TFS/dev/sda8 16573 20022 27712093 + 7 HPFS/NTFS/dev/sda9 2551 2584 273042 2585 83 Linux/dev/sda10 4928 18828148 4929 + 83 Linux/dev/sda11 5016 706828 + 82 Linux swap/SolarisPartition table entries are not in disk order3. if you want to automatically mount NTFS partitions when the system is started, edit the vim/etc/fstab file and add a read-only mount:/dev/sda1/mnt/windows/c NTFS-3G ro, umask = 0222, defaults 0 0 read/write mounting:/dev/sda1/mnt/windows/c NTFS-3G rw, umask = 0000, defaults 0 0 OR:/dev/sda1/mnt/windows/c NTFS-3G defaults 0 0 www.2cto.com, such as the/etc/fstab file is as follows: LABEL = // ext3 defaults 1 1 LABEL =/boot ext3 defaults 1 2 tmpfs/dev/shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0 LABEL = SWAP-sda11 swap defaults 0 0/dev/sda1/mnt/windows/c NTFS-3G ro, umask = 0222, defaults 0 0/dev/sda5/mnt/wi Ndows/e NTFS-3G defaults 0 0/dev/sda6/mnt/windows/f NTFS-3G defaults 0 0/dev/sda7/mnt/windows/g NTFS-3G defaults 0 0/dev/sda8/ mnt/windows/h NTFS-3G defaults 0 0 Other notes: from CentOS 5.4 (2.6.18-164 or newer kernel), the fuse module is included in the kernel. Therefore, dkms and dkms-fuse are no longer required. If you have installed dkms-fuse before, run the yum remove dkms-fuse command to uninstall it. Note that users of CentOS4.x need these two components. Users who use the centosplus kernel are started by the CentOS-5.3 and the centoplus kernel does not enable the NTFS module. This is because NTFS within 5.3 cannot run. For more information, see https://bugzilla.redhat.com/show_bug.cgi?id=481495 . If you want to use the NTFS module from the CentOS kernel, you can install kmod-ntfs from ELRepo. But this module does not have a good NTFS-3G and only provides extremely limited write functionality. 7. now, OK.
Author: Chaowu of Wudao
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.