this post was submitted on 05 Aug 2023
12 points (87.5% liked)

Linux

48133 readers
1273 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I had multiple disks in my PC, one with Windows and one with Linux. The drive with Linux had the boot record I guess; I removed and replaced that one with a new disk and again installed Linux on it (so the Windows disk has been the same the while time), but I can no longer log into Windows while this new disk is installed and the old disk is removed. I can log into Linux while the new disk is installed, and if I swap back to the old disk I can log into Windows.

How do I fix things so I can not into Windows or new Linux while the new disk is installed? I don't mind reinstalling my Linux OS, but I really don't want to reinstall Windows.

you are viewing a single comment's thread
view the rest of the comments
[–] skullgiver@popplesburger.hilciferous.nl 1 points 1 year ago* (last edited 1 year ago)

On Linux my go to tool for resizing and creating partitions is GParted, with some help from command line tools like dd to copy the data over.

Gnome's disk utility GUI has the option to create a disk image from a partition that you can later restore.

If you want to do a direct copy, without a temporary copy somewhere, I only know the terminal command line:

dd if=/dev/disk/by-id/ata-Samsung_SSD_850_EVO_250GB_S21PNXAG803885Y-part1 of=/dev/disk/by-id/wwn-0x5002538d403dda0c-part3 statusprogress bs=8m

This would make a direct, byte for byte copy from the first partition of my Samsung SSD to the third partition of my Crucial SSD. Other ways of addressing the disk also exist (i.e. /dev/sda3 to /dev/sdb1, or in the other ways you can refer to a disk or partition somewhere in /dev/disk).

I'm sure there are Windows based tools that can do the same, I don't have experience with many of them. Last time I had to mess with this type of disk partitioning for Windows installs I think I used a tool called EaseUS?