[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sheflug] Problems with a new hard-disk



Hello everyone,

I've just bought a brand new lovely 20GB hard-disk but am having problems.

It seems to be formatted (using mke2fs) and everything but I seem to have
mounted it in a rather silly way.

Basically, what I wanted was to use my old hard-disk (all 1.2GB of it) purely
as the boot partition . . . god knows where the /swap thingy will go . . . I'm
not really bothered . . . and then I was going to use the new hard disk for
everything else. I'm not really bothered, so long as the old hard-disk is still
made use of.  Anyway. I followed the instructions in my SuSE 6.3 manual
(page 449 for those interested) which basically went something like this:

cd /opt
mkdir /opt2
mount /dev/hdb1 /opt2
tar cSpf - . | (cd /opt2 ; tar xvSpf - )
mv /opt /opt.old
mkdir /opt

and then I added a line in /etc/fstab to read something like:

/dev/hdb        /opt    ext2    defaults 1 2 

rebooted, and then:

cd /
rm -fr opt.old

But, of course, this just moved around the /opt directory, which wasn't much
good at all.

The (long) question is:

How do I undo everything I've done so that I can umount my new hard-disk and
then mount it so that pretty much everything (as described above), except for
all the scary boot stuff, goes onto my new hard-disk?

I can just about see that I need to copy /opt back onto the old hard disk and
do some kind of umount on hdb but then have no idea what and how to copy
everything onto the new hard-disk and how to mount. This is fstab as it stands:

/dev/hda1       /boot   ext2    defaults 1 1
/dev/hda2       swap    swap    defaults 0 1
/dev/hda3       /       ext2    defaults 1 2
/dev/hdb        /opt    ext2    defaults 1 2
proc    /proc   proc    defaults 0 0
devpts  /dev/pts        devpts  defaults 0 0
/dev/cdrom      /cdrom  iso9660 ro,noauto,user 0 0
/dev/fd0        /floppy auto    noauto,user 0 0   

Advanced thanks for any help you may be able to offer.

Jonathan.

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.