Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Unable to add space


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
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  
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  
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  
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..
Login or Register to Reply

|
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
Hi, I am unable to get the full FS space, as /home is 100% utilized and after deleting unwanted files, its still 100%. After checking the du -sk * | sort -n output and converting it to MBs, the total sizes comes out to be 351 MBs only however the lvol is of 3GB. I don't know where is all the space...... HP-UX
2
HP-UX
Unable to read the first space of a record in while loop
machomaddy
I have a loop like while read i do echo "$i" . . . done < tms.txt The tms.txt contians data like 2008-02-03 00:00:00 <space>00:00:00 . . . 2010-02-03 10:54:32... Shell Programming and Scripting
2
Shell Programming and Scripting
Solaris file system unable to use available space
iris1
Hi, The solaris filesystem /u01 shows available space as 100GB, and used space as 6 GB. The Problem is when iam trying to install some software or copy some files in this file system /u01 Iam unable to copy or install in this file system due to lack of space. ofcourse the software...... Solaris
31
Solaris
[Sol10/VMWare] Unable to see new disk space.
BOFH
The master copy was set to 5 gigs. As the instance is cloned, additional space is provided. I was given a new instance along with 15 gigs of additional space. The problem is I can't see the additional space, either as additional space on the primary disk or as a second disk. # format Searching...... Solaris
8
Solaris
Unable to dump due to limited space?
Mac Tire
After rebuilding the RAIDs on the SCO Unix, the following dialog appears when rebooting the machine. Fssat: /dev/boot mounted Mounted /stand filesystem Fsstat: /dev/usr1 okay Mounted /usr1 filesystem (continues usr2, usr3, Fsstat: /dev/usr4 okay Panic: HTFS: Bad directory ino...... SCO
2
SCO

Featured Tech Videos