[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mounting /proc




On Wed, 12 Aug 1998, Jeff Licquia wrote:
> On Tue, 11 Aug 1998, Sean Chisek wrote:
> > hello.  i recently got a new hard drive and got my linux partition
> > copied from my old one to my new one.  when i start up linux now on my
> > new hard drive i get a message saying mount point /proc does not exist.
> > i don't have a /proc directory on my new hard drive.  when i try to run
...
> > anything.  my question is, what do i need to do to get my /proc
> > directory back.  i don't know why it wasn't copied when i copied
> > everything else.  hmmmmmm.
> 
> If you still have your old filesystem, and you can get both the old and
> new disks mounted under Linux, use "cp -ax" to do the job.  Set your umask
> to 0 ("umask 0") and do a "cp -ax <srcdir>/* <destdir>".

Personally, I would've mounted the new disk under /mnt, and done this:
(cd /;tar -cvf - --exclude /mnt/* --exclude /proc/* .)|(cd /mnt;tar xvf -)

but then, that's just me - who got bitten by cp once before, and avoids it
when ever possible now. :)

--Cloudmaster


> If you can't get
> them both mounted at the same time, use tar ("tar --one-file-system czf
> <file> <srcdir>" and then "cd <destdir>; tar --preserve zxvvf <file>"
> should work; remove the "z" if you don't want it compressed).
> 
> Anyway, to answer your question, just create the subdirectory /proc and
> reboot.  Here's the permissions on my /proc:
> 
> dr-xr-xr-x   5 root     root            0 Aug 12 11:30 proc


--
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.