نمایش نتایج: از شماره 1 تا 9 , از مجموع 9

موضوع: آموزش جامع پارتیشن بندی در لینوکس (هدیه به کاربران عزیز - nginxweb)

Threaded View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1
    عضو دائم nginxweb آواتار ها
    تاریخ عضویت
    Dec 2012
    محل سکونت
    Esfahan - Root
    نوشته ها
    2,568
    تشکر تشکر کرده 
    148
    تشکر تشکر شده 
    4,236
    تشکر شده در
    2,247 پست

    53 آموزش جامع پارتیشن بندی در لینوکس (هدیه به کاربران عزیز - nginxweb)

    سلام خدمت شما کاربران عزیز و محترم

    به درخواست تعداد زیادی از دوستان و کاربران عزیز یک آموزش کاربردی برای آشنایی با پارتیشن ها و پارتیشن بندی لینوکس آماده کردم خدمتتون که در حین سادگی وقت زیادی هم گرفت

    یک آموزش مفید خدمتتون مینویسم در مورد مدیریت و نظارت روی پارتیشن های لبینوکس

    البته شما همه استاد هستید اما به هرحال برای همه انشالله مفید خواهد بود

    دستوراتی که واقعا کاربری هستند خدمتتون آموزش میدم base کار ما CentOS 6 می باشد

    1- مشاهده تمام پارتیشن ها در لینوکس:

    کد:
    [root@nginxweb ~]# fdisk -l
    
    
    Disk /dev/sda: 637.8 GB, 637802643456 bytes
    255 heads, 63 sectors/track, 77541 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          13      104391   83  Linux
    /dev/sda2              14        2624    20972857+  83  Linux
    /dev/sda3            2625        4582    15727635   83  Linux
    /dev/sda4            4583       77541   586043167+   5  Extended
    /dev/sda5            4583        5887    10482381   83  Linux
    /dev/sda6            5888        7192    10482381   83  Linux
    /dev/sda7            7193        7845     5245191   83  Linux
    /dev/sda8            7846        8367     4192933+  82  Linux swap / Solaris
    /dev/sda9            8368       77541   555640123+  8e  Linux LVM
    2- مشاهده یک پارتیشن خاص در لینوکس:

    کد:
    [root@nginxweb ~]# fdisk -l /dev/sda
    
    
    Disk /dev/sda: 637.8 GB, 637802643456 bytes
    255 heads, 63 sectors/track, 77541 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          13      104391   83  Linux
    /dev/sda2              14        2624    20972857+  83  Linux
    /dev/sda3            2625        4582    15727635   83  Linux
    /dev/sda4            4583       77541   586043167+   5  Extended
    /dev/sda5            4583        5887    10482381   83  Linux
    /dev/sda6            5888        7192    10482381   83  Linux
    /dev/sda7            7193        7845     5245191   83  Linux
    /dev/sda8            7846        8367     4192933+  82  Linux swap / Solaris
    /dev/sda9            8368       77541   555640123+  8e  Linux LVM
    3- مشاهده تمام دستورات مربوط به Fdisk:

    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    
    
    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').
    
    
    Command (m for help):
    سپس m را تایپ تمایید

    خروجی میشه:

    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    
    
    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').
    
    
    Command (m for help): m
    Command action
       a   toggle a bootable flag
       b   edit bsd disklabel
       c   toggle the dos compatibility flag
       d   delete a partition
       l   list known partition types
       m   print this menu
       n   add a new partition
       o   create a new empty DOS partition table
       p   print the partition table
       q   quit without saving changes
       s   create a new empty Sun disklabel
       t   change a partition's system id
       u   change display/entry units
       v   verify the partition table
       w   write table to disk and exit
       x   extra functionality (experts only)
    
    
    Command (m for help):
    4- نمایش تمامی پارتیشن تیبل ها در لینوکس:

    ابتدا:
    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    سپس حرف p را وارد نمایید

    خروجی میشه:


    Command (m for help): p


    کد:
    Disk /dev/sda: 637.8 GB, 637802643456 bytes
    255 heads, 63 sectors/track, 77541 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1          13      104391   83  Linux
    /dev/sda2              14        2624    20972857+  83  Linux
    /dev/sda3            2625        4582    15727635   83  Linux
    /dev/sda4            4583       77541   586043167+   5  Extended
    /dev/sda5            4583        5887    10482381   83  Linux
    /dev/sda6            5888        7192    10482381   83  Linux
    /dev/sda7            7193        7845     5245191   83  Linux
    /dev/sda8            7846        8367     4192933+  82  Linux swap / Solaris
    /dev/sda9            8368       77541   555640123+  8e  Linux LVM
    
    
    Command (m for help):
    5- چگونه یک پارتیشن رو در لینوکس پاک کنیم؟

    ابتدا فرض میگیریم که یک هارد به سرور متصل می باشد و sda می باشد

    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    سپس حرف d را تایپ نمایید و بعد شماده پارتیشن را انتخاب نمایید که معمولا در لینوکس 1 تا 4 می باشد

    نمونه:

    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    
    
    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').
    
    
    Command (m for help): d
    Partition number (1-4): 4
    
    
    Command (m for help): w
    The partition table has been altered!
    
    
    Calling ioctl() to re-read partition table.
    
    
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.
    You have new mail in /var/spool/mail/root
    *** دقت کنید که d کل پارتیشن رو حذف خواهد کرد

    6- چگونه یک پارتیشن جدید در لینوکس ایجاد کنیم؟

    ابتدا مشابه بالا:

    کد:
    [root@nginxweb ~]# fdisk /dev/sda
    سپس حرف n را تایپ میکنیم

    و سپس برای ساخت پارتیشن primary یا همون اصلی حرف p و برای سایت پارتیشن extended یا توسعه یافته حرف e را تایپ میکنیم

    نمونه:

    کد:
    [root@nginxweb ~]# fdisk  /dev/sda
    
    
    WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
             switch off the mode (command 'c') and change display units to
             sectors (command 'u').
    
    
    Command (m for help): n
    Command action
       e   extended
       p   primary partition (1-4)
    e
    پس از تایپ نوع پارتیشن نوبت به تعیین حجم پارتیشن مربوطه میرسه که واحد defualt در cent os بر اساس مگا بایت MB می باشد

    پس از پایان کار پارتیشن ها جهت دخیره تغییرات حرف w را تایپ نمایید
    نمونه:

    کد:
    Command (m for help): w
    The partition table has been altered!
    
    
    Calling ioctl() to re-read partition table.
    
    
    WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
    The kernel still uses the old table. The new table will be used at
    the next reboot or after you run partprobe(8) or kpartx(8)
    Syncing disks.

    انشاالله عمری باقی باشه آموزش های کامل تری نیز خواهم نوشت اگه زمان کافی داشته باشم

    پیروز و سربلند باشید

    مهندس عیسی محمدزاده

    nginxweb


    ویرایش توسط nginxweb : April 29th, 2013 در ساعت 02:55
    :: کارشناس فنی هاستینگ و مدیریت سرور
    :: کانفیگ حرفه ای سرور مجازی و اختصاصی و رفع اشکال سرور از سال 1388
    :: وب سایت : www.nginxweb.ir | تلفن شرکت: 02191300834

  2. تعداد تشکر ها ازnginxweb به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 92
    آخرين نوشته: September 30th, 2016, 12:26
  2. آموزشن ایمن سازی Open SSH (هدیه nginxweb)
    توسط nginxweb در انجمن ردهت,فدورا,سنت-او-اس Redhat,Fedora,CentOS
    پاسخ ها: 11
    آخرين نوشته: June 29th, 2015, 15:05
  3. هدیه nginxweb: آموزش دانلود ویدئوهای youtube بوسیله ssh لینوکس
    توسط nginxweb در انجمن ردهت,فدورا,سنت-او-اس Redhat,Fedora,CentOS
    پاسخ ها: 6
    آخرين نوشته: May 4th, 2014, 12:49
  4. پاسخ ها: 4
    آخرين نوشته: August 8th, 2011, 19:58

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •