Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Chad Self 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
-
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
-
You can't mv files from one drive to another. Try cp -a instead.
-
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