Re: Resizing partitions and copying data with dd

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

 



Or rsync -av /old_root/* /new_root


On 3/1/06, Mike Wooding <timmywooding@xxxxxxxxx> wrote:
>
>
> --- "McDougall, Marshall (FSH)" <MarMcDouga@xxxxxxxxx> wrote:
>
> > I am trying to move my root mount to a bigger partition without
> > tearing
> > down the whole machine.  I created a new ext3 partition of 10G.  I
> > then
> > tried to copy my existing root partition to the new partition using:
> >
> >  dd if=/dev/oldroot of=/dev/newroot
> >
> > It worked great except my newroot is 2G, not 10.  I tried using
> > ext2online but there are some incompatibilities, or so it thinks.
> > Anyone have a suggestion on how I can move my root mount to a new 10G
> > partition without any catastrophe?  Thanks.
>
>  The "dd" command didn't copy files, it copied the filesystem,
>  superblock and all.
>
>  Make a new FS on /dev/newroot mount it and use something like
>  cpio (find / | cpio -pmduv /newroot) to copy the files.
>
>
>
> He who laughs last thinks slowest.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux