Re: dd on samba
On Mon, 14 Mar 2005 19:53:12 -0300, Alejandro Pulver [EMAIL PROTECTED] wrote: Hello, Hi there, I have free space between two slices to I tried to do the same as you. Thank you! When you have the image of a slice generated by 'dd', it contains its partitions and filesystems. First you may want to make that slice image (file) to appear in '/dev', so you can manipulate its partitions. This is done (in FreeBSD 5.X, if you use 4.X use'vnconfig', there are examples in the Handbook) like with a CD-ROM ISO image (see the Handbook-Storage): mdconfig -a -t vnode -f file -u n It will appear in '/dev' as 'mdn', with its partitions, like the following: md1a md1c [...] So you can mount them, dump them, etc., like with a slice (in fact, it is an image of a slice). When you end what you want to do with it, do (after unmounting the partitions): mdconfig -d -u n Best Regards, Ale Great, this is what I was searching for! Thank you once more! Best regards, -- Pietro Piter Cerutti [EMAIL PROTECTED] [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dd on samba
On Mon, 14 Mar 2005, Pietro Cerutti wrote: Hi folks, I need to backup my whole disk, re organize my partitions, and then restore the whole thing. The problem is that the only place where I can put the backup is a samba mount. dd and dump won't work (they won't put the data on a directory). What else could I do? There probably are some dozen possibilities, but you could try /usr/ports/net/rsync Regards, Uli. Don't forget that I also need to backup the whole / and /var (which gives sometimes problems with some unreadable files) Thank you! -- Pietro Piter Cerutti [EMAIL PROTECTED] [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] * * Peter Ulrich Kruppa - Wuppertal - Germany * * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dd on samba
On Mon, 14 Mar 2005 13:27:19 +, Pietro Cerutti [EMAIL PROTECTED] wrote: dd and dump won't work (they won't put the data on a directory). Maybe I solved it, by making # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m But how is goint to be to restore the whole filesystem? Thanks! -- Pietro Piter Cerutti [EMAIL PROTECTED] [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: dd on samba
On Mon, 14 Mar 2005 13:34:17 + Pietro Cerutti [EMAIL PROTECTED] wrote: On Mon, 14 Mar 2005 13:27:19 +, Pietro Cerutti [EMAIL PROTECTED] wrote: dd and dump won't work (they won't put the data on a directory). Maybe I solved it, by making # dd if=/dev/ad0 of=/mnt/some_file.dd bs=2m But how is goint to be to restore the whole filesystem? Thanks! -- Pietro Piter Cerutti [EMAIL PROTECTED] [EMAIL PROTECTED] Beansidhe - SwiSS Death / Thrash Metal www.beansidhe.ch Windows: Where do you want to go today? Linux: Where do you want to go tomorrow? FreeBSD: Are you guys coming or what? Hello, I have free space between two slices to I tried to do the same as you. When you have the image of a slice generated by 'dd', it contains its partitions and filesystems. First you may want to make that slice image (file) to appear in '/dev', so you can manipulate its partitions. This is done (in FreeBSD 5.X, if you use 4.X use'vnconfig', there are examples in the Handbook) like with a CD-ROM ISO image (see the Handbook-Storage): mdconfig -a -t vnode -f file -u n It will appear in '/dev' as 'mdn', with its partitions, like the following: md1a md1c [...] So you can mount them, dump them, etc., like with a slice (in fact, it is an image of a slice). When you end what you want to do with it, do (after unmounting the partitions): mdconfig -d -u n Best Regards, Ale ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]