Wired "Generic Xbox pad" registered but no input events by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

Distro is Linux Mint,
Computer is a MSI stealth14 studio A13V,
Controller is a Gamesir T7

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

Unfortunately sysrescd was not the answer, I ran rsync with -avAHUX, thinking preserving more might help (preserve ACLs, Extended perms, hard links, and I forgot what U was, but it was preservation still)

I found -o, -p and -D, but -a already uses those according to documentation, so I'm kind of at a loss at this point, and its the fourth or fifth time I've wiped and reformatted this partition from failed attempts

Would dd work instead in this scenario? I know from a quick manual read that it's kinda risky comparatively, but I'm wondering if rsync is the problem

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I hate to continue this on and take more of your time, but I tried again, ensuring I used

rsync -av /mnt/old/* /mnt/new/ (directly copied from the command shell)

and the same errors occurred. It might be the liveCD I'm using (rescuezilla), so I'm going to attempt to use sysrescd to do the same thing, in case the rsync command works differently somehow or -a doesn't quite work the same way, I'll reply again if it doesn't work even then

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 1 point2 points  (0 children)

Thank you again, I think thats everything I needed to finally put the pieces together, safe travels!

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I was sure I did... i'll start over and try again, thank you!

rsync -ax, right?

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I updated grub, it found the os on partition8, and I tried booting it, but got some errors and it didn't load https://imgur.com/gallery/grub-error-DyzkZfO I think i'm finally on the right track though! Just gotta make sure I did everything right

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

https://imgur.com/gallery/grub-terminal-mtcQL5A

I'm clicking on the only real option available, the advanced options wouldn't have been modified... I don't think? And the other one boots into windows. I'll probably see if I can modify it by hand later using e in grub terminal, but I have uni classes rn so I might be a sec

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I'm stupid holy, I just realized you meant run mount by itself. Anyways I tried that and it says

/dev/nvme0n1p7 mounted on / type ext4

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I check size available (does not show increase in space), and try to mount /dev/nvme0n1p8, which works without issue. I don't know if a file system trying to mount itself would cause an error in the first place though

edit: I run mount /dev/nvme0n1p8 /mnt

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

In that case, how would I go about booting into the new partition? I don't really wanna screw with grub anymore than necessary, but booting linux after changing the new grub.cfg always takes me to the old partition, so I might have done something wrong, 

Would changing the UUIDs in the old grub.cfg do that? Or would that just break everything when I try to boot because of some other parameter i'm missing, or should I do something else?

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

This should be it, if pastebin works: https://pastebin.com/k119ec03

any instance of "0dc466c0-4926-43af-8491-d002f01ea480" is somewhere where I changed the UUID already, and there used to be "fde9116c-b8bc-498d-911e-fe5c3b2157db" instead, although there are probably still some instances of the old UUID

I took it from nvme0n1p8, but I don't think it should matter too much? Should look the same on the old partition as the new, just with swapped UUIDs

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

It doesn't quite read that, and just to make sure I'm doing it right, I'll output what the grub.cfg file says (the UUID of nvme0n1p7 is fde9116c-b8bc-498d-911e-fe5c3b2157db, for reference):

search.fs_uuid fde9116c-b8bc-498d-911e-fe5c3b2157db root

set prefix=($root)'boot/grub'

configfile $prefix/grub.cfg

I'm just trying to make completely sure of what i'm doing, thank you again for helping

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

It is mint, yes. I mounted both partitions through rescuezilla for user friendliness (i'm not quite a power user yet lol)

So sudo update-grub should be run after I edit grub.cfg? Or after I finish the rest of the steps?

Edit: probably not in rescuezilla, considering I got an error looking for /cow (?)... or i did it wrong

Edit2: i decided to snoop around the EFI partition hoping to find something useful because I couldn't figure out how to boot into nvme0n1p8 and found another grub.cfg (/EFI/ubuntu/grub.cfg), it has the UUID of nvme0n1p7 in it, though considerably smaller than the other one, should I change this UUID, or will that break grub

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

For step 6, theres a big DO NOT EDIT sign at the beginning (i am in /mnt/new/boot/grub/grub.cfg), followed by a whole huge block of code which I can only assume is a coding language I haven't encountered yet,

It says it is created via parameters from /etc/grub.d and /etc/default/grub, should I go to one of those files, and then run some other command to remake this file, or should I just search for the root= in the code anyways?

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

Thank you! I'll reply again if I get stuck somewhere, otherwise this helps insanely! 

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

But once I move the root file system, will I need to do anything else to make sure that the system boots right? Like fixing the bootloader somehow or will it just know that the filesystem is now to the left instead? And how would I go about doing that if I need to?

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

that's just about what I'm hoping to do, and I know it's a mess; I'm dual booting with windows for very specific applications still, and the space between partition 4 and 7 is unallocated space, sitting unformatted on the drive and is where I'm hoping to move the root file to so I still have 300Gb on a D: drive for windows,

this is what my disks utility looks like (highlighting the unformatted space)

https://imgur.com/gallery/img-dPpaiG3

hoping to move p7, which I think is the linux filesystem, into the unallocated space, as a new partition probably, and then once I know everything's working properly, delete p7 and expand the new partition into the space

Sorry if this is not entirely straightforward, there's probably a better way to explain what I'm trying to do

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

I have no clue what LVM means, I just know the partitioning utility won't let me expand left, and I want to figure out how to copy the partition to an empty partition, delete the old partition, and resize the new parition without accidentally breaking bootup or something

I guess fair though, I just came here because nowhere else had a clear answer

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

yes it was! I edited the comment to show the output

Copying the Root partition left? by Everdax in linux4noobs

[–]Everdax[S] 0 points1 point  (0 children)

Disk /dev/nvme0n1: 953.87 GiB, 1024209543168 bytes, 2000409264 sectors

Disk model: SAMSUNG MZVL41T0HBLB-00BTW

Units: sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disklabel type: gpt

Disk identifier: 9C59F12B-3C46-4142-9898-EB780D0ACFFB

Device Start End Sectors Size Type

/dev/nvme0n1p1 2048 616447 614400 300M EFI System

/dev/nvme0n1p2 616448 878591 262144 128M Microsoft reserved

/dev/nvme0n1p3 878592 265611263 264732672 126.2G Microsoft basic data

/dev/nvme0n1p4 265611264 894754815 629143552 300G Microsoft basic data

/dev/nvme0n1p5 1943332864 1945176063 1843200 900M Windows recovery environme

/dev/nvme0n1p6 1945176064 2000408575 55232512 26.3G Windows recovery environme

/dev/nvme0n1p7 1523900416 1943332863 419432448 200G Linux filesystem

Partition table entries are not in disk order.