{"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>Zvydenie kapaciy disku debian (ext4)<\/p>\n\n\n\n<p>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>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>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>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>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>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>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>Update grub<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>update-grub<\/code><\/pre>\n\n\n\n<p>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=\"MzIwMtA1MNU1slQwNLUyMLUysQQA\" \/><input type=\"hidden\" name=\"postContent_0\" value=\"7VdRb9s2EH7XrzhkKCp3tmU5amIbSYAmaYOgyVY0yTb0JaCkU8yYIlWScuIM++87UrKdFm7RdBi2hwqwfCaPx7v77j7SwV518GG+yFFyhBmrW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Dcl9BzcImmMd8UTZduwvG7EGOba+iSeCSlzmCpQCgEuyFe+sRFOhpQutmcuP3uB8v8yyyzLBwnbI\/GCbEMXRC\/xjLfVQ13Hvg1zg3+KxJhwqImEgmOmBDuuOEqsyLsuNNJY4\/qOf98cT9430wsT6fPjRd0myaTE2izRc5oNKrWJLtbTeBdmqGWlHhj3ZlZNxcX0hV5uws4JddGjVF\/tKbuUHT9Zb2yJFYh066q3SasoFj8CavrprTpUpRie8WZuYF7+vEFwpS19feaNxdHb+m+19p9An9KJhVEaLOo5YboRtfp03E8eX91eH10fnx2+svra3pd\/XF9\/PrNq6uzy\/2tjzWn22Fhslm\/JN19AjrDrU0BXVU5URE0LnxjBLVf0\/uC2wfv2z8zHL\/j2kcVQD0xLMyaOeJPN\/kb\" \/> \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}]}}