ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister


Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters




General discussions > Public newsgroups > alt.os.linux > missing directories

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread



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

Old Post 07-30-02 01:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
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

Old Post 07-30-02 10:25 PM
Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply


Forum Jump:
Rate This Thread:
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


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps