Custom Search

Tuesday, May 24, 2011

howto linux usb harddisk partition using fdisk cfdisk

howto linux usb harddisk partition using fdisk cfdisk

1)List
# fdisk -l

2)Partition
# cfdisk /dev/sdb <----- Here sdb is the USB drive.
or
# fdisk /dev/
* first Detete all partition
* the create new (using cfdisk we can do it easily)

3) Format
# fdisk -l

# mkfs.ext4 /dev/sdc5

# mkfs.ext4 /dev/sdc6

# mkfs.ext4 /dev/sdc7

4) Mount
# fdisk -l

2 comments:

  1. 4) Mount ?

    correct:

    # mkdir /mnt/foo
    # mount /dev/sdc5 /mnt/foo

    ReplyDelete
  2. $ cd /media/saju/a9e0d610-0412-4da0-b127-927cead21a2d
    $ sudo chmod -R 777 ../

    ReplyDelete