Link to home
Start Free TrialLog in
Avatar of theruck
theruckFlag for Slovakia

asked on

delete / create partiton on a SCO 5.0.7

Hi
i had a server which i cloned using dd but the problem is that the target drives were smaller then the original.
now i got errors mounting /dev/tmp as it tries to writ to unexisting sectors.

i would like to run some partitioning tool and delete the partition and create it again with the correct size but i cannot find a tool in the SCO (i am not a unix admin) when i run a standard disk tools on the disk it shows me only 1 partition but the /etc/filesystem says it has 5 partitions set...
fdisk shows me some partition but i think it could be the one of my tape drive
i have no idea where could i look for the device of my adaptec raid controller to be able to edit it using fdisk or some other tool or configuration file

ASKER CERTIFIED SOLUTION
Avatar of sppalser
sppalser
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Oops!  Got my version wrong--am sorry about that.  disregard the Unixware comparison.  However all the rest still holds true.  

Good Luck
Avatar of yuzh
yuzh

In SCO, you can use "divvy" command to change the filesyem type and partion(slice) size.
You need to perform a full backup to the filesystem before you run divvy to change the partion
size, otherwise all the data in that partion will be lost.

When you clone a disk to a different size disk, "dd" is not good for the job.  if the target disk is
smaller than the original, you need to make sure that when you partion the target disk, each slice
MUST be big enoug to hold the data from the original HD, and mount the slice one by one use cpio
command to copy the data accross, don't use tar, it can't handle the special files.

if the target disk is the same size or bigger, you can use g4u (free) to clone the disk,  (g4u is very
easy to use, it can handle SCO, FreeBSD, Solaris X86 and M$ Windows ...)
    Here's the link:
    http://rfhs8012.fh-regensburg.de/~feyrer/g4u/

    I know the old g4u 1.17 floppy images works.

    see my answer in http:Q_21958164.html
Avatar of theruck

ASKER

i rebuild the raid from raid10 to raid1E which allowed me larger logical drive so i did a dd on the larger logical drive and everything is ok anyway sppalser's solution wuld surely work too therefore the points goe to him