backup msdos slice
Hi, I hate to start this potential storm, but... I have a machine with both an MS and FreeBSD slices on it. I can easily back up and recover the FreeBSD slices using dump(8)/restore(8) But, that won't work for the MS slice (which happens to be FAT32 on this machine) because there is no superblock and inode structure. So, what I would like is something that would dump the MS slice to a FreeBSD file or media written in the FreeBSD world and that I could then pick out files and directories somewhat like I do using restore on a dump file.I suspect that tar might not keep enough meta information to be right for this job. Is that a valid concern?Recovered files should still work in MS-Win. Is there anything worthwhile out there that can do this and not go through some the rigamarole that some MS backup systems seem to want to put one through? Basically, I want to back up the MSDOS slice (I know MS calls it a primary partition) from the FreeBSD side of things. I can read and write the slice nicely from FreeBSD, but not dump/restore. I would appreciate any suggestions. jerry ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: backup msdos slice
So, what I would like is something that would dump the MS slice to a FreeBSD file or media written in the FreeBSD world and that I could then pick out files and directories somewhat like I do using restore on a dump file.I suspect that tar might not keep enough meta information to be right for this job. Is that a valid concern?Recovered files should still work in MS-Win. only tar i think ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: backup msdos slice
On Mon, Mar 02, 2009 at 02:10:42PM -0500, Jerry wrote: Hi, I hate to start this potential storm, but... I have a machine with both an MS and FreeBSD slices on it. I can easily back up and recover the FreeBSD slices using dump(8)/restore(8) But, that won't work for the MS slice (which happens to be FAT32 on this machine) because there is no superblock and inode structure. So, what I would like is something that would dump the MS slice to a FreeBSD file or media written in the FreeBSD world and that I could then pick out files and directories somewhat like I do using restore on a dump file. I suspect that tar might not keep enough meta information to be right for this job. Is that a valid concern? Just mount the FAT32 fs, and use any achiver you like, e.g. zip, tar, cpio. All can save all metadata that FAT32 has. If you use zip, you can even use winzip on windows to extract files from it, if that is important to you. Some time ago I wrote a utility called dosrestore (available on my website) that could extract files from backup floppies made with MS-DOS 5 or thereabouts. I haven't tested it beyond my own backup floppies, though. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpDn5ih8UdNG.pgp Description: PGP signature
Re: backup msdos slice
On Mon, 2 Mar 2009 14:10:42 -0500, Jerry jerr...@msu.edu wrote: So, what I would like is something that would dump the MS slice to a FreeBSD file or media written in the FreeBSD world and that I could then pick out files and directories somewhat like I do using restore on a dump file. There should be a simple way: Just dd the FAT partition into a file. You can then backup this file in FreeBSD (by any way you want). In order to access files inside the dd image you can simply mount it using the md (memory disk) facility. An example (not verified, I don't have any MICROS~1 around); I'll assume that /dev/ads2c is the FAT file system in question (again, I do admit that I don't know how FAT partitions occur as device files in FreeBSD). % dd if=/dev/ads2c of=fat.dd bs=1m 12345678+1 records in 12345678+1 records out Now you've got fat.dd. You can backup this file or just backup content parts of it. % sudo mdconfig -a -t vnode -u 10 -f fat.dd % mount -t msdosfs -o ro /dev/md10 /mnt You now can access the files in fat.dd from the /mnt subtree. Be sure to check % man mount_msdosfs for additional options you might need (character conversion, large, longnames, mask, ... - I don't exactly know what to use). Now you can partwise plusgood backup files from within /mnt, using your favourite backup method (tar to tape, rsync to remote machine or what you prefer). Basically, I want to back up the MSDOS slice (I know MS calls it a primary partition) from the FreeBSD side of things. I can read and write the slice nicely from FreeBSD, but not dump/restore. Now you can. :-) -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org