Unable to add space

Tags
ubuntu

 
Thread Tools Search this Thread
# 1  
Old 05-21-2016
Unable to add space

I have / root directory has file system /dev/sda1 with 19G space
I want to add some more space to /home directory but unable to do it while running below command getting below message

Code:
$sudo mkfs -t ext4 /dev/sda2
mke2fs 1.42.9 (4-Feb-2014)
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).

#lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 55G 0 disk
├─sda1 8:1 0 19G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 1022M 0 part [SWAP]
sr0 11:0 1 33M 0 rom


Last edited by Scott; 05-21-2016 at 03:33 PM.. Reason: Please use code tags
# 2  
Old 05-21-2016
Quote:
Originally Posted by megh
I have / root directory has file system /dev/sda1 with 19G space
I want to add some more space to /home directory but unable to do it while running below command getting below message

Code:
$sudo mkfs -t ext4 /dev/sda2
mke2fs 1.42.9 (4-Feb-2014)
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).

#lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 55G 0 disk
├─sda1 8:1 0 19G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 1022M 0 part [SWAP]
sr0 11:0 1 33M 0 rom

Partition /dev/sda2 is an extended partition, used to encapsulate all the logical partitions, like /dev/sda5 (swap). You can not use that to put a filesystem on it.

You need to create another partition number /dev/sda6, (use fdisk or parted for that), then you can create a filesystem ext4 on it.
# 3  
Old 05-26-2016
My view is that you have allocated almost all the space to /dev/sda1 and the others (/dev/sda2 & /dev/sda5 are probably too small for a filesystem to be formed. I might be wrong, so I would be happy for any correction.

Did you allocate the space directed to the / filesystem or is a logical volume manager in play here?




Robin
# 4  
Old 05-26-2016
Quote:
Originally Posted by rbatte1
My view is that you have allocated almost all the space to /dev/sda1 and the others (/dev/sda2 & /dev/sda5 are probably too small for a filesystem to be formed. I might be wrong, so I would be happy for any correction.

Did you allocate the space directed to the / filesystem or is a logical volume manager in play here?
Robin
/dev/sda is reporting 55G and /dev/sda1 has only 19G. Which makes your view improvable.

Unfortunately, the lsblk output provided does not give the information needed to determinate the type of partitions. However, there are enough clues to understand that what you said it is very unlikely.

The Ubuntu default partition scheme is to create a /dev/sda1 primary partition with mounting point on /
The second partition in /dev/sda2 is an extended partition, thus the 1k size.
And the third partition is /dev/sda5 (another clue) for swap.

And this is an Ubutu subforum.

Thus, why I suggested to continue with the schema and create another logical partition /dev/sda6 using some of the space available from the 55G shown.

Last edited by Aia; 05-26-2016 at 05:31 PM..
# 5  
Old 05-27-2016
Yes, I didn't spot that. Apologies.

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Unable to get full FS space after mounting Kits HP-UX 2 12-27-2013 12:43 PM
Unable to find utilized disk space on zone server. manoj.solaris Solaris 4 09-16-2013 07:02 AM
Unable to pass a space inside a variable shell scripting Kits HP-UX 6 08-14-2013 01:21 PM
F7fa22c9 i o sysj2 unable to allocate space in file system ranjithm AIX 0 01-02-2013 06:52 AM
Unable to add new group in Solaris sandip250382 Solaris 4 03-27-2012 01:35 PM
Unable to read the first space of a record in while loop machomaddy Shell Programming and Scripting 2 03-07-2012 04:39 AM
Unable to free space due to inode in use by database prashant185 Red Hat 0 09-11-2011 07:43 AM
Unable to add persistent IP reply.ravi AIX 2 07-20-2011 01:05 AM
Unable to add disk to VG group. jpkumar10 Solaris 3 07-15-2011 07:29 PM
Solaris file system unable to use available space iris1 Solaris 31 06-21-2011 06:30 AM
Unable to understand disk layout and where are the free space kumarmani Solaris 9 09-09-2009 09:05 AM
[Sol10/VMWare] Unable to see new disk space. BOFH Solaris 8 09-09-2008 04:31 PM
Unable to remove file using rm: Disk space is full Pankajakshan Linux 8 09-06-2008 01:40 AM
can not reboot : PCI: Unable to handle 64-bit address space for moinkhan31 Red Hat 0 01-09-2008 08:36 AM
Unable to dump due to limited space? Mac Tire SCO 2 02-27-2006 10:18 AM