Skip to content

Instantly share code, notes, and snippets.

@HostOnNet
Created October 28, 2014 07:17
Show Gist options
  • Select an option

  • Save HostOnNet/2f6804294d9974a4105b to your computer and use it in GitHub Desktop.

Select an option

Save HostOnNet/2f6804294d9974a4105b to your computer and use it in GitHub Desktop.
[root@localhost ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb1 1.8T 688G 1.1T 40% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 504M 72M 408M 15% /boot
[root@localhost ~]#
DataShark server.
/ on /dev/sdb1
/boot on /dev/sda1
@HostOnNet
Copy link
Author

Can't format the /dev/sda3

[root@localhost ~]# mkfs.ext4 /dev/sda3
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: inode_size (128) * inodes_count (0) too big for a
    filesystem with 0 blocks, specify higher inode_ratio (-i)
    or lower inode count (-N).

[root@localhost ~]# parted -l
Model: ATA TOSHIBA DT01ACA2 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  538MB   537MB   primary   ext4            boot
 2      538MB   8927MB  8389MB  primary   linux-swap(v1)
 3      8928MB  1990GB  1981GB  extended                  lba


Model: ATA ST2000DM001-1CH1 (scsi)
Disk /dev/sdb: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      1049kB  2000GB  2000GB  primary  ext4


[root@localhost ~]# 

@HostOnNet
Copy link
Author

Even removing /dev/sda3 not working, asking to reboot, already rebooted once...

[root@localhost ~]# parted /dev/sda
GNU Parted 2.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print                                                            
Model: ATA TOSHIBA DT01ACA2 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type      File system     Flags
 1      1049kB  538MB   537MB   primary   ext4            boot
 2      538MB   8927MB  8389MB  primary   linux-swap(v1)
 3      8928MB  1990GB  1981GB  extended                  lba

(parted) rm 3                                                             
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.
(parted) quit                                                             
Information: You may need to update /etc/fstab.                           

[root@localhost ~]# 

@HostOnNet
Copy link
Author

Rebooted, still no luck

[root@localhost ~]# parted /dev/sda print free
Model: ATA TOSHIBA DT01ACA2 (scsi)
Disk /dev/sda: 2000GB
Sector size (logical/physical): 512B/4096B
Partition Table: msdos

Number  Start   End     Size    Type     File system     Flags
        32.3kB  1049kB  1016kB           Free Space
 1      1049kB  538MB   537MB   primary  ext4            boot
 2      538MB   8927MB  8389MB  primary  linux-swap(v1)
        8927MB  2000GB  1991GB           Free Space

[root@localhost ~]# parted /dev/sda mkpart
Partition type?  primary/extended? primary                                
File system type?  [ext2]? ext4                                           
Start? 8930MB                                                             
End? 2000GB                                                               
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (Device or resource busy).  As a result, it may not reflect all of your changes until after reboot.
[root@localhost ~]# 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment