Sparse image filesystem suitable for live linux filesystem

06
2013-08
  • Chaos_99

    I want to boot linux (Mint 14) from an USB drive, but mount essential parts of the filesystem from the hard drive (/home, /usr, /opt). Is there a filesystem type that can be used within a sparse image file on a ntfs partition that can be mounted and used for live r/w operations?

    I've seen another question and now know How to create a sparse image. But the questions only talks about on/off use for backups, essentially writing just once. Is this suitable for live use? Will such a sparse image shrink again when files are removed, or will it only grow? If not, are there alternatives? Are there file systems especially suitable for this, or is ext4 just fine?

    Thanks for any help.

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    Linux File system for a 1 TB External Hard drive
  • letronje

    I have a 1TB external seagate hard drive that i use it with my dell inspiron 1525 laptop running UBuntu 9.04. I dont intend to share my hdd with anyone, so my laptop is the only comp i will plug it into. Its on NTFS right now, it auto mounts as soon as i plug it in and i can transfer data without worrying about permissions.

    But, ntfs-3g takes up a lot of cpu and resources, particularly for long running data transfers of over 20G. So i want to shift to a native linux file system for my hdd (probably ext4 or ext3 ?).

    1) Will there be a significant difference in data transfer rate( <= 26 MBps currently) , cpu usage and system responsiveness with a native file system as opposed to NTFS ?

    2) Will auto mounting work or do i have to manually mount it every time.

    3) What do i have to do to mask file system permissions or to make sure that the permissions don't get in the way like in NTFS ?

    EDIT:

    I don't intend to ever use the drive in windows.


  • Related Answers
  • user7963

    I run exactly this configuration with XFS file system, and I am happy with it. Numerous comparisons of different file systems for Linux can be found on the Net, but I personally like low CPU utilization during copying or deleting large number of files.

    Not sure if the transfer speed with XFS will be much better than with NTFS - 25 MB/s is a typical limit for some USB controllers

  • Peltier

    You will have problems with file permissions with ext4, except if your user has the same UID on all the machines you use, or if you manage to set all files to 777 somehow.

    I've had the same problem a while ago, and the solution was to use the UDF filesystem. It works fine, even though the filesystem management tools don't seem do be updated much (the last version is from 2004).

  • Johan

    You forget that ext3 and ext4 are journalling filesystems so the chance of not losing data if your computer crash or similar are better.

    And if the disk will never again touch a windows computer, then switch.