New Option: partition file system

If you want to contribute to Partimage, please post there

Moderator: feffer

Post Reply
murilo.ito
Posts: 2
Joined: Thu Jul 14, 2011 9:29 pm

New Option: partition file system

Post by murilo.ito » Thu Jul 14, 2011 9:58 pm

Hi,

I'm using partimage for a while, and one thing I need to know before starting a backup is the file system type of partition.

I found it simpler to use partimage to give this information. So I created a new option 'F' (or --filesystem).

Usage:
partimage -F /dev/sda1

Output:
File system: reiserfs-3.6
Supported: yes


Maybe this patch can help someone else.

http://pastebin.com/TET3enRp

cheers,

Murilo Ito.
Last edited by murilo.ito on Tue Jul 26, 2011 2:48 pm, edited 1 time in total.

murilo.ito
Posts: 2
Joined: Thu Jul 14, 2011 9:29 pm

Recognize ext4 file system

Post by murilo.ito » Mon Jul 18, 2011 8:52 pm

A simple patch that partimage identify the ext4 file system.

http://pastebin.com/wxuFeyFP

feffer
Posts: 126
Joined: Tue Mar 17, 2009 4:30 am

Re: New Option: partition file system

Post by feffer » Tue Jul 26, 2011 6:53 pm

murilo.ito wrote:Hi,

I'm using partimage for a while, and one thing I need to know before starting a backup is the file system type of partition.

I found it simpler to use partimage to give this information. So I created a new option 'F' (or --filesystem).

Usage:
partimage -F /dev/sda1

Output:
File system: reiserfs-3.6
Supported: yes


Maybe this patch can help someone else.

http://pastebin.com/TET3enRp

cheers,

Murilo Ito.
Partimage has not been under active development for some years now, so this patch will not be integrated into partimage. I have looked at this code and it seems to be valid. That said, it is trivial to find the filesystem type in several ways. One could mount the partition in question and do "df -T" or use "fdisk" etc.

Still, Murilo found this useful and others might also. However, it's use is unsupported, so you're on own. For most users I would suggest simply using the partimage version that is supplied in their distro's repos or on their rescue CD.

feffer

Post Reply