{"id":14,"date":"2006-11-16T17:27:07","date_gmt":"2006-11-16T21:27:07","guid":{"rendered":"http:\/\/theblane.com\/blog\/?p=14"},"modified":"2022-03-19T03:01:43","modified_gmt":"2022-03-19T08:01:43","slug":"linux-refresher","status":"publish","type":"post","link":"http:\/\/www.theblane.com\/blog\/archives\/14","title":{"rendered":"Linux refresher"},"content":{"rendered":"<p>Welp, today I had to search my brain to figure out how to create new filesystems on a linux distribution since I&#8217;ve been focusing more on Solaris lately.  Just incase others need this info and do google searches, I&#8217;ll put the info on here.<\/p>\n<p>First thing you do is figure out how your disk is connected.  Usually this is seen in the <strong>dmesg<\/strong> command.  If you&#8217;re using SCSI with RAID, type <strong>mount<\/strong>.  What you&#8217;ll see there is something like \/dev\/ida\/c0d0p1.  When you see that and you don&#8217;t see your other disks, try doing this command:<\/p>\n<p><strong>fdisk \/dev\/ida\/c1d0<\/strong><\/p>\n<p>If it shows output that means you&#8217;ve found your disk!<\/p>\n<p>From there you type &#8220;p&#8221; and press enter to show the partition table.  &#8220;n&#8221; will allow you to create a new table and just follow the instructions after that. After completing the new table you type &#8220;w&#8221; to write the partition table to disk.<br \/>\nOnce that&#8217;s done it&#8217;s time to make the filesystem.  For this I use the <strong>mkfs<\/strong> command.  Here is an example of the syntax:<\/p>\n<p><em>mkfs -t ext3 \/dev\/ida\/c1d0p1<\/em><\/p>\n<p>Now you edit your \/etc\/fstab file with something like this:<\/p>\n<p><em> \/dev\/ida\/c1d0p1    \/media    ext3 defaults 0 0<\/em><\/p>\n<p>Mount your new partition:<\/p>\n<p><em>mount \/media<\/em><\/p>\n<p>And you&#8217;re done!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Welp, today I had to search my brain to figure out how to create new filesystems on a linux distribution&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":1,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":1325,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/posts\/14\/revisions\/1325"}],"wp:attachment":[{"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.theblane.com\/blog\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}