From: <tb...@ti...> - 2002-02-13 18:39:52
|
What type of filesystem are you trying to clone? What, exactly is on the source partition? What is the device id of the source partition? What is the device id of the destination partition? On Wed, 13 Feb 2002, Richard Thomas wrote: > The reason I was trying to mount the partition after creating it was to make > sure I was creating it correctly. > > If I create a Linux (82?) type partition what -t type do I specify in the > mount command line? What type partition do I create if I want to use the > ext2 driver to mount the partition? > > I am using dd to an intermediary file so that I get matching hashes from the > initial partition and the destination image file. If I dd from drive to > drive, it will make an exact copy of the partition, but the hashes won't > match. > > I agree that I might be missing something. I just looked online and saw that > I am missing the mkfs command step. I told you this was a newbie question. > > ----- Original Message ----- > From: <tb...@ti...> > To: "Richard Thomas" <ri...@th...> > Cc: "Trinux-Talk" <tri...@li...> > Sent: Wednesday, February 13, 2002 11:36 AM > Subject: Re: [Trinux-talk] Harddrive Format > > > > > > The dd command you quote is to read IN the partition to a file. I assume > > you are changing the command when you dd the file to a partition. Do you > > know the proper device name for the partition you have just created? Was > > it used in the dd (out) command? > > > > You might try a "dd if=/dev/hdXX | od -c | head" and a > > > > "dd if=/directory/disk.img | od -c | head" and compare them visually. > > > > This might tell you alot. > > > > Perhaps you are missing an important piece... > > > > A partition defines a region of disk. > > A filesystem fills a partition, and defines how the data is organized. > > A file is a container, placed within a filesystem, that can hold data. > > > > [.*]nux offers features not found in other OS's, including the ability to > > bypass the filesystem and place a file on a partition and vise versa. > > > > You can dd a partition to a file. and then dd the file back to a new > > partition. You will have mirrored the partition. If you have both disks > > connected but unmounted, then you can dd directly "dd if=/dev/hde1 > > of=/dev/hde2". The imtermediary file is not necessary. You can then > > mount the second partition, just as you did the first. If you couldn't > > mount the source partition, then you won't be able to mount the clone. > > > > What is on the partition you are hoping to clone? Is is a windows > > partition? FAT? NTFS? or Linux? minix, ext2, ext3?. I think this may be a > > mount issue... > > > > On Wed, 13 Feb 2002, Richard Thomas wrote: > > > > > Okay, here goes. > > > > > > Using cfdisk, I create a partition on the hard drive of type 'Linux'. > Then I > > > 'W'rite the partition table. > > > > > > I tried to mount the partition using the minix type. I get the error, > "Too > > > many filesystems, wrong partition, yada yada..." > > > > > > I loaded ext2.o and tried to mount using the ext2 type. Didn't work. > > > > > > I loaded ntfs.o and change the partition type to 'HPFS/NTFS'. I tried to > > > mount using the ntfs type. Didn't work. > > > > > > I guess I don't know what "-t type" to specify when mounting a Linux > type > > > partition. > > > > > > When I initially tried to dd partition to the image file on a FAT32 > > > partition, I got an error about exceeding the 2GB file limit. > > > > > > The dd command line looks like this: dd if=/dev/hdd1 > of=/directory/disk.img > > > bs=1M > > > > > > I am writing a hard drive partition to an image file and then writing > the > > > image file to a 'clean' hard drive. > > > > > > Richard Thomas > > > > > > ----- Original Message ----- > > > From: <tb...@ti...> > > > To: "Richard Thomas" <ri...@th...> > > > Cc: "Trinux-Talk" <tri...@li...> > > > Sent: Wednesday, February 13, 2002 9:00 AM > > > Subject: Re: [Trinux-talk] Harddrive Format > > > > > > > > > > > > > > It should work. However, the devil is in the details. > > > > > > > > What modules did you load? > > > > > > > > What is the dd command line? > > > > > > > > What are you doing after the dd finishes, that causes you to believe > that > > > > the dd failed? > > > > > > > > If you hope to use the disk as a filesystem, then the image you are > > > > putting on the disk must be a fully formed filesystem. You should be > able > > > > to test the image with a mount -o loop command before you do the dd. > The > > > > partition type should be set to match the type of filesystem. > > > > > > > > More info would help. > > > > > > > > On Wed, 13 Feb 2002, Richard Thomas wrote: > > > > > > > > > Good morning all... > > > > > > > > > > I have a newbie question, sorry. > > > > > > > > > > I am using cfdisk to create a partition > > > > > on a harddrive. I select the default > > > > > type as Linux and then write the > > > > > partition table. However, I am not able > > > > > to then mount the partition under > > > > > Trinux. I load what I think are the > > > > > appropriate modules. I have even tried > > > > > changing the type to NTFS with no luck. > > > > > What I am trying to do is create a > > > > > partition that I can write a 6.5GB image > > > > > file to using dd. I previously tried > > > > > this with VFAT, but ran into the 2GB > > > > > file size limit. Any suggestions? > > > > > > > > > > Thanks in advance. > > > > > > > > > > Richard Thomas > > > > > > > > > > > > > > > _______________________________________________ > > > > > Trinux-talk mailing list > > > > > Tri...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/trinux-talk > > > > > > > > > > > > > -- > > > > -------------------- > > > > Timothy Burt > > > > Internet Specialist > > > > > > > > > > > > > > > > > > > > > _______________________________________________ > > > Trinux-talk mailing list > > > Tri...@li... > > > https://lists.sourceforge.net/lists/listinfo/trinux-talk > > > > > > > -- > > -------------------- > > Timothy Burt > > Internet Specialist > > > > > > > > > _______________________________________________ > Trinux-talk mailing list > Tri...@li... > https://lists.sourceforge.net/lists/listinfo/trinux-talk > -- -------------------- Timothy Burt Internet Specialist |