linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* btrfs doesn't format eMMC if previous filesystem is ext4
@ 2014-12-26 15:24 Ankur Tank
  2014-12-26 20:05 ` Zygo Blaxell
  2014-12-29  2:50 ` Anand Jain
  0 siblings, 2 replies; 9+ messages in thread
From: Ankur Tank @ 2014-12-26 15:24 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

Hi,

I wanted to test btrfs on the eMMC of beaglebone black based custom board.
Precondition: eMMC is formatted with ext4 filesystem
Use case:
        Format eMMC with mkfs.btrfs  -L  <label>  <dev>
Result:
        Mkfs.btrfs denies formatting eMMC because its existing filesystem

# mkfs.btrfs -L "1storage" /dev/mmcblk0p2
/dev/mmcblk0p2 appears to contain an existing filesystem (ext4).
Error: Use the -f option to force overwrite.

If I add "-f" its possible to format the eMMC.

# mkfs.btrfs -f -L "1storage" /dev/mmcblk0p2
Detected a SSD, turning off metadata duplication.  Mkfs with -m dup if you want to force metadata duplication.
Btrfs v3.17
See http://btrfs.wiki.kernel.org for more information.

Performing full device TRIM (1.72GiB) ...
Turning ON incompat feature 'extref': increased hardlink limit per file to 65536
[273917.692896] btrfs: device label 1storage devid 1 transid 3 /dev/mmcblk0p2
fs created label 1storage on /dev/mmcblk0p2
        nodesize 16384 leafsize 16384 sectorsize 4096 size 1.72GiB

I had downloaded debian package from following link
https://packages.debian.org/sid/armhf/btrfs-tools/download

Is it a bug ? or I am missing something ?

Thank you,

Regards,
Ankur
L&T Technology Services Ltd

www.LntTechservices.com<http://www.lnttechservices.com/>

This Email may contain confidential or privileged information for the intended recipient (s). If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2014-12-30  6:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-26 15:24 btrfs doesn't format eMMC if previous filesystem is ext4 Ankur Tank
2014-12-26 20:05 ` Zygo Blaxell
2014-12-29  2:50 ` Anand Jain
2014-12-29  7:15   ` Ankur Tank
2014-12-29  9:38     ` Martin Steigerwald
2014-12-29  9:55       ` Ankur Tank
2014-12-29 10:18         ` Martin Steigerwald
2014-12-30  6:53           ` Ankur Tank
2014-12-29  9:55     ` Anand Jain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).