Re: ramdisk driver in 2.6.6 has a severe bug

From: Valdis . Kletnieks
Date: Mon May 17 2004 - 18:20:07 EST


On Tue, 18 May 2004 01:02:04 +0200, "Robert M. Stockmann" <stock@xxxxxxxxxxx> said:
> Hi,
>
> I have severe problems creating a new root-disk using the ramdisk driver
> of kernel 2.6.6 :

> [tapebox:root]:(/mnt/floppy)# cp -ap bin boot cdrom dev etc floppy lib mnt proc root sbin tag tmp usr var /mnt/root

Were you expecting those to copy all the contents, or just the directories themselves?

Perhaps tar cf - | (cd /mnt/root && tar xvf -)
or adding a -r flag to that cp?

> So basicly i copied all my files from rootmdk92 to the new rootmdk100 ramdisk

No, I think you just copied the directories..

> But after copying them and umounting the old ramdisk (rootmdk92) en deleting
> /dev/loop0 , /dev/loop1 (which is /tmp/rootmdk100) loses all its contents.

It never had the contents to lose.....

Attachment: pgp00000.pgp
Description: PGP signature