Re: dd question, what am I doing wrong?

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

 



> I am copying a disk/partition to another disk/partition
> using dd, with the following:
>
> BEFORE:
> Disk1: partition#1: psize=100G, size=97.65G, used=91.23G, unused=6.42G
> Disk2: partition#1: psize=250G, size=244.14G (newly formatted)
>
> I did a dd if=/dev/sda1 of=/dev/sdb1
>
> AFTER:
> Disk1: partition#1: psize=100G, size=97.65G, used=91.23G, unused=6.42G
> Disk2: partition#1: psize=250G, size=244.14G, used=237.72G, unused=6.42G
>
> WTF...
>
> Then I:
> 1) mount /dev/sdb1 /mnt
> 2) cd /mnt/b
> 3) df -h .
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sdb1              97G   90G  1.6G  99% /mnt/b
> 4) umount /mnt
>
> 5) mount /dev/sdb1 /mnt
> 6) cd /mnt
> 7) df -h .
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sda1              97G   90G  1.6G  99% /mnt/b
> 8) Umount /mnt
>
> Hmm... this is not what I expected... I had assumed that somehow
> the free disk space would somehow be reclaimed...
>
> What am I doing wrong here and how do I get around this?

You have to resize Disk2 to 250Gb with resize2fs or parted.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux