Summary of xbmcbuntu and soft raid

Source: Internet
Author: User

Summary of tossing xbmcbuntu and soft raid these days have a strong interest in the Linux HTPC system, there are Asus AMD E350 integrated motherboard, two hard disks (640G and 1 T), 4G memory, the blu-ray combo optical drive downloads the latest 12 versions of xbmcbuntu from xbmc.org. Connect the network cable at www.2cto.com to ensure smooth network connection. Start the disc and go to the installation page. Select a custom disk, 1 TB hard disk as the boot disk, and assign 10 Gb to/, GB to/data1, and 4 GB to swap, the remaining preparations and a 640G hard disk form a soft RAID 1 and mount it to/data2. The xbmcbuntu installation CD does not provide the software raid configuration function, so you can only keep sda4 and sdb1 after installation. During installation, you are advised to download and install updates at the same time. During installation, you must enter the user name, password, and host name. For convenience, enter xbmc. After 10 minutes, the installation was completed successfully. The CD was automatically exited and restarted to go to The xbmc main interface. The following important settings are available: www.2cto.com first, change the System interface to Chinese, click the System main menu, and then select Appearance, select Skin and set Fonts to Arial based. (important: wait a few seconds after the selection. Wait for the screen to flash to make the settings take effect. Otherwise, the Chinese font will become a blank square ). Then, select International and set the Language to Chinese (Simple). After the selection, wait a few seconds. Wait for the screen to flash and make the settings take effect. The xbmc interface is changed to Chinese! Continue to set the audio output. I use the HDMI interface of the motherboard to directly connect to the TV to output audio. Select the "system settings" menu and "audio output ", set the Audio output device to HD-Audio Generic (hdmi_complete) and HDMI. Click the shutdown button on the main interface and select "exit". The system will exit the xbmc main interface and display the graphic logon window. Select the xbmc user and the Password is also xbmc. Select XBMCbuntu at the bottom and click Login to enter the ubuntu Desktop. Click the button in the lower left corner of the Desktop, select Perference-AMD Catalyst Control Center, select Display Options-Tear Free from the tree directory on the left, and select Enable Tear Free Desktop ro reduce tearing. (important. Otherwise, the video is not smooth and the image has horizontal faults.) do not forget to Apply. Click the button in the lower left corner of the desktop, select Perference-Network Connections, and assign a fixed IP address to the NIC to facilitate later ssh connection and Network file sharing. Click the button in the lower left corner of the desktop, select Logout, return to the logon interface, enter xbmc, and password, select xbmc, and click Login to return to the xbmc main interface. Now, the basic settings of xbmc are complete. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> The next part is about raid1. First ssh remote login to the Host: ssh xbmc@192.168.1.55 xbmcbuntu installation disk is not pre-installed mdadm soft raid tool, first install it: sudo apt-get install mdadm installed, respectively configure the partition sda4 and sdb1, it is found that, because the hard disk size is different, it is impossible to set the two partitions to the same size, the error is about MB, it does not seem to affect the subsequent configuration of raid1. Create raid1: mdadm -- create/dev/md0 -- level = 1 -- raid-devices = 2/dev/sda4/dev/sdb1 and then create the/data2 directory by mkfs-t ext4/dev/md0, mount/dev/md0/data2. At this point, soft raid1 is configured, but the process is not complete. If you restart the system,/dev/md0 will not be automatically mounted. Edit the configuration file of mdadm. Note the path:/etc/mdadm. conf. The path of the previous version is under/etc. Now it is different, and I will take a detour. To facilitate editing, install xim and sudo apt-get install vim first. View the UUID of md0: sudo mdadm -- detail/dev/md0. Copy the UUID 7f59975e: 9e631632: dce17021: f68cb000 and then: sudo vim/etc/mdadm. conf: ARRAY/dev/md0 UUID = 7f59975e: 9e6000032: dce17021: f68cb000: wq! Force save and exit vim. The next step is very important! You need to update initramfs so it contains your mdadm. conf settings during boot. sudo update-initramfs-u otherwise, after the system is restarted, mdadm automatically generates/dev/md127 instead of/dev/md0. This seems to be a "feature" of the mdadm in the newest kernel. there was another thread with similar symptoms recently. for reasons I do not yet understand, mdadm seems to invent an array device name out of thin air when there is a problem. this confuses everybody. md127 seems to be a common name it now chooses. here (English): http://ubuntuforums.org/showthread.php? T = 1764861 final deal/etc/fstab: sudo vim/etc/fstab add this line:/dev/md0/data2 ext4 defaults 1 2 final, sudo shutdown-r now restart to see the effect! Df-lh Filesystem Size Used Avail Use % Mounted on/dev/sda1 9.2G 2.4G 6.4G 27%/udev 1.8G 4.0 K 1.8G 1%/devtmpfs 727 M 608 K 726 M 1% /runnone 5.0 M 0 5.0 M 0%/run/locknone 1.8G 0 1.8G 0%/run/shmnone 100 M 0 100 M 0%/run/user/dev/sda2 318G 195 M 301G 1%/data1/dev/md0 587G 198 M 557G 1%/data2 cat/proc/mdstat Personalities: [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md0: act Ive raid1 sda4 [0] sdb1 [1] 624999616 blocks super 1.2 [2/2] [UU] [=================> .. ...] resync = 83.3% (520775552/624999616) finish = 24.2 min speed = 71640 K/sec unused devices: <none> success!

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.