In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to analyze the technical content of Fedora Core 4 operation. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Due to my fixed thinking and insufficient acceptance of new things, I always use the old thinking in learning Fedora Core 4; for mobile storage, such as USB drives, removable hard drives, digital cameras, now most of them can be plugged and played in Linux; only a few are not; such as notebook integrated 6-in-1 card reader (many do not support, there are also supports) I use very little of Fedora Core 4. I feel that Fedora is a laboratory, and new features will appear in Fedora Core 4, which enhances the ease of use of Linux desktop version; in fact, this is also a good thing.
The principles of plug-and-play USB storage have been discussed by the bbbush brothers in linux.chinaitlab.com/driver/40018.html ">" setting the vfat partition on fc3 HAL's storage-policy auto-mount flash drive ". You can take a look, after reading, the train of thought will be much clearer; after reading this article, the power will also be great;:) HAL-Hardware Abstraction Layer (hardware extraction layer), this is my literal translation, I do not know how to translate, according to my understanding is similar to the hardware management of Windows; but the article I wrote is actually worthless, why do you say that? Because there is no technical content, it is only written to solve the problem, there is no principle, just change a few lines or add a few lines of words; it may still be useful for beginners.
USB removable storage
Digital camera; MMC card, SD card; USB MINI disk; USB removable hard disk (a box with USB interface, which contains notebook hard disk and mainframe hard disk), 1394 interface removable storage value storage; sound recorder; DV, etc., mostly removable storage; fat, ntfs, fat32, reiserfs, ext3 and hfs file system support
Fedora Core 4 supports almost all file systems, so there is no need to write a kernel. If you have a mobile hard drive with NTFS partition like me, please install the kernel NTFS module support; the kernel already supports fat format, no matter it is fat16 fat32; for file system support in NTFS format, install kernel-moduls of NTFS I don't think it makes much sense for NTFS to move disk partitions (but I have a removable hard drive and one partition is ntfs), because NTFS is not writable; so use fat or fat32. If your machine has 1394 interface, if you want to buy a storage device with large capacity, it is recommended to buy a box with 1394 interface. USB does not support writing large files, no matter what file system it is (in fact, I have tried it); another 1394 interface hard disk can be stably loaded during system startup.
Plug and play, system automatically mount removable storage device
1. First make sure that the following services are turned on
[root@localhost beinan] # chkconfig-- list | grep haldaemon
Haldaemon 0: enable 1: enable 2: enable 3: enable 4: enable 5: enable 6: enable
[root@localhost beinan] # chkconfig-- list | grep messagebus
Messagebus 0: enable 1: enable 2: enable 3: enable 4: enable 5: enable 6: close
If it is not enabled in 3 and 5 modes, you need to open the
[root@localhost beinan] # chkconfig-- level 0123456 haldaemon on
[root@localhost beinan] # chkconfig-- level 0123456 messagebus on
Open all patterns; check to see if the service we mentioned is running in all modes; please use the chkconfig-- list mentioned above | grep server name
If after doing so, the services we mentioned will automatically run in all modes; there is no need for us to interfere artificially, but sometimes we have to turn them on and off ourselves for debugging; see the next section
2. Most of the services running in standalone mode are in the / etc/init.d directory
Usage: / etc/initrd server start | stop | status | restart | condrestart
For example, if we want to start the haldaemon server, we will:
[root@localhost beinan] # / etc/init.d/haldaemon start
Start the HAL daemon: [OK]
[root@localhost beinan] # / etc/init.d/haldaemon restart
Shutting down the HAL daemon: [OK]
Start the HAL daemon: [OK]
[root@localhost beinan] # / etc/init.d/haldaemon stop
Shutting down the HAL daemon: [OK]
[root@localhost beinan] # / etc/init.d/haldaemon status
Hald has stopped
This beginner knows; start starts; restart restarts; stop stops; status status; the three servers we mentioned in this article are all in the / etc/init.d directory
3, in fact, if the above steps can be done, in fact, most of the mobile storage devices are plug and play, but also automatically mounted; although the system plug and play, but the permissions may not meet our needs; in addition, if the text is stored in the fat and ntfs file system, the Chinese support for the file name is not very friendly; so. Solve.
Solve the problem of normal display of Chinese file names and file permissions in vfat and ntfs file systems
1. Confirm the locale of the system
[beinan@localhost ~] $locale
LANG=zh_CN.UTF-8
LC_CTYPE= "zh_CN.UTF-8"
LC_NUMERIC= "zh_CN.UTF-8"
LC_TIME= "zh_CN.UTF-8"
LC_COLLATE= "zh_CN.UTF-8"
LC_MONETARY= "zh_CN.UTF-8"
LC_MESSAGES= "zh_CN.UTF-8"
LC_PAPER= "zh_CN.UTF-8"
LC_NAME= "zh_CN.UTF-8"
LC_ADDRESS= "zh_CN.UTF-8"
LC_TELEPHONE= "zh_CN.UTF-8"
LC_MEASUREMENT= "zh_CN.UTF-8"
LC_IDENTIFICATION= "zh_CN.UTF-8"
LC_ALL=
[beinan@localhost ~] $
If your system code is gb2312, gbk, gb18030; do not change locale;, we just change a file on the hal server.
2. Change the configuration file of hal
In Fedora Core 4, the hal server about removable storage profiles
/ usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi
Before making any changes, please back up
[root@localhost 10osvendor] # cp 10-storage-policy.fdi 10-storage-policy.fdiBAK
We open the 10-storage-policy.fdi file; then we can add the following two paragraphs
True
True
True
True
True
True
True
True
True
True
/ media
True
Managed
Kudzu
True
True
True
Note: if the code of your system is gb2312, gbk, gb18030 or something else, please change the utf8 in the two paragraphs we added to cp936 or gb2312. Step by step experiments will always work.
3. Restart the hal daemon
[root@localhost beinan] # / etc/init.d/haldaemon restart
Shutting down the HAL daemon: [OK]
Start the HAL daemon: [OK]
4. Plug in the USB or 1394 device; the computer that clicks the desktop can see the icon of the disk.
Sometimes it may come out a little slower. Is it mounted? where is it mounted? we can use df-lh to check it.
[root@localhost beinan] # df-lh
Filesystem capacity used available used mount point
/ dev/hda8 11G 5.9G 4.5G 58% /
/ dev/shm 236M 0 236m 0% / dev/shm
/ dev/sdc5 5.2G 63m 4.9G 2% / media/usbdisk2
/ dev/sdc1 4.2G 1.4G 2.8G 34% / media/usbdisk1
/ dev/sdb1 988M 3.7M 984M1 / media/usbdisk
/ dev/sda1 56G 22G 35G 39% / media/ieee1394disk
5. Is it a test with permissions that can be written by ordinary users
If the file format is fat or fat32, we have defined the option of mount in this file in 10-storage-policy.fdi, such as user and rw, which can be read and written by users. If it is a partition of ntfs, we set the umask=000 of option of mount, so that all users have all permissions, but the ntfs partition can only be read under Linux; it doesn't make much sense. If it is an ext3, reiserfs, ext2 file system, if you can let ordinary users have the ability to read and write, check where the mount point is, and execute the chmod-R 777 directory name; so that all users can read, write and execute; and each user's files are independent of each other and kept secret from each other; there is no problem with Chinese support. If there is garbled code, you can use export LANG= to temporarily set the code; for example, export LANG=zh_CN
If it is in other file formats, one is to support the kernel; most Fedora Core 4 already supports it, such as the hfs file system
The above is the editor for you to share how to analyze the technical content of Fedora Core 4 operation, if you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.