Author Topic: Repartition Hard Drive with Dual OS and Not Losing Data  (Read 10988 times)

0 Members and 1 Guest are viewing this topic.

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #50 on: May 17, 2023, 06:37:42 pm »
Sorry my bad. was referring to
I clone using dd, then you just put the partitions where you want them and expand them out to use the remaining space. Saves double handling and at the end of the day you are still going to have to correct the NT Bootloader.
if you want to do it under Linux, personally I use diskgenius, professional: https://www.diskgenius.com/
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #51 on: May 21, 2023, 02:07:03 pm »
I'm downloading it, however, it looks like it's for Windows according to the user guide:

Supported operating system: Windows 2000/XP/Vista/7/8/8.1/10, Small
Business Server 2011/2003/2008, Windows home server 2011, and Windows
Server 2003/2008/2008
R2/2012/2012 R2/2016/2019 (both 32bit and 64bit).

Will I need to delete a partition or will this allow me to expand the XP and Ubuntu into the unallocated partition?


 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #52 on: May 21, 2023, 02:16:21 pm »
yes, disk genius is for Windows.
Choose a partition, choose free space and it will expand
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #53 on: May 21, 2023, 02:20:07 pm »
I assumed it was for Windows, but you mentioned doing it through Linux, so I thought maybe a Linux version was needed.

I have to look again, but believe what I want to do is expand the XP partition to approximately 250GB, and the Ubuntu partition to the remaining 250GB.

Hopefully this will take care of it for me


 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #54 on: May 21, 2023, 02:33:44 pm »
I need to add better punctuation: under Linux was referring to the quote from Bradic.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #55 on: May 21, 2023, 02:38:01 pm »
Oh okay.

In any case, I'll try this program later today hopefully. I thought since gparted didn't work, then nothing else would work.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #56 on: May 21, 2023, 02:44:43 pm »
The user manual states it works on XP, but I just tried and it doesn't work.
 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #57 on: May 21, 2023, 02:53:53 pm »
did you download the 32-bit version? see https://www.portablefreeware.com/index.php?id=3021 for a link.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #58 on: June 13, 2023, 01:48:17 am »
I've been tinkering with Disk Genius, but been having issues.

First it said I needed to scan the drive for errors before I could resize a partition. From what I understood, it showed the unallocated on the right with the Ubuntu in the middle and XP on the left. Trying to expand XP didn't work, and seemed I needed to "move" Ubuntu all the way to the right, expand it to the left, and then hope I could expand XP to the right.

The issue is needed to scan the drive for errors (or found errors and needed to be scanned). After it found three or four errors, but needed Disk Genius on a thumbdrive because it couldn't work where Disk Genius was.

Tonight I did a scan and it didn't find any errors. When I went to move/resize the Ubuntu partition, it gave me errors:

The cluster of a file is marked as free or cross linked with another file in node 134483, cluster 3186432

Some free inodes are marked as used in inode bitmap file: 131077

Same message but bitmap file 141094

Some free clusters are marked as used in block bitmap: cluster number: 9257

 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #59 on: June 13, 2023, 06:13:19 am »
The procedure you describe is correct, but before doing anything, make a backup of the *disk* to an image file. Just right-click on the disk and choose "backup disk to image file".
If anything goes wrong, you can always go back to the original state.

As for the errors: do a verify/repair: right click on a portion.
 

Online DiTBho

  • Super Contributor
  • ***
  • Posts: 3714
  • Country: gb
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #60 on: June 13, 2023, 07:52:37 am »
always do a backup  :D
The opposite of courage is not cowardice, it is conformity. Even a dead fish can go with the flow
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #61 on: June 13, 2023, 07:02:09 pm »
It found this errors when disk genius was on the hard drive, but wouldn’t allow me to repair. I moved disk genius to a thumb drive, and it didn’t find any errors; so I couldn’t do a repair.

Not sure why it didn’t find errors the second time.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #62 on: June 19, 2023, 12:49:06 am »
I can't get this to work.

A full scan doesn't show any errors, but I get the same four errors when trying to move/resize the partition:

The cluster of a file is marked as free or cross linked with another file in node 134483, cluster 3186432

Some free inodes are marked as used in inode bitmap file: 131077

Same message but bitmap file 141094

Some free clusters are marked as used in block bitmap: cluster number: 9257


I also tried a 'repair', but it produced the same errors.
 

Offline Ed.Kloonk

  • Super Contributor
  • ***
  • Posts: 4000
  • Country: au
  • Cat video aficionado
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #63 on: June 19, 2023, 01:56:13 am »

I also tried a 'repair', but it produced the same errors.

Ew.

Whilst been aware of the thread, sorry haven't been keeping up with your specifics, but selecting 'repair' on file system tools sure got my attention. Yikes.
iratus parum formica
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #64 on: June 19, 2023, 02:40:16 am »
It's weird.

When I had Disk Genius copied on the hard drive, it found errors, but couldn't resolve them since the software was on the hard drive. I copied it to a thumb drive, and it doesn't find any errors. When I try to move/resize the partition, it gives those errors.

I can't do anything since it has these errors that it can't find when I scan for errors.
 

Online magic

  • Super Contributor
  • ***
  • Posts: 6710
  • Country: pl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #65 on: June 19, 2023, 05:17:19 am »
Disk Genius
??? ::)

Run fsck on the filesystem under Linux.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #66 on: June 20, 2023, 12:58:31 am »
Quote
Run fsck on the filesystem under Linux.


That doesn't work. It tells me something like it's already mounted on /dev/sdx or something like that.

It also gives a warning that data will be lost. Either way, I'm guessing it won't run because I'm running it on the same drive Ubuntu is on.
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 14041
  • Country: fr
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #67 on: June 20, 2023, 01:31:09 am »
To repair/repartition/resize filesystems on Linux (at least conventional filesystems like ext4), you need to work on unmounted partitions.
If you want to work on the partition which is your root partition and you have no other partition to boot from, you'll need to boot from a "live" Linux, just install one on some USB key, boot from there and you'll be able to do whatever you want to your partitions.
 

Online RAPo

  • Frequent Contributor
  • **
  • Posts: 551
  • Country: nl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #68 on: June 20, 2023, 06:20:02 pm »
It's difficult to help you at a distance.

First, do you have a backup of the disk and partitions?

Do you have a spare disk? If so, restore (for each partition in sequence) them to the spare disk and check for errors on the new disk.
If no errors arise, hurray: format the original disk, restore each partition, and try to expand as you've described.

If you get  errors: sorry I can't help you from this distance.

 

Online magic

  • Super Contributor
  • ***
  • Posts: 6710
  • Country: pl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #69 on: June 21, 2023, 12:22:25 am »
Quote
Run fsck on the filesystem under Linux.
That doesn't work. It tells me something like it's already mounted on /dev/sdx or something like that.

It also gives a warning that data will be lost. Either way, I'm guessing it won't run because I'm running it on the same drive Ubuntu is on.
Wait, are you also trying to run gparted the same way? Not gonna work either.

Of course, gparted run from a live CD should work, if you expand sda4 before trying anything with sda5.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #70 on: June 21, 2023, 02:00:42 am »
Gparted didn't work, it was suggested to use Disk Genius (which I put on a thumb drive).

The original hard drive was cloned to this brand new SSD. I'm simply trying to expand into the unallocated section since the new hard drive is bigger.

 

Online magic

  • Super Contributor
  • ***
  • Posts: 6710
  • Country: pl
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #71 on: June 21, 2023, 08:41:41 am »
Yes, and you need to shove sda4/sda5 all the way to the right before expanding either of sda2 or sda3.

I have done similar things with gparted and see no reason why it shouldn't work.
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #72 on: November 08, 2023, 12:14:45 am »
I'm resurrecting an old thread that I started as a result of a recent update.

A few weeks ago I attempted to power the laptop and an error appeared stating no disk drive or whatever; basically the BIOS wasn't seeing the hard drive.

Long story short, apparently the somewhat brand new SSD 500GB drive (purchased earlier this year and used maybe a total of twelve-hours) is dead.

Keeping in mind this is a 32-bit laptop running Ubuntu (with a partition that has run out of space), XP, and I haven't been able to allocate the spare extra drive space that I acquired after buying this larger (now broken) hard rive) to the two operating systems.

My question is: now that I'll probably buy another hard drive and copy the contents of the one prior to this broken one (thankfully I haven't added anything to the drive that the previous working drive doesn't already have), is there a way to move just the Ubuntu and XP partition over and apply the extra unallocated space to them?

Keep in mind, this drive has five (?) partitions due to Dell having their two or so hidden ones (or restore partition).

 

Offline Lindley

  • Regular Contributor
  • *
  • Posts: 195
  • Country: gb
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #73 on: November 09, 2023, 08:58:58 pm »
Had a similar problem where the drive was not recognised until we used the free RescueZilla ( boots on a usb stick).

If you load it up, then exit the main RescueZilla page,  it goes down to a page of  utilities that has Gparted which did  list the 'dead' drive and allow us to delete all the old partitions etc, then  it reloaded Linux  ok.

RescueZilla does both Linux and Windows backups and cloning  so it might be able to do what you want ?

https://rescuezilla.com/
 

Offline bostonmanTopic starter

  • Super Contributor
  • ***
  • Posts: 1688
  • Country: us
Re: Repartition Hard Drive with Dual OS and Not Losing Data
« Reply #74 on: November 20, 2023, 04:33:10 am »
Think I figured out how to repartition my drive using GParted (off a Thumbdrive using I think Systemrescue), however, the XP partition is giving errors.

When I try to expand the XP partition (after I successfully expanded the Ubuntu partition), it states the file system has errors. I ran chkdsk using XP, left it running, returned, XP was loaded, shut down, booted GParted, tried to repartition, got the same error, tried running the error check in Systemrescue, got an error, tried booting XP to run chkdsk again, and got a .dll boot error.

I don't care about the boot error or messing up the drive as I have the main drive with all the contents I need. When I screw up with GParted, I just copy the drive again.

My issue is how I can get around this file system error that causes the repartition process to abort.
« Last Edit: November 22, 2023, 05:08:58 am by bostonman »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf