LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-27-2005, 08:13 PM   #1
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Rep: Reputation: 46
Partimage & Divide by Zero


I'm running into issues with Partimage.

Symptom
If I log in as root or su to root and run partimage, I umount /dev/hda1 and set Partimage to copy the /dev/hda1 partition (Windows partition) to /mnt/bigDisk/kimsWindowsBackupImg via the partimage GUI. I hit F5 to

partimage takes 99% CPU time, but /mnt/bigDisk/kimsWindowsBackupImg is not created even after 15 minutes of waiting. No change in the partimage GUI the entire time.

I tried the System Rescue CD image from the partimage home page but when I boot from that get a divide by zero error.

Are there any known (in)compatibility issues between Partimage and the Promise controller?

Hardware:
Code:
Motherboard: Asus P4G800-V
Processor: Pentium 4 3.2E (Prescott core)
Chipset: Intel 865G & ICH5
RAM: 1GB DDR2/400
Additional IDE controller: Promise Ultra133 Tx2
Partitions:
Code:
kim2p3:/ # fdisk -l

Disk /dev/hda: 27.3 GB, 27373731840 bytes
255 heads, 63 sectors/track, 3328 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        3327    26724096    7  HPFS/NTFS

Disk /dev/hdb: 60.0 GB, 60022480896 bytes
16 heads, 63 sectors/track, 116301 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1      113252    57078976+  83  Linux
/dev/hdb2          113253      116301     1536696   82  Linux swap

Disk /dev/hde: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1       30025   241175781   83  Linux
/dev/hde2           30026       30399     3004155   82  Linux swap

Disk /dev/hdf: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdf1               1       19457   156288321   42  SFS

Disk /dev/hdg: 80.0 GB, 80054059008 bytes
255 heads, 63 sectors/track, 9732 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1               1        9732    78172258+  42  SFS

Disk /dev/hdh: 81.9 GB, 81964302336 bytes
255 heads, 63 sectors/track, 9964 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdh1               1        9964    80035798+  42  SFS
kim2p3:/ #
OS: Suse 9.1
Code:
kim2p3:/ # uname -a
Linux kim2p3 2.6.5-7.151-smp #1 SMP Fri Mar 18 11:31:21 UTC 2005 i686 i686 i386 GNU/Linux
kim2p3:/ #
Partimage version:
Code:
kim2p3:/ # partimage -v
Partition Image version 0.6.2 (distributed under the GNU GPL2).
kim2p3:/ #
 
Old 05-28-2005, 01:41 PM   #2
johnson_steve
Senior Member
 
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
i've never used partimage but why not use dd? dd will copy anything.

dd if=/dev/hda1 of=/mnt/bigDisk/kimsWindowsBackupImg
 
Old 05-28-2005, 02:02 PM   #3
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Original Poster
Rep: Reputation: 46
DD only works when you copy from one IDENTICAL disk to another. I want to use this to create disk IMAGES which can be restored to a replacement hard disk of a different size. I also want to create standardized Linux images for some upcoming products, and not be died to a very specific partition size when the image is restored.

Believe me, if dd could fully do the job I'd have had it done already. I'm a firm believer in KISS (Keep It Simple, Stupid). {edit}Not only that, dd copies ALL partition clusters/sectors, even unused ones, wheras partimage creates images much more intelligently{end edit}

Last edited by KimVette; 05-28-2005 at 02:04 PM.
 
Old 06-01-2005, 10:18 AM   #4
KimVette
Senior Member
 
Registered: Dec 2004
Location: Lee, NH
Distribution: OpenSUSE, CentOS, RHEL
Posts: 1,794

Original Poster
Rep: Reputation: 46
Well I just upgraded to Suse 9.3 and partimage works. I ought to put some time into making a boot CD with this kernel and version of partimage so I can use it for disk imaging.

Problem solved.

--Kim
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Divide up lines with string delimiter elmu Programming 3 10-07-2005 08:48 AM
cant divide with C skoot Programming 23 08-26-2005 06:50 PM
how to divide two string variables user_linux Programming 3 06-20-2005 04:54 PM
Partimage & "SATA" problem again! Swift&Smart Linux - Software 4 01-07-2005 05:54 AM
Divide a file into 2 parts bmbsa Linux - Newbie 3 08-13-2003 04:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:02 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