LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-11-2005, 09:17 AM   #16
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154

For crying out loud, if he wanted to delete it he would have, if you haven't got anything constructive to say then stay out the thread
 
Old 07-11-2005, 11:21 AM   #17
amdrake
Member
 
Registered: Jun 2005
Location: Ohio
Distribution: Mandriva 2006
Posts: 75

Rep: Reputation: 15
OK. No more jokes in any of the threads. Got it.
 
Old 07-11-2005, 11:32 AM   #18
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Not saying no jokes, but using the same old windows jokes is getting boring and very tiresome, and I'm probably a bit more frustrated than usual because of the ridiculously hot weather. Next time be a bit more creative, yeh
 
Old 07-14-2005, 07:52 AM   #19
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Hi,

I have come unstuck with

Code:
 dd if=/dev/zero of=/path/to/c.img bs=516096c count=#cylinders
Not sure what to set #cylinders my disc geometry is

Code:
                              Disk Drive: /dev/hdb
                        Size: 2111864832 bytes, 2111 MB
              Heads: 64   Sectors per Track: 63   Cylinders: 1023

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    hdb1        Boot        Primary   FAT16          [           ]      2111.87

now the above command is wrong I nned to match dd with my drive not sure how to do it ?

Dave T.
 
Old 07-14-2005, 08:23 AM   #20
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
I have never bothered with the options, having said that the images I have produced are only to be put back on the same partition later on, or I have copied data from one drive to another which was identical.

Just read the man page, count is the number of blocks to read, not the number of cylinders - if it is not specified it will continue until the end of the file is found, in your case the end of the partition

Just incase you have a different version of dd than me, in cfdisk if you select the unit option twice it will show the number of cylinders rather than the size in MB

Last edited by phil.d.g; 07-14-2005 at 08:28 AM.
 
Old 07-14-2005, 08:52 AM   #21
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Hi phil,

Yes I would use dd just to image file/files but reading about H/S/C and offset for MBR its all new to me lol

Maybe I should try

dd=/dev/hdb of=windows.img ... see what happens ...

Thing is image is not vfat ? .... does that matter

Once drive is swapped then just format partition to vfat (FAT16) .... & dd back

Dave T.
 
Old 07-14-2005, 09:16 AM   #22
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
if /dev/hdb is vfat then the image will be vfat, you don't need to create the image file first and set up its filesystem or anything just do:
Code:
dd if=/dev/hdb1 of=windows.img
and then when its finished you can test the image by doing
Code:
mount -o loop -t vfat windows.img /mnt/hd
Remember that your going to be putting these files on a partition on the other drive so copy the image of hdb1 (the partition, assuming its the only 1 on the drive) and not just an image of the drive hdb

I have just done some major updates to my system, so I have just done the same thing, though after testing the image instead of writing it to a new partition I have just bunzip'd it and put it out the way

Edit: yes, I would format the partition first, because I'm unsure of the information that gets stored in the partition table, and if it does store the filesystem type then I'm sure dd'ing the image back to the partition wouldn't update the partition table

Last edited by phil.d.g; 07-14-2005 at 09:20 AM.
 
Old 07-14-2005, 09:38 AM   #23
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Hi phil,

Well I guess the only way to find out is to try it lol

Thanks again

Dave T.

p.s. All this to keep my other half happy.....
 
Old 07-14-2005, 10:39 AM   #24
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
Go for it, just don't delete the files off the old hdd until everything is working correctly on the new one.

If I were doing it the bit were I'd be getting nervous is booting up windows 98 for the first time on the new hdd
 
Old 07-29-2005, 04:33 AM   #25
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Hi Phil,

Sorry I did not get back earlier,

dd to new drive in usb external enclosure worked will not boot via grub ... (but that maybe because its on usb!)

It will start loading win98 then drops out ... will change drive to internal soon see if that works

Thanks for all your help

Dave T.
 
Old 07-29-2005, 05:35 AM   #26
phil.d.g
Senior Member
 
Registered: Oct 2004
Posts: 1,272

Rep: Reputation: 154Reputation: 154
I've no experience with booting USB drives, but I've got my fingers crossed thats what the problem is, lol.

From the sounds of things though it is booting correctly, maybe Windows98 doesn't like it. Windows 98 needs to be on the first partition of the drive and for that partition to be primary or it spits its dummy out. Also try to boot it with the new hdd in the same place as where the old one used to be, ie if the old windows 98 drive used to be the primary slave then put the new one as the primary slave
 
Old 07-29-2005, 05:48 AM   #27
DavidTempler
Member
 
Registered: Apr 2003
Location: United Kingdom
Distribution: Ubuntu 6.06
Posts: 172

Original Poster
Rep: Reputation: 30
Hi Phil,

I bought an ICY BOX usb externel enclosure for my hd ...

Build live cds, Ideal as a tesing platform (portable too, if a little big to fit in me pocket lol)

Yes windows is first on disc ....

My other half has nearly finished her course, so I'll swap 'em soon

Thanks again

Dave T
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving files from NTFS drive to a EXT3 drive?? webshark Slackware 10 05-28-2006 03:02 PM
moving /home to a new drive? tardigrade Linux - Newbie 5 10-18-2004 05:56 PM
Moving LFS to a new drive LinuxLuvr Linux From Scratch 7 08-03-2004 03:53 AM
moving to another drive? dittohead Linux - Hardware 4 07-07-2003 10:43 AM
moving my hard drive illtbagu Linux - General 2 02-08-2003 04:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration