|
Home > Archive > alt.os.linux > July 2002 > missing directories
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
missing directories
|
|
| Garetrh Ansell 2002-07-30, 7:25 am |
| Dear all,
I am currently trying to create a clone cd so we can stuff a standard
slackware image on several servers, however my / dir is missing all
it's branches (boo hoo).
What I am doing is this - booting from a boot cd and running the
following command:
dd if=/dev/sda2 bs=1k count=991992 | bzip2 -v9 > ~/rootfs.bz2
This creates the image which i then burn onto a bootable cdrom.
Then to install the image i am creating a partition and running mke2fs
on it, then i do the reverse of the above operation
bzip2 -dcv | dd of=/dev/sda2 bs=1k count=991992k
however, when i then mount /dev/sda2 I need to run e2fsck -yv. After
fsck it mount ok but the only dirs present are symlinks to files on
remote filesystems and vmlinuz. Allthe other directories eg /bin /var
/usr etc have vanished.
The same identical process works fine for copying /usr and /usr/local
from their respective partitions, however these are on reiser - would
this make a difference?
any help would be greatly appreciated.
gareth
--
13:21:03 up 1 day, 49 min, 1 user, load average: 0.06, 0.04, 0.00
| |
| Michael Heiming 2002-07-30, 4:25 pm |
| Garetrh Ansell (<ai60r4$6fp$1@sunbeam.coventry.ac.uk> ):
> Dear all,
>
> I am currently trying to create a clone cd so we can stuff a
> standard slackware image on several servers, however my / dir is
> missing all it's branches (boo hoo).
>
> What I am doing is this - booting from a boot cd and running the
> following command:
>
> dd if=/dev/sda2 bs=1k count=991992 | bzip2 -v9 > ~/rootfs.bz2
>
> This creates the image which i then burn onto a bootable cdrom.
>
> Then to install the image i am creating a partition and running
> mke2fs on it, then i do the reverse of the above operation
>
> bzip2 -dcv | dd of=/dev/sda2 bs=1k count=991992k
>
> however, when i then mount /dev/sda2 I need to run e2fsck -yv.
> After fsck it mount ok but the only dirs present are symlinks to
> files on remote filesystems and vmlinuz. Allthe other directories
> eg /bin /var /usr etc have vanished.
AFAIK, you can only copy a whole disk with dd, and you need two
identical disks, to clone a system.
Michael Heiming
--
Remove the +SIGNS case mail bounces.
|
|
|
|
|