Hello, I have following suggestion for sfdisk: - adding offset/shift support for cumbersome raw disk images (like fixed-size VDI), that don't start at the beginning of the file. Required changes? IMO straightforward way is just adding another option (below is an example), global variable (e.g. shift) and fixing sseek() code and R.total_size in get_geometry() to take it into account. -t# [or --offset #] ignore the number of bytes at the beginning FWIW such option is rather useless for working on many files at the same time, unless offsets are really the same. In case of fixed-size VDI, offset depends on the image size. Alternatives? Some time ago I wrote a simple workaround for fixed-size VDIs (doing a bit more than is needed here, i.e. finding also an offset of the raw disk image) using LD_PRELOAD technique. It can be found here: https://gist.github.com/571086. Now I think that having plain offset option in sfdisk would be still useful. I even regret that I did not mail about it back then in 2009, because maybe it would be available in sfdisk for a long time already... Anyway I'd like to know your opinions before making any patches. After all I am not sure whether such functionality is acceptable in sfdisk according to your rules. Regards. P.S. Please CC me (I am not on the list). -- PrzemysÅaw 'Przemoc' PaweÅczyk http://przemoc.net/ -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html