Tagged Questions
0
votes
1answer
65 views
What disk is a file / directory stored on? [duplicate]
From the command line (bash) I would like to know what disk a given file is stored in. E.G.:
$ [what filesystem is this file in command] /tmp/example/file
/dev/sda1
2
votes
1answer
66 views
Finding all partitions with filesystems
I'm writing a script that will copy all of the files on a device to a directory. The problem is that some of the devices have multiple partitions and some of the partitions don't have filesystems to ...
8
votes
1answer
143 views
How to re-size partitions in a complete hard drive image?
I have taken a complete image of a hard drive using:
dd if=/dev/sda of=/home/user/harddriveimg bs=4M
It would seem to me, that I should be able to re-size the partitions within it after suitably ...
6
votes
2answers
914 views
Find filesystem of an unmounted partition from a script
I'm writing a custom automated install using AIF (Arch Installation Framework), and I need to find the filesystem on a partition given a partition.
So far I have this:
grok_partitions () {
local ...
9
votes
4answers
444 views
Is there a way to sync only one partition?
Is there a way to sync only one partition instead of all partitions?
Something like "sync /dev/sdc1".