LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mke2fs -jv /dev/<xxx> ; will not make a filesystem here (https://www.linuxquestions.org/questions/slackware-14/mke2fs-jv-dev-xxx-%3B-will-not-make-a-filesystem-here-4175434495/)

Forget-Me-Not 10-28-2012 11:11 AM

mke2fs -jv /dev/<xxx> ; will not make a filesystem here
 
With command-line:fdisk -l
I just have one partition primary: /dev/sda1 (boot)

First of all in LFS book is command-line
mke2fs -jv /dev/<xxx>. I replace <xxx> by sda1
It will be mke2fs -jv /dev/sda1

This is my mistake:
/dev/sda1 is mounted; will not make a filesystem here!

I use Slackware 13.37

Might you show me what's wrong with it?
Thank you very much!!!

Didier Spaier 10-28-2012 12:00 PM

mke2fs' purpose is to create a file system in a partition but is not supposed to erase an existing file system.

If you really want to do that (which would of course completely and definitely erase you Slackware 13.37 system) you should use that command from elsewhere (for instance an installation medium or a live DVD or USB key).

If instead you want to add a new partition to your system then you could use 'cfdisk' for that if you have enough unused space on your hard drive, else 'gparted' to re size hda1 first, then create the new partition in the freed space. After that you will be able to use ext2fs to install a file system in the new partition (gparted can do that for you as well).

Good luck.

Forget-Me-Not 10-29-2012 06:28 AM

Thank you very much!

I reinstalled Slackware with 2 partition include sda1 and sda2.
mke2fs -jv /dev/sda2
It's okey!


All times are GMT -5. The time now is 08:43 AM.