I bought a new USB hard drive the other day. मैं एक नया खरीदा USB हार्ड ड्राइव दूसरे दिन. I wanted to use it to create backups of my Linux server. मैं इसका इस्तेमाल अपने लिनक्स सर्वर का बैकअप बनाना चाहता था. Here's how I went about formatting and mounting the drive on my Linux server. यहाँ है मैं स्वरूपण और मेरे लिनक्स सर्वर पर ड्राइव बढ़ते बारे में कैसे चला गया.
The first thing I did was to find out where the disk had been mounted. पहली बात मैं था यह पता लगाना, जहां डिस्क था बढ़ गया है. For that I ran the following command: के लिए कि मैं निम्न कमांड गया:
# tail -F /var/log/messages # पूंछ एफ / var / log / संदेश
When I plugged in the drive into my server there was a message saying the the drive was available at /dev/sdc1. जब मैं वहाँ सर्वर में ड्राइव में एक प्लग कह ड्राइव / dev/sdc1 पर उपलब्ध था संदेश था. So the next step was to format the drive. तो अगले कदम के प्रारूप को ड्राइव था. There are a number of file formats that can by read and written to by Linux, but Windows is a bit more fussy about it. वहाँ फ़ाइल प्रारूपों के एक नंबर रहे हैं कि द्वारा पढ़ सकते हैं और लिनक्स के लिए लिखा है, लेकिन इसके बारे में एक Windows उधम मचाते थोड़ा अधिक है. So I decided to use a tried and tested file system that works well with both operating systems. तो मैं प्रयोग करने का फैसला किया एक की कोशिश की और व्यवस्था दोनों ऑपरेटिंग सिस्टम के साथ अच्छी तरह से काम करता है कि फ़ाइल परीक्षण किया. I went with FAT. मैं मोटा के साथ चला गया. So to format the drive as FAT I ran the following command: तो ड्राइव प्रारूप के रूप में वसा मैं निम्न कमांड गया:
# mkfs.vfat /dev/sdc1 # Mkfs.vfat / dev/sdc1
In a few minutes the newly formatted drive was ready to go. कुछ ही मिनटों में हाल में स्वरूपित ड्राइव पर जाने के लिए तैयार था. Now I wanted to mount it. अब मैं इसे माउंट करना चाहता था. So I created a directory to mount it: तो मैं एक निर्देशिका बनाया इसे माउंट:
# mkdir /media/usbdisk # Mkdir / मीडिया / usbdisk
Now, to mount the drive to this mount point I ran the following command: अब, इस बिंदु मैं निम्न कमांड गई माउंट माउंट के लिए ड्राइव:
# mount -t vfat /dev/sdc1 /media/usbdisk # माउंट आयकर vfat / dev/sdc1 मीडिया / / usbdisk
And that's it. और वह यह है. My new hard drive was formatted, mounted, and ready to go. मेरा नया हार्ड ड्राइव, स्वरूपित बढ़ गया था, और जाने के लिए तैयार. I copied the data I wanted to copy on it and then I unmounted it: मैं डेटा मैं इस पर नकल करना चाहता था और फिर मैं यह पैदाल नकल:
# umount /media/usbdisk # Umount / मीडिया / usbdisk
NOTE : this last step is very important. नोट: यह अंतिम कदम बहुत महत्वपूर्ण है. If you unplug your drive without unmounting it you could risk the data it holds. यदि आप इसे unmounting आप डेटा यह मानती है जोखिम सकता है बिना आपके ड्राइव हाल चलाना.
If this is a USB storage device that you might use often and plan to leave it hooked up to your Linux server you can set up the device to be automatically mounted when you boot into Linux. यदि यह एक USB भंडारण युक्ति है कि आप अक्सर उपयोग करते हैं और योजना हो जाने के लिए यह आपके Linux सर्वर आप निर्धारित कर सकते हैं उपकरण को पकड़ा गया हो को स्वत: लिनक्स में जब आप बूट हो मुहिम शुरू की. To do that make an entry like the one shown below at the end of file /etc/fstab : करना है कि फाइल के अंत में नीचे / etc / fstab / दिखाए गए एक तरह एक प्रविष्टि दर्ज करें:
/dev/sdc1 /mnt/usbdrive vfat defaults 0 0 / dev/sdc1 / mnt / usbdrive vfat चूक 0 0
Now your drive will be automatically mounted to your Linux server, and you can take your backups without worrying about mounting a device. अब आप अपने अभियान स्वतः ही आपके Linux सर्वर को बढ़ जाएगा, और आप एक उपकरण के बढ़ते बारे में चिंता किए बिना अपने बैकअप ले सकते हैं.























please hiw do i format my pc hard drive?Each time i try do do so the computer tells me it cant.Also, i tried to uninstall an ms program the other day कृपया मुझे प्रारूप मेरे पीसी हार्ड ड्राइव करते hiw? हर बार मैं कोशिश कर ऐसा कंप्यूटर मुझे cant.Also कहता है, मैं दूसरे दिन एक एमएस कार्यक्रम की स्थापना हटाने की कोशिश की
but the system went off before it could complete uninstalling.since then i cant open any ms package,remove program or add any.what must i do to get my system to normal. लेकिन सिस्टम बंद होने से पहले uninstalling.since गया तो पूरा मैं खिचड़ी भाषा सकता है किसी भी एमएस पैकेज खुला, प्रोग्राम हटाना या जोड़ना any.what मैं सामान्य अपने सिस्टम प्राप्त करना चाहिए.