Re: Using dd to copy a disk.

2003-07-29 Thread Pigeon
On Mon, Jul 28, 2003 at 03:22:54PM -0700, Alan Connor wrote: > > What's the big deal about formatting and partitioning? Takes a couple of > minutes with cfdisk and mke2fs. > > On the other hand, I have use dd to clone boot floppies, so?? My two pennorth: I would only use dd in cases whe

Re: Understanding LILO (was: Using dd to copy a disk)

2003-07-29 Thread Hugh Saunders
On Tue, Jul 29, 2003 at 10:45:03AM -0700, [EMAIL PROTECTED] wrote: > I have to ask a dumb question. When booting is lilo.conf read? no. lilo cannot read filesystems. The inverse is what is s good about grub. > Or is lilo.conf only used for writing the MBR plus the additional boot > sectors?

Understanding LILO (was: Using dd to copy a disk)

2003-07-29 Thread moseley
I have to ask a dumb question. When booting is lilo.conf read? Or is lilo.conf only used for writing the MBR plus the additional boot sectors? I assume it's not read while booting. I'm trying to understand the "disk", "boot", and "root" options in lilo.conf and when they are used (i.e. are the

Re: Using dd to copy a disk.

2003-07-29 Thread Ron Johnson
On Tue, 2003-07-29 at 02:59, Alex Malinovich wrote: > On Tue, 2003-07-29 at 02:26, Ron Johnson wrote: > --snip-- > > So you have > > /dev/hda1 / > > /dev/hda2 /usr > > /dev/hda3 /var > > > > that you want to clone to /dev/hdc1, /dev/hdc2, /dev/hdc3. > > > > You must mount, the hdc partitions,

Re: Using dd to copy a disk.

2003-07-29 Thread Paul Johnson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, Jul 28, 2003 at 12:53:27PM -0700, Bill Moseley wrote: > Will that work with the hardware RAID array? If so will it also copy > the MBR? I don't see any reason why it wouldn't work with a hardware RAID array, but I don't work with RAID system

Re: Using dd to copy a disk.

2003-07-29 Thread Alex Malinovich
On Tue, 2003-07-29 at 02:26, Ron Johnson wrote: --snip-- > So you have > /dev/hda1 / > /dev/hda2 /usr > /dev/hda3 /var > > that you want to clone to /dev/hdc1, /dev/hdc2, /dev/hdc3. > > You must mount, the hdc partitions, as, for example: > /backup/hdc/1 > /backup/hdc/2 > /backup/hdc/3 > > T

Re: Using dd to copy a disk.

2003-07-29 Thread Ron Johnson
On Tue, 2003-07-29 at 01:27, Alex Malinovich wrote: > On Mon, 2003-07-28 at 18:55, Alan Connor wrote: > > > From [EMAIL PROTECTED] Mon Jul 28 16:24:31 2003 > > > > > > > > > On Mon, 2003-07-28 at 17:22, Alan Connor wrote: > > > /var, /etc and /usr/bin, things can get sticky regarding symlinks. >

Re: Using dd to copy a disk.

2003-07-28 Thread Alex Malinovich
On Tue, 2003-07-29 at 01:14, Bill Moseley wrote: > On Tue, Jul 29, 2003 at 07:55:24AM +0200, Rogier Wolff wrote: --snip-- > > Oh, Note that you'd be copying a LIVE partition. A logging filesystem > > like ext3 or XFS will take care in writing stuff to the drive in the > > right order. You're screwi

Re: Using dd to copy a disk.

2003-07-28 Thread Rogier Wolff
On Mon, Jul 28, 2003 at 11:14:32PM -0700, Bill Moseley wrote: > > Note that I'm recommending you run lilo while you're concerned about > > the MBR. It might work, but running LILO again gives you a bigger > > chance to get it to work > > Yes, I would think I'd need to do that. The RAID card i

Re: Using dd to copy a disk.

2003-07-28 Thread Alex Malinovich
On Mon, 2003-07-28 at 18:55, Alan Connor wrote: > > From [EMAIL PROTECTED] Mon Jul 28 16:24:31 2003 > > > > > > On Mon, 2003-07-28 at 17:22, Alan Connor wrote: > > /var, /etc and /usr/bin, things can get sticky regarding symlinks. > > > > If there's a little shell script that can handle multiple

Re: Using dd to copy a disk.

2003-07-28 Thread Bill Moseley
On Tue, Jul 29, 2003 at 07:55:24AM +0200, Rogier Wolff wrote: > > Can I build a new bare metal drive on /dev/hda using dd > > > >dd if=/dev/sda of=/dev/hda > > > > Will that work with the hardware RAID array? If so will it also copy > > the MBR? > > Yep. Yep. > > > The destination drive

Re: Using dd to copy a disk.

2003-07-28 Thread Rogier Wolff
On Mon, Jul 28, 2003 at 12:53:27PM -0700, Bill Moseley wrote: > I need to clone a disk. The source is a 3ware hardware RAID 1 array. > >From Linux it looks like /dev/sda > > $ mount > /dev/sda2 on / type xfs (rw) > proc on /proc type proc (rw) > devpts on /dev/pts type devpts (rw,gid=5,mode=620

Re: Using dd to copy a disk.

2003-07-28 Thread Ron Johnson
On Mon, 2003-07-28 at 18:28, Bill Moseley wrote: > On Mon, Jul 28, 2003 at 06:01:35PM -0500, Ron Johnson wrote: > > > > About the symlinks that Ron mentions, I really don't know. Just have my own > > > experience to draw on. I guess if what you were cloning wasn't self-contained > > > that would b

Re: Using dd to copy a disk.

2003-07-28 Thread Ron Johnson
On Mon, 2003-07-28 at 20:25, Colin Watson wrote: > On Mon, Jul 28, 2003 at 04:09:32PM -0500, Ron Johnson wrote: > > On Mon, 2003-07-28 at 15:32, Alan Connor wrote: > > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. > > > > One thing to watch about, though, is that syml

Re: Using dd to copy a disk.

2003-07-28 Thread Christopher Swingley
Greetings! * Bret Comstock Waldow <[EMAIL PROTECTED]> [2003-Jul-28 16:33 AKDT]: > dd has never failed me. My situation is different than his, but I've > used it extensively. > > I have a Thinkpad, and there's no cost effective way to backup up 20G. > I bought a second, identical drive and a car

Re: Using dd to copy a disk.

2003-07-28 Thread Colin Watson
On Mon, Jul 28, 2003 at 04:09:32PM -0500, Ron Johnson wrote: > On Mon, 2003-07-28 at 15:32, Alan Connor wrote: > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. > > One thing to watch about, though, is that symlinks will remain pointing > back to the original "real" fil

Re: Using dd to copy a disk.

2003-07-28 Thread Bret Comstock Waldow
On Mon, 2003-07-28 at 18:22, Alan Connor wrote: > There have been endless discussions about this on various linux groups, and > the consensus is that dd is not a good idea for this. dd has never failed me. My situation is different than his, but I've used it extensively. I have a Thinkpad, and

Re: Using dd to copy a disk.

2003-07-28 Thread Bret Comstock Waldow
On Mon, 2003-07-28 at 16:32, Alan Connor wrote: > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. Yes. dd can pick up partition information for this reason. dd if=/dev/hda of=/dev/hdc bs=512 will transfer across the partitions and the master boot record. It's not cle

Re: Using dd to copy a disk.

2003-07-28 Thread Alan Connor
> From [EMAIL PROTECTED] Mon Jul 28 16:24:31 2003 > > > On Mon, 2003-07-28 at 17:22, Alan Connor wrote: > /var, /etc and /usr/bin, things can get sticky regarding symlinks. > > If there's a little shell script that can handle multiple symlink > redirection, I'm not smart enough to think of it...

Re: Using dd to copy a disk.

2003-07-28 Thread Bill Moseley
On Mon, Jul 28, 2003 at 06:01:35PM -0500, Ron Johnson wrote: > > About the symlinks that Ron mentions, I really don't know. Just have my own > > experience to draw on. I guess if what you were cloning wasn't self-contained > > that would be something to deal with. Something for a little shell scri

Re: Using dd to copy a disk.

2003-07-28 Thread Ron Johnson
On Mon, 2003-07-28 at 17:22, Alan Connor wrote: > > From [EMAIL PROTECTED] Mon Jul 28 15:14:20 2003 > > > > > > On Mon, Jul 28, 2003 at 01:32:06PM -0700, Alan Connor wrote: > > > > From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > > > > > > > > > > > > > > > > Use cp -a . Dd is just a dumb

Re: Using dd to copy a disk.

2003-07-28 Thread Alan Connor
> From [EMAIL PROTECTED] Mon Jul 28 15:32:16 2003 > > > On Mon, Jul 28, 2003 at 01:32:06PM -0700, Alan Connor wrote: > > > From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > > > > > > > > > > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. > > Well, I think that'

Re: Using dd to copy a disk.

2003-07-28 Thread Alan Connor
> From [EMAIL PROTECTED] Mon Jul 28 15:14:20 2003 > > > On Mon, Jul 28, 2003 at 01:32:06PM -0700, Alan Connor wrote: > > > From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > > > > > > > > > > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. > > Well, I think that'

Re: Using dd to copy a disk.

2003-07-28 Thread Ron Johnson
On Mon, 2003-07-28 at 15:59, Bret Comstock Waldow wrote: > On Mon, 2003-07-28 at 15:53, Bill Moseley wrote: > > I need to clone a disk. The source is a 3ware hardware RAID 1 array. > > >From Linux it looks like /dev/sda > > > [snip] > I do it this way: > date; dd if=/dev/hda of=/dev/null bs=

Re: Using dd to copy a disk.

2003-07-28 Thread Ron Johnson
On Mon, 2003-07-28 at 15:32, Alan Connor wrote: > > From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > > > > > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. One thing to watch about, though, is that symlinks will remain pointing back to the original "real" file,

Re: Using dd to copy a disk.

2003-07-28 Thread Bill Moseley
On Mon, Jul 28, 2003 at 01:32:06PM -0700, Alan Connor wrote: > > From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > > > > > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. Well, I think that's the reason to use dd. I just want to clone the drive and not have to p

Re: Using dd to copy a disk.

2003-07-28 Thread Bret Comstock Waldow
On Mon, 2003-07-28 at 15:53, Bill Moseley wrote: > I need to clone a disk. The source is a 3ware hardware RAID 1 array. > >From Linux it looks like /dev/sda > Can I build a new bare metal drive on /dev/hda using dd > >dd if=/dev/sda of=/dev/hda I don't know, but I have (possibly useles

Using dd to copy a disk.

2003-07-28 Thread Alan Connor
> From [EMAIL PROTECTED] Mon Jul 28 13:31:19 2003 > > Use cp -a . Dd is just a dumb parrot and knows nothing about filesystems. Alan -- For Linux/Bash users: Eliminate spam from your life with the Mailbox-Sentry-Program. See the thread MSP on comp.mail.misc for the la

Using dd to copy a disk.

2003-07-28 Thread Bill Moseley
I need to clone a disk. The source is a 3ware hardware RAID 1 array. >From Linux it looks like /dev/sda $ mount /dev/sda2 on / type xfs (rw) proc on /proc type proc (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/sda5 on /tmp type xfs (rw) /dev/sda6 on /usr type xfs (rw) /dev/sda7