You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
I noticed that you have to be root for those commands to work. Is that always the case for sparse files?Merc– Merc2015-12-13 03:06:06 +00:00Commented Dec 13, 2015 at 3:06
-
No.Sorry. They should work as normal user as well, given proper write permission on the main folder.Damiano Verzulli– Damiano Verzulli2015-12-13 08:38:16 +00:00Commented Dec 13, 2015 at 8:38
-
Thanks for this great answer. Leaves me with a question and a worry. Worry: Pretending to have successfully written that second 2GB file when there was really no space for it? Troublesome... What happens when you try to read it back (with sha1sum or something)? Question: Are there ways to back up a sparse file across the network that keeps it sparse (i.e. only actually copies the parts that are used)?Thilo– Thilo2015-12-13 11:47:39 +00:00Commented Dec 13, 2015 at 11:47
-
2I suspect the reason why you did not run out of space when creating the last file, is that you created a sparse file in the sparse file-filesystem,... so to say.leonixyz– leonixyz2021-10-30 13:26:15 +00:00Commented Oct 30, 2021 at 13:26
-
1@DamianoVerzulli I asked this specific question, and got a good answer: unix.stackexchange.com/a/781639/149203Luis A. Florit– Luis A. Florit2024-08-15 12:02:15 +00:00Commented Aug 15, 2024 at 12:02
|
Show 8 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. apache-2.2), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you