Koozali.org: home of the SME Server

Mounted new drive in ibays dir, now I can't find my old ibay

Chad Self

Mounted new drive in ibays dir, now I can't find my old ibay
« on: November 15, 2002, 11:43:57 PM »
Mounted new drive in ibays dir, now I can't find my old ibays.  
The new drive shows up as sdb and it's mounted etc.  
cat shows the following:

LABEL=/                 /                       ext2    usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext2    defaults        1 2
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,ro 0 0
/dev/cdrom1             /mnt/cdrom1             iso9660 noauto,owner,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda5               swap                    swap    defaults        0 0
/dev/sdb /home/e-smith/files/ibays ext2 defaults 1 2

Is there a quick way to find and copy all the old ibays (about 10G or so) to my new drive?

Thanks
Chad

Chad Self

Re: Mounted new drive in ibays dir, now I can't find my old
« Reply #1 on: November 16, 2002, 12:53:40 AM »
OK,
I've removed the fstab entry for the new drive and rebooted.  I found the old ibays where they should be.  So I've remounted the new drive to /mnt/newdisk and I'm gonna mv all the files from my old disk's ibays dir to the new drive, reboot, remount the drive to the ibays dir, and re-edit the fstab listing.

For some reason, mv -vf * /mnt/newdisk/* ( I was in the ibays dir at the time) is sending everything to the lost+found dir on my new drive.   (shoulda left off that "*" I guess) So when it's done moving all those Gigs to the new drive, I'll have to mv them all back one directory.  gosh this is fun.

-C

Dan Brown

Re: Mounted new drive in ibays dir, now I can't find my old
« Reply #2 on: November 16, 2002, 12:57:03 AM »
You can't mv files from one drive to another.  Try cp -a instead.

Chad Self

Re: Mounted new drive in ibays dir, now I can't find my old
« Reply #3 on: November 16, 2002, 01:15:00 AM »
I'm moving them to a different drive by mounting that drive as /mnt/newdisk, cd'ing into the ibays dir and then "mv -vf * /mnt/newdisk".

It is scrolling up the screen and rolling through all the dirs.  Is this going to bomb?

BTW, thanks for your reply.

Chads