Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
dd will clone it just fine. Just make sure to clone from device to device, rather than partition to partition. For example:
Code:
dd if=/dev/sdb of=/dev/sdc bs=32256
Use fdisk -l to make absolutely sure that you're cloning from the correct source to the correct destination.
The other thing to keep in mind is to use Disk Management within Windows 7 to resize its own NTFS partition, if necessary/desired.
For example, if the SSD is smaller than the HDD, you want to boot up Windows 7 and shrink the Windows 7 partition before removing the HDD.
If the SSD is larger than the HDD, boot up to Windows 7 after installing the SSD to use Disk Management to expand the Windows 7 partition.
The bottom line is that Windows 7 has the ability to shrink/expand its own NTFS partition, and this is generally more robust than using linux to shrink/expand it.
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,881
Rep:
Quote:
Originally Posted by Pedroski
Thanks a lot!
She has a 500GB hd. I wanted to buy a 250 GB ssd. She hardly uses her present hd, only about 100 GB.
She has 3 partitions I believe, C:\ D:\ and E:\ So I won't touch C:\ because that is the system partition.
Is the exact size critical? When I get the new drive, I'll look at it with gparted first to see exactly how big it is.
I bought a 240 GB Toshiba ssd but gparted says it is only 223GB
You can also use Clonezilla, which will guide you though the cloning process. If you choose "expert mode", you can choose your own options, like for example, which partition(s) to clone, etc. This would be easier than the dd command, if you are not experienced in doing this kind of thing.
I can't speak for the dd command but, size only matters, as long as you have enough space to put your clone image onto/drive to clone to/onto.
Windoze is a bit particular about partitions - even has registry keys that might (will) trip you up. I gave up fighting it - use the Win7 system image utility. It's as slow as molasses, but works, and you (usually) don't have to worry about M$oft registration and such like.
It is not worth to try Windows Backup (to network share), then boot from installation CD to recovery mode and restore from network share. It will warn about reducing partition size, but if data fits in smaller partition, restore will be successful.
Can you determine the manufacturer of her hard drive in her laptop? If it's either Western Digital or Seagate, each of those manufacturers has free cloning software specifically designed to work with windows:
They're both stripped down versions of Acronis True Image, one of the most popular cloning applications for windows available. If you have to clone a hard drive with a windows OS on it, Acronis or the stripped down free versions from hard drive manufacturers is the most reliable tool I've found. You'll find other linux based cloning tools have disclaimers about cloning Windows 7 and above; sometimes it works, sometimes it doesn't.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by Pedroski
What I meant about the exact size was, as the old hd is bigger than the new, must I shrink Windows to the EXACT size of the new ssd?
No, it must be shrunk to a size smaller or equal to the new SSD. I would make it about 10% smaller so you are prepared for rounding errors in size calculation. Once Windows is running on the new SSD you can expand again to the last byte.
Resizing partitions in W7 works quite well. BUT! somtimes Windows puts immutable space in the middle of partitions and you cannot shrink. The immutable files are temp files and recovery images. No need to be immutable, but hey it is Windows. I wrote something about that here: https://www.linuxquestions.org/quest...3/#post5747580
My experience is good with using Windows itself to resize/move partitions, but as jlinkels noted - it can't shrink the main C: partition smaller than about half its original size. This has to do with how NTFS was designed for spinning hard drives and it starts in the middle sectors and works it way outward. The idea was to minimize seek times. In contrast, older file systems tended to start at the lowest sectors and work their way upward.
Since the new drive is half the size of the old drive, you may be out of luck. Maybe gparted (within linux) will be able to resize the C: partition as desired, but the last time I tried that with a Windows 7 OS partition, gparted refused to even try. This was years ago, though.
I've never had any problems using Windows partition tools to handle partitions. Any tool that refuses to handle partitions correctly will not survive very long.
There is usually a very good reason why they will not perform a particular action that is requested. Often that can be corrected by re-arranging the data in a manner different to the default.
The most common cause is fragmentation.
Last edited by dave@burn-it.co.uk; 09-27-2017 at 10:51 AM.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
Quote:
Originally Posted by IsaacKuo
My experience is good with using Windows itself to resize/move partitions, but as jlinkels noted - it can't shrink the main C: partition smaller than about half its original size.
Maybe I did not explain it well enough. The Windows partition can be shrunk (and quite a lot actually) but it is not simple because immutable sectors are written halfway the partition. So you have to jump through a few hoops. Including deleting temporary files, restore points, swap space and then some. Not only that, but you also have to disable and kill the services which create that space.
It is quite difficult to find a good guide on how to do this. 90% of all articles on the internet are incorrect and mostly copy each other's contents. I hate it, but I lost the one article which was really useful.
That way I managed to shrink a 700 GB W10 partition to 40 GB. Without removing the immutable space I was stuck at 380 GB.
Kind of two parts to files in windows. One is that some programs still may require files to be in some exact location. The program sets this as a way to secure the program. The other is the ability to move and have space to move.
It is possible to run windows on a usb and use the standard iso to perform some tasks.
Many of the ssd/hard drive makers offer programs to move the data to and from. They tend to use Acronis a lot and it works usually quite well.
I think this should read "It is worth to try Windows Backup" instead of "It is not worth to try Windows Backup " maybe. It is a proper windows solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.