Solved Linux can boot - suspect full HD, need help to access HD.

Solved issue
Use Windows tools to adjust Windows partitions and Linux tools to adjust Linux partitions.

Before doing so, back up your important data.
backing up (all 400GB from Linux and 10-20gb from win) is essentially reinstalling the OP. is there anythign that will give a full access to old Linux and unlock some files? Why some files (same type let's say pictures) are locked and some are not? I freed up about 5gb from the win partition and Linux recovery terminal doenst show it (fdsk -l), but recovery system-summary lists 5GB as tmpfs? Since I'm in recovery "mode", is there a way, from rot shell prompt, to format those 5GB and merge with the rest of Linux partition, thus increasing Linux "space" and eliminating my initial problem is having not enough sidk space? Am I asking for too much?
 


backing up (all 400GB from Linux and 10-20gb from win) is essentially reinstalling the OP.

No, it's quite different. In a backup, you're just making a copy of the files that are important to you. (It's up to you to decide which files are important to you, but it can be that you want to image the entire drive so that you can just restore it if it breaks.)

is there anythign that will give a full access to old Linux and unlock some files?

At least in Linux, just use the live instance and make use of 'sudo'. (The password is usually blank in a live instance.) If you want to access these locked files, open the terminal and run sudo <name_of_file_manager>, and open the file manager with elevated permissions.

is there a way, from rot shell prompt, to format those 5GB and merge with the rest of Linux partition, thus increasing Linux "space" and eliminating my initial problem is having not enough sidk space?

Yes. Though I'd strongly suggest using Windows tools to work on Windows partitions. You can go use a tool to shrink the Windows partition, and then you can expand the Linux partition. I'd also strongly suggest using Linux tools when you then adjust the Linux partition.

If you're using Linux tools, there are tools like gnome_disks and gparted that will help you partition your storage devices. Both of those are graphical (GUI) tools. I do not know enough to recommend any Windows partitioning tools, as I have no idea what's current and what's available. (I'm not familiar with Windows.)
 
Update: the live Gparted USB stick does not boot - I see blank screen with a "frozen" cursor.
 
Update: the live Gparted USB stick does not boot - I see blank screen with a "frozen" cursor.

It can take a while to load.

How did you create the USB?

If it was up to me, I'd not use that distro. I'd just use the live USB for the same OS that I already had installed. It will have a partitioning tool. In Ubuntu's case, that'll be listed as 'Disks' in the application menu, but it's actually 'gnome-disks' if you want to start it with the terminal.
 
You can't be booted into the Linux distro that you want to resize or manipulate it's partitions.

I completely agree with KGIII.......the .iso of the gparted program and the way in which it's done is essential to having a successful boot to usb.

Make sure the usb thumb drive with gparted live is the first in the list in the BIOS boot menu.
Save the changes and then reboot.
 
fired up ubuntu live DC, staretd Gparted, reforated that 5GB partition to exf4, but I can't resize Linux partition - I can make it smaller, but I can't merge this one with 5GB partition. Useless.
 
You didn't need to do that.

Start a Live session of GParted again, delete the 5GB EXT4 partition, it will show as Unallocated space.

Then select your Linux partition in GParted, and in GParted, select to resize it.

Modify the figures shown in the popup window to have the exact 5GB added to your Linux root partition (operating system)

Apply the changes and on completion your Linux distro will be 5 GB larger.

Wizard

BTW, you have not responded to
@wwdwgs , please oblige us by doing as suggested. We are not mind readers, and have one arm tied behind our backs while you are receiving perhaps conflicting or duplicated advice from another site.

Please do so.

TIA

Wizard
 
fired up ubuntu live DC, staretd Gparted, reforated that 5GB partition to exf4, but I can't resize Linux partition - I can make it smaller, but I can't merge this one with 5GB partition. Useless.
You don't need to add 5gb space to Linux.
What you need to do is finding the large file.
If those are not important remove them and if those are important move them to USB. It will free up space and you can boot into your os.

To do this first you need to nevigate to the mount point and then run the command to see which files are large and taking most space.

Code:
du -ah . | sort -rh | head -n 20

After the temporary solution you need an external hard drive to move your data.
It will help to solve your two problem
1. It will free up enough space to run os smoothly
2. Your data will be backed up in a safe storage.
 
Last edited:
That might be fine except that he cannot boot into his OS to run the command.

Unless you know of a way to modify your command to be run in a Live capacity on the OS root partition.

Cheers

Wizard
 
That might be fine except that he cannot boot into his OS to run the command.

Unless you know of a way to modify your command to be run in a Live capacity on the OS root partition.
I already told him how to become root from live usb.
 
You didn't need to do that.

Start a Live session of GParted again, delete the 5GB EXT4 partition, it will show as Unallocated space.

Then select your Linux partition in GParted, and in GParted, select to resize it.

Modify the figures shown in the popup window to have the exact 5GB added to your Linux root partition (operating system)

Apply the changes and on completion your Linux distro will be 5 GB larger.

Wizard

BTW, you have not responded to


Please do so.

TIA

Wizard
hold on... let me try that again... will report back asap.
 
It can take a while to load.

How did you create the USB?

If it was up to me, I'd not use that distro. I'd just use the live USB for the same OS that I already had installed. It will have a partitioning tool. In Ubuntu's case, that'll be listed as 'Disks' in the application menu, but it's actually 'gnome-disks' if you want to start it with the terminal.
I used UNetbootin to create Gparted Iso bootable USB stick. I just started my PC with it and Unebootin showed my menu with "Default" option, which cant be selected and started. Unetbootin continuously shows a message something like "automatic start in 10 seconds" counts down to 0 and restarts 10 seconds message.
I also started with Ubuntu 20 USB stick yesterday, tried that disk command and It didn't allow to merge Linux partition with a new (formatted to ext4) 5GB partition. I have 5GB partition mounted - no luck, Unmounted - SSDD. I\
I'm going through the other replies one by one and will try those suggestion in a few minutes.
 
You don't need to add 5gb space to Linux.
What you need to do is finding the large file.
If those are not important remove them and if those are important move them to USB. It will free up space and you can boot into your os.

To do this first you need to nevigate to the mount point and then run the command to see which files are large and taking most space.

Code:
du -ah . | sort -rh | head -n 20

After the temporary solution you need an external hard drive to move your data.
It will help to solve your two problem
1. It will free up enough space to run os smoothly
2. Your data will be backed up in a safe storage.
No, it's quite different. In a backup, you're just making a copy of the files that are important to you. (It's up to you to decide which files are important to you, but it can be that you want to image the entire drive so that you can just restore it if it breaks.)



At least in Linux, just use the live instance and make use of 'sudo'. (The password is usually blank in a live instance.) If you want to access these locked files, open the terminal and run sudo <name_of_file_manager>, and open the file manager with elevated permissions.



Yes. Though I'd strongly suggest using Windows tools to work on Windows partitions. You can go use a tool to shrink the Windows partition, and then you can expand the Linux partition. I'd also strongly suggest using Linux tools when you then adjust the Linux partition.

If you're using Linux tools, there are tools like gnome_disks and gparted that will help you partition your storage devices. Both of those are graphical (GUI) tools. I do not know enough to recommend any Windows partitioning tools, as I have no idea what's current and what's available. (I'm not familiar with Windows.)
file manager - I typed in "sudo nautilus" and was able to delete one huge file from sda2 (old, full HD). This file was 4Gb.
BINGO!!!! IT WORKED! I JUST RESTARTED MY COMPUTER! I verified that deleted file is really gone. Done.
Thank you so much, KGIII.... I spent 3 days and the answer was so simple!
 
-- SOLVED --
As suggested by KGIII, I used "sudo nautilus" to gain an access to the files (full access) and deleted one huge file (4gb) in order to free disk space. It worked. I just restarted my computer as usual.
Thank you all, who participated and led to a successful "recovery"!!! Now I can have my favorite drink!
 
-- SOLVED --

Excellent. I've gone ahead and marked this thread as solved for you. You can do that yourself. You just click the edit bit on your original post and there's a drop down menu that lets you select 'solved'. I've done so on your behalf.

If you ever can't access a file (in LInux), it's probably a matter of permissions. Linux is a multi-user system, and various users own various bits of software. Root can access everything, all the time. You can (and should) just use sudo. Using sudo will temporarily give you elevated permissions. Because it has elevated permissions, you should be careful with it.
 


Follow Linux.org

Members online


Top