LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2012, 04:14 AM   #1
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Rep: Reputation: 2
Creating an ntfs fs in a file and mounting it with loop


Is it possible? I'm running debian 6.0.3, and I've built a 52GB file I want to use as a ntfs fs (I'm backing up a friend's W7 computer, and need to copy shortcuts, which linux filesystems can't handle,) but when I
mkfs -t ntfs -q file
it reports:
"file is not a block device.
Refusing to make a filesystem here!"

mkfs -t ext4 -q file
also reports that file is not a block device, but offers to make a filesystem anyway.

Is there any way of convincing mkfs to build a ntfs filesystem?
 
Old 02-11-2012, 04:29 AM   #2
Wocky
Member
 
Registered: Oct 2004
Location: Australia
Posts: 37

Original Poster
Rep: Reputation: 2
I've found the answer with losetup:

losetup /dev/loop1 file
mkfs -t ntfs /dev/loop1

(possibly with other options to mkfs.)

Just for anyone else who wants to know.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting NTFS file system ventsyv Linux - Newbie 23 04-28-2011 06:43 PM
Defining loop statement for creating new file each time neo009 Linux - Newbie 6 04-12-2009 06:49 AM
mounting the ntfs file system psureshrao Linux - Enterprise 3 11-25-2008 03:21 AM
Gentoo. Problems with the loop device when mounting an iso file Snerkel Linux - Software 4 11-26-2004 03:34 PM
Mounting NTFS File Systems quorn Linux - General 7 10-09-2003 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration