Difference: LinuxTips (r2 vs. r1)

  • Adding a new hard drive:

    fdisk -ul # this tells us the location of the new disk
    fdisk /dev/sdb

    n - create new partition
    p - primary
    1 - first partition
    the rest use the default options
    t - we intend to pick the relevant code for the partition
    83 - Linux (L lists the possible codes)
    w - write the modifications to disk
    Create new file system
    mkfs.ext3 /dev/sdb1
    Check the block size of a partition
    dumpe2fs /dev/sdb1 | grep -i 'size'
    edit /etc/fstab to add the new partition to be mounted
    /dev/sdb1 /mnt/data1 ext3 defaults 1 1
    mount /mnt/data1

-- ErkcanOzcan - 17 Sep 2014

  • Determine the type of file system on a drive: file -sL /dev/sd*

View topic | View difference side by side | History: r3 < r2 < r1 | More topic actions
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback