Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 42

Thread: Moving Data from old partitions to new failed 24.04 install

  1. #11
    Join Date
    Oct 2024
    Beans
    55

    Re: Moving Data from old partitions to new failed 24.04 install

    Using Ubuntu 24.04 (either a live session or installed OS)
    Open the file manager (Files also known as nautilus)
    Do you see "+ Other Locations"?
    Other Locations is there but does not show the drive that is sda5 (196G), only sda3 (OS) and sda6 (Ubuntu)

  2. #12
    Join Date
    May 2008
    Beans
    4,509
    Distro
    Ubuntu 24.04 Noble Numbat

    Re: Moving Data from old partitions to new failed 24.04 install

    If you open Disks, is sda5 listed?

  3. #13
    Join Date
    Oct 2024
    Beans
    55

    Re: Moving Data from old partitions to new failed 24.04 install

    If you open Disks, is sda5 listed?
    Yes, and I can mount it from Disks. That's the firs time I've been able to do so!

    Now when I 'drill down" as Oldfred mentioned, I can see the files! Brilliant

    I feel like I owe the group a Scotch!

    So now, any "easy" way to move ahead with reconstruction?

  4. #14
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Moving Data from old partitions to new failed 24.04 install

    Easy is subjective.
    I'd use rsync.

    Code:
    sudo rsync -avz  {SOURCE} {TARGET}
    Both the source and target file systems must be mounted.
    Code:
    NAME FSTYPE SIZE FSUSED LABEL UUID MOUNTPOINT
    sda 931.5G
    ├─sda1 │ vfat 499M 54.2M ESP EEDC-1691 /boot/efi
    ├─sda3 │ ntfs 442.7G 36.7G OS 2E38DFD638DF9B63 /media/wil
    ├─sda5 │ ext4 196.1G 2e8a4205-058b-44bc-810a-910260e478f3
    └─sda6 ext4 291.7G 11.8G 1aceb469-c683-41a0-81e3-ede8fe0ff4b4 /
    So, which is the SOURCE and which is the TARGET? You'll need to mount sda5 somewhere - I'd put it somewhere temporary, like /mnt/a5 (mkdir /mnt/a5) first. Then I'd carefully decide what I want to copy from there. rsync is a tool for copying files.

    OR you can be smarter and turn sda5 into the /home/ for the computer. You'll just modify the fstab to add it there, but there are some details that need to be handled, like deleting the old files you don't want, moving the stuff you do want to the correct relative location (moves are instantaneous inside the same file system) and you'll likely want to clean-up or merge any new files on sda6 in the HOME there. Of course, permissions need to be maintained too. There are lots of How-To guides for moving HOME directories to a different partition. https://www.howtogeek.com/442101/how...er-hard-drive/ is one. The overview is to add the new storage/partition/file system to where you need it to appear in the storage layout. This is really easy, since in Linux, we can mount file systems exactly where we need them - no "drive letters".

    I'd show examples, but that might just confuse you. Skim that HowToGeek article and see if that is something you'd understand and can do. "Easy" is subjective. Only you can decide.

    There are other techniques to add large areas of storage for use to a system as well. They leverage symbolic links. Lots and lots of people here use them to make storage that happens to be mounted elsewhere seem to be part of their HOME. Remember, the OS doesn't care were data is actually stored. It just wants it to APPEAR to be where it is expected. Symbolic links can make storage "appear" to be in the expected location. https://en.wikipedia.org/wiki/Symbolic_link Unix has had symlinks for many, many, decades. Linux has this same type. There is also a "hard link", but that's different and typically used in Unix/Linux versioned backups - Back-In-Time - uses hardlinks, for example. Anyway, I think Oldfred uses this technique for making extra storage easily available but appears to be in a HOME directory.

  5. #15
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Kubuntu

    Re: Moving Data from old partitions to new failed 24.04 install

    Did not the file browser give the same errors?
    That would have been good to know.

    Make sure partition is not mounted.
    #e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p tries fixes where response not required, Run both commands as they have different parameters.
    sudo e2fsck -C0 -p -f -v /dev/sda5
    # -y auto answers yes for fixes needing response,
    sudo e2fsck -f -y -v /dev/sda5
    also see:
    man e2fsck
    UEFI boot install & repair info - Regularly Updated :
    https://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  6. #16
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Moving Data from old partitions to new failed 24.04 install

    I've never, ever, used e2fsck directly. What's wrong with using fsck and letting it choose the correct program based on the file system?

  7. #17
    Join Date
    Oct 2024
    Beans
    55

    Re: Moving Data from old partitions to new failed 24.04 install

    Guys, thanks for the ideas. I'll do some reading while you two battle it out about the best approach! Always another way to skin the rat

  8. #18
    Join Date
    Oct 2024
    Beans
    55

    Re: Moving Data from old partitions to new failed 24.04 install

    Did not the file browser give the same errors?
    That would have been good to know.
    so the question is ... why is it that Disks and File Browser are not behaving the same way, as in one would mount the partition but the other did not offer the option?

  9. #19
    Join Date
    Mar 2010
    Location
    Been there, meh.
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: Moving Data from old partitions to new failed 24.04 install

    Quote Originally Posted by wcalvert View Post
    so the question is ... why is it that Disks and File Browser are not behaving the same way, as in one would mount the partition but the other did not offer the option?
    Because a File Browser doesn't do local mounts.
    Mounting storage is a big deal. The power to mount is the power to destroy, but lots of Linux people either never realized that or decided to forget it.

    Because we can't see what sda5 actually holds, I'll make some huge assumptions which are probably true, but may not be. Hopefully, if others think I'm incorrect, they will point it out. Wouldn't be the first time I was wrong. Mainly, I'm assuming there's a prior Linux install, including another HOME directory, under sda5. So, DOES sda5 HAVE THE OLD INSTALL? That's the main question we need answered.

    For you, I think the best option is to mount sda5 under /media/DATA using the fstab method, then inside your HOME directory, create a symbolic link with
    Code:
    ln -s  /media/DATA/home/wcalvert ~/data
    In this way, you'll be able to access YOUR old data in sda5 in the older HOME directory as ~/data/ from any program you like (snap packaged programs might need some coaxing), and you don't need to move anything at all. Over time, you can clean up/remove all the other directories in /media/DATA as you like.

  10. #20
    Join Date
    Oct 2024
    Beans
    55

    Re: Moving Data from old partitions to new failed 24.04 install

    TheFu

    Thanks for your suggestion. I like the ability to get the system back up without a bunch of Terminal work that makes me a bit nervous.

    For an update, I restarted the system and let it boot per it's default path, and once it did, the sda5 partition was once again not mounted. Obviously that will need to be reconciled before this system works properly (my thoughts only).

    And you write:

    I'm assuming there's a prior Linux install, including another HOME directory, under sda5. So, DOES sda5 HAVE THE OLD INSTALL? That's the main question we need answered.
    I looked under sda5 and only found 1 home, dated 2018, about when this computer was first commissioned.

    and ...

    Because we can't see what sda5 actually holds
    I can see what is in sda5 once I mount it thru DIsks, and it looks to be all my own data.

    So does your recommendation still hold? If so, I'll need another question answered before proceeding.

Page 2 of 5 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •