{"id":1312,"date":"2020-05-29T15:09:49","date_gmt":"2020-05-29T13:09:49","guid":{"rendered":"https:\/\/blog.mhasin.eu\/?p=1312"},"modified":"2020-05-29T15:09:50","modified_gmt":"2020-05-29T13:09:50","slug":"debian-filesystem-expand","status":"publish","type":"post","link":"https:\/\/blog.mhasin.eu\/?p=1312","title":{"rendered":"Debian filesystem expand"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Zvydenie kapaciy disku debian (ext4)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Info disku:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># df -h .\nFilesystem      Size  Used Avail Use% Mounted on\n\/dev\/xvda1      7.8G  642M  6.8G   9% \/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Disk bol rozsireny na 20GB:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># fdisk -l\n\nDisk \/dev\/xvda: 20 GiB, 21474836480 bytes, 41943040 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: dos\nDisk identifier: 0xd7f2e0e8\n\nDevice     Boot Start      End  Sectors Size Id Type\n\/dev\/xvda1 *     4096 16773119 16769024   8G 83 Linux<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Dsik je pozuivany ako root nieje ho mozne odpojit:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># umount \/\numount: \/: target is busy.\n        (In some cases useful info about processes that use\n         the device is found by lsof(8) or fuser(1))<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Zmazanie a vytvorenie novej particie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># fdisk \/dev\/xvda\n\nWelcome to fdisk (util-linux 2.25.2).                                                                                                                                                           \nChanges will remain in memory only, until you decide to write them.\nBe careful before using the write command.\n\nCommand (m for help): p\nDisk \/dev\/xvda: 20 GiB, 21474836480 bytes, 41943040 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: dos\nDisk identifier: 0xd7f2e0e8\n\nDevice     Boot Start      End  Sectors Size Id Type\n\/dev\/xvda1 *     4096 16773119 16769024   8G 83 Linux<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Zmazanie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): d\nSelected partition 1\nPartition 1 has been deleted.<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Vytvorenie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): n\nPartition type\n   p   primary (0 primary, 0 extended, 4 free)\n   e   extended (container for logical partitions)\nSelect (default p): p\nPartition number (1-4, default 1): \nFirst sector (2048-41943039, default 2048): 4096\nLast sector, +sectors or +size{K,M,G,T,P} (4096-41943039, default 41943039): \n\nCreated a new partition 1 of type 'Linux' and of size 20 GiB.<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): a\nSelected partition 1\nThe bootable flag on partition 1 is enabled now.\n\nCommand (m for help): p\nDisk \/dev\/xvda: 20 GiB, 21474836480 bytes, 41943040 sectors\nUnits: sectors of 1 * 512 = 512 bytes\nSector size (logical\/physical): 512 bytes \/ 512 bytes\nI\/O size (minimum\/optimal): 512 bytes \/ 512 bytes\nDisklabel type: dos\nDisk identifier: 0xd7f2e0e8\n\nDevice     Boot Start      End  Sectors Size Id Type\n\/dev\/xvda1 *     4096 41943039 41938944  20G 83 Linux<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>Command (m for help): w\nThe partition table has been altered.\nCalling ioctl() to re-read partition table.\nRe-reading the partition table failed.: Device or resource busy\n\nThe kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8).<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Vynutenie FSCK po reboote:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/etc\/default\/grub<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX_DEFAULT=\"quiet fsck.mode=force\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Update grub<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>update-grub<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Rozsirenie particie:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>resize2fs \/dev\/xvda1<\/code><\/pre>\n<div class=\"pdf24Plugin-cp\"> \t<form name=\"pdf24Form0\" method=\"post\" action=\"https:\/\/doc2pdf.pdf24.org\/wordpress.php\" target=\"pdf24PopWin\" onsubmit=\"var pdf24Win = window.open('about:blank', 'pdf24PopWin', 'resizable=yes,scrollbars=yes,width=600,height=250,left='+(screen.width\/2-300)+',top='+(screen.height\/3-125)+''); pdf24Win.focus(); if(typeof pdf24OnCreatePDF === 'function'){void(pdf24OnCreatePDF(this,pdf24Win));}\"> \t\t<input type=\"hidden\" name=\"blogCharset\" value=\"Cw1x07UAAA==\" \/><input type=\"hidden\" name=\"blogPosts\" value=\"MwQA\" \/><input type=\"hidden\" name=\"blogUrl\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLQUA\" \/><input type=\"hidden\" name=\"blogName\" value=\"c\/LxdwcA\" \/><input type=\"hidden\" name=\"blogValueEncoding\" value=\"gzdeflate base64\" \/><input type=\"hidden\" name=\"postId_0\" value=\"MzQ2NAIA\" \/><input type=\"hidden\" name=\"postTitle_0\" value=\"c0lNykzMU0jLzEktriwuSc1VSK0oSMxLAQA=\" \/><input type=\"hidden\" name=\"postLink_0\" value=\"yygpKSi20tdPyslP18vNSCzOzNNLLdW3L7A1NDY0AgA=\" \/><input type=\"hidden\" name=\"postAuthor_0\" value=\"y00syfcwNAIA\" \/><input type=\"hidden\" name=\"postDateTime_0\" value=\"MzIwMtA1MNU1slQwNLU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+1PaxNsEwnTa6ECYY8FqQVzpK2JjhqzLlNTDuJd0YSUUkxC1GtrYNvEhHA6SUa+pjt3xRtJNk7BLkOCcreW78PO6YjSNKbv+fNO96J52r7pv\/4LQyT+w22rGHR+caGQOVgYSb+6D64rQRQ+e+sR7Ci7QNOdLqanthyD+JsTYw+l1ReyTUj2xVCAUgk2JzT4zke4alG41pxvh5gc3\/c\/ctEocN9gdjRPiJmpGH+Omb8qGGw\/8BucG\/zW\/MGFRE78EJ0wId0lxlVkRdtydprFH+Zx\/qdwP3jULqzvty80Lauppywm00SJjNBpVaxq7NinwJs1RSwq8se6mrZtOiGRF3p4CTsiVUbOpv5BTd5W6+rJeWBKr0NYuq90hrCBf\/L2s6ya1qctKse2Z5m7iln5sz6Wytr5Ren158oZ6y\/bILahVMqkgQptFLW1EU12n20N8+u76+MPJxcvzs19efaDX9R8fXr56\/eL6\/Opw51PNqRMtTDbvlyR7SDmQ4c6Wvl5XOREYNNZ9pXO11+n9i0ePnfau\/SfG8Ru6T0opKrJhYTZUFH9+\/t8=\" \/> \t\t<a href=\"https:\/\/www.pdf24.org\" target=\"_blank\" title=\"www.pdf24.org\" rel=\"nofollow\"><img src=\"https:\/\/blog.mhasin.eu\/wp-content\/plugins\/pdf24-post-to-pdf\/img\/pdf_32x32.png\" alt=\"\" border=\"0\" height=\"32\" \/><\/a> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<span class=\"pdf24Plugin-cp-text\">Send article as PDF<\/span> \t\t<span class=\"pdf24Plugin-cp-space\">&nbsp;&nbsp;<\/span> \t\t<input class=\"pdf24Plugin-cp-input\" style=\"margin: 0px;\" type=\"text\" name=\"sendEmailTo\" placeholder=\"Enter email address\" \/> \t\t<input class=\"pdf24Plugin-cp-submit\" style=\"margin: 0px;\" type=\"submit\" value=\"Send\" \/> \t<\/form> <\/div>","protected":false},"excerpt":{"rendered":"Zvydenie kapaciy disku debian (ext4) Info disku: Disk bol rozsireny na 20GB: Dsik je pozuivany ako root nieje ho mozne odpojit: Zmazanie a vytvorenie novej particie: Zmazanie: Vytvorenie: Vynutenie FSCK po reboote: Update grub Rozsirenie particie: &nbsp;&nbsp; Send article as PDF &nbsp;&nbsp;\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"arc_restricted_post":false,"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1312","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1312"}],"version-history":[{"count":1,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1312\/revisions"}],"predecessor-version":[{"id":1313,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=\/wp\/v2\/posts\/1312\/revisions\/1313"}],"wp:attachment":[{"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mhasin.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}