You are here: Foswiki>Main Web>HowTo>LinuxTips (revision 1)EditAttach
  • 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
Edit | Attach | Print version | History: r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r1 - 17 Sep 2014, ErkcanOzcan

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