Re: [Mondo-devel] Fresh Start: hard drive not found.
Brought to you by:
bcornec
From: Peter C. <pc...@pc...> - 2008-12-10 10:57:18
|
I'm sorry if this is redundant, admittedly coming in on the end here, but FWIW how I did a working dump to a USB external hard drive was: /usr/sbin/mondoarchive -O -0 -U -d /dev/sdb -s40000m -z Where sdb is a 40GB external hard drive. It re-partitioned, formatted, and dumped my system to the external drive in a bootable state. Plug the drive into another system, boot via the USB drive, right into mondorestore. It won't create any ISOs doing it this way, the archive is created directly onto the /dev/sdb device in the same format you'd see if you burned and mounted one of the iso's created via -i and looked at the filesystem there. The caveat with doing it this way is that you need somewhere to store the temp files, with no compression they equal a little more than the size of the originating filesystem's usage with selinux contexts, since the program creates the entire backup and then flushes it out to the USB drive at the end. Perhaps a bit more graceful way would be to move the created and gzip'd sets and related context etc file over to the USB archives/ directory once the gzip call is complete, saving lots of room on the originating device for this method? To create iso's directly onto the USB hard drive I use /usr/sbin/mondoarchive -Oi -0 -d /mnt/mondodrive -s3950m -z For me that creates 4 mondorescue-x iso files on the external drive, previously formatted as vfat and mounted at /mnt/mondodrive before running mondoarchive. No real reason for vfat here other than it allows me to move the external drive to a Windows system to burn the image if needed. I haven't experimented with it, but I think -U and -i are exclusive. > -----Original Message----- > From: Doug Laidlaw [mailto:lai...@ho...] > Sent: Wednesday, December 10, 2008 4:09 AM > To: mon...@li... > Subject: Re: [Mondo-devel] Fresh Start: hard drive not found. > > > On Wednesday 10 December 2008 5:33:16 pm Doug Laidlaw wrote: > > On Wednesday 10 December 2008 4:32:40 pm Doug Laidlaw wrote: > > > On Wednesday 10 December 2008 3:58:55 am Doug Laidlaw wrote: > > > > On Tuesday 09 December 2008 10:18:11 pm Bruno Cornec wrote: > > > > > Well you have to call it /dev/sdd when using the -U option. > > > > > mondoarchive will deal with the partitioning & formating, thus > > > > > creating the /dev/sdd1 you'll mount at restore time. > > > > > > > > > > > Then: "device found at 6" > > > > > > > > > > What gives modprobe usb-storage then ? > > > > > We need that USB available so that I can get the log. > > > > > > > > > > Bruno. > > > > > > > > Can I use a flag to list a media other than the one holding the > backup? > > > > I.e. if I say -U, won't it expect the archives to be there? > > > > > > > > Or can I specify both? > > > > > > > > Doug. > > > > > > I didn't read it properly at 3 a.m. You want a fresh archive with > > > /dev/sdd mentioned in it somewhere. Needs a command-line call. > Give me > > > a bit of time to get it right. > > > > > > Doug. > > > > Man mondoarchive says that if I specify -U, that will be the backup > device. > > My USB key isn't big enough. Would it not be better to get it > > into /etc/fstab, and from there into the mountlist? I will do it > that way > > anyway, and see what happens. > > > > Alternatively, I have enough space (50 GB) on my external USB hard > > drive /dev/sdb (which is used by mondo for temporary storage) to > contain > > the backups. That may be easier? No need for two devices. It is > already > > in /etc/fstab. > > > > Doug. > > > I don't know if there is any point in pursuing this. > > I copied my ISOs to the USB drive I mentioned. > man mondorestore seems to say that I can use -i and -U independently, > so I > used -i to say they were isos, and -U -d/dev/sdd to say where they were > The > man page didn't say whether to put a space after a parameter or not, > but it > is there in the examples in /man/mondoarchive. > > My first command line was: > > mondorestore -i -U -d /dev/sdb -Z interactive. > > The program complained that I could not specify the backup to be in two > places. It also complained that the -Z option was unknown, although it > is > listed on the man page. > > I could get nothing to mount. I didn't have the Firefly Flash drive > plugged in. As soon as I did, it appeared in /proc/scsi/usb-storage as > No. > 10, as a "gb5" or something. I tried that after /dev but got nowhere. > I ran > through quite a few /dev/sd* combinations up to at least /dev/sdg, > probably > more. > > I saw in mondorestore.log that there was some problem about sda being > an > invalid argument as regards SCSI to IDE or similar. If that will help, > I > will copy it out. Otherwise, it is affecting my health and I need to > give it > away. > > Doug. > > ----------------------------------------------------------------------- > ------- > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, > Nevada. > The future of the web can't happen without you. Join us at MIX09 to > help > pave the way to the Next Web now. Learn more and register at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix > .com/ > _______________________________________________ > Mondo-devel mailing list > Mon...@li... > https://lists.sourceforge.net/lists/listinfo/mondo-devel |