











|  |
| Author |
missing directories
|
Garetrh Ansell
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
missing directories
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
Report this post to a moderator
|
|
07-30-02 01:25 PM
|
|
Michael Heiming
Guest
Registered: Not Yet Location: Country: State: Certifications: Working on:
Total Posts: N/A
|
|
Re: missing directories
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.
Report this post to a moderator
|
|
07-30-02 10:25 PM
|
|
|
Forum Rules: Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is OFF. |
|
ExamNotes forum archive
|