Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have Fedora installed alongside Windows 7 in a Dell desktop with Intel Core i3 processor (64-bit system). Have had it for a few years. I don't use the Windows part, probably should have deleted it long ago.
The Fedora version is called Heisenbug (I think it is 20)
The thing is that it stopped booting a few days ago. I recall a warning about running low in disk space, but did not act in time. The Windows sector boots fine. Actually, I logged into Windows and shrunk a Windows partition to create some unallocated space (to try to fix the Fedora boot).
I have created two USB flash drives that boot. One has ubuntu (I believe 16) and the other SystemRestoreCD. They both boot on this machine. They both have GParted. SYstemRestoreCD also has testdisk and many other tools I do not know how to use.
My question is, what can I do to get Fedora to boot again? Should I try to add space to the Fedora partition, fix the boot sector, etc.? And how would I do those things (step by step if possible)?
Any advice will be appreciated.
Thanks.
The rules don't allow me to post attachments. Why? I have an image from GParted. It shows filled partition (/dev/sda6), inside an extended partition (/dev/sda4). It also shows about 49 GB of unallocated space right next to /dev/sda4 ("stolen" from Windows partition /dev/sda3).
There is a post count limit to stop bots (I'm guessing). Stick the image on the web somewhere (dropbox, whatever) and tell us the address.
gparted is good at fixing partitions - just drag the edges to incorporate space, but there may be other issues like the boot-loader. Being Win7 I'm guessing BIOS, not UEFI - is that true ?.
Are you comfortable using the terminal (command line) ?.
Thanks for the reply. Will check into BIOS or UEFI, but it is probably BIOS (got another computer, Win 8, that has UEFI, and I tend to get it confused in my mind).
Will try to post image somewhere (I don't use fb).
OK with command line, shell scripts, etc.
Thanks. Will get back with the image thing. Did not know you could drag partitions in GParted. Will hold off on doing it for now.
When the partition that contains home becomes full it prevents users from logging in but you should be able to boot to single user mode from grub and be able to copy or delete files as necessary to reduce the size to less then 95%.
You should be able to mount the filesystems from any live CD or rescue system assuming it isn't encrypted and delete or copy files as desired too.
Without knowing exactly how the drive is partitioned it is difficult to say how to add the empty space i.e. if you are using LVM or encyrption etc. Post the output of the command:
I posted the same question at the Fedora forum, that post contains the GParted image. Have gotten no responses there
It is BIOS. I took some pictures of the system description (from the set-up screens), but they will not upload to the Fedora forum site (probably too big). Will try to post them somewhere else.
The drive is not encrypted. Not sure about LVM. Will post the output of lsblk. Need to do it from the computer in question. Almost did it from here
When I enter the computer from the USB drive, I can find out the address of the directories within Fedora by looking at the properties of the partitions. The addresses are long strings enclosed in quotes. I can list these addresses, keeping the quotes using the usual ls command (except that I cannot use auto-completion or wild card) and can remove (rm) files that way. They seem to go away, but the partition is still full.
As I said, will post output of lsblk from that computer.
Thanks.
Here it is (actually, it shows lvm):
ubuntu@ubuntu:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 1 14.9G 0 disk
└─sdb1 8:17 1 14.9G 0 part /cdrom
sr0 11:0 1 1024M 0 rom
loop0 7:0 0 1.5G 1 loop /rofs
sdc 8:32 1 14.9G 0 disk
└─sdc1 8:33 1 14.9G 0 part /media/ubuntu/LEXAR
sda 8:0 0 931.5G 0 disk
├─sda4 8:4 0 1K 0 part
├─sda2 8:2 0 12.3G 0 part
├─sda5 8:5 0 500M 0 part
├─sda3 8:3 0 479.8G 0 part
├─sda1 8:1 0 39.2M 0 part
└─sda6 8:6 0 390.1G 0 part
├─fedora_kiran--pc-home 253:1 0 334.4G 0 lvm
├─fedora_kiran--pc-root 253:2 0 50G 0 lvm
└─fedora_kiran--pc-swap 253:0 0 5.8G 0 lvm
Last edited by alexbird; 03-27-2018 at 01:08 PM.
Reason: Add command output
You need to delete/copy enough space to go below 95% (assuming ext4) before the partition will not show full which is 16GB for home and 2.5GB for root. I assume you are able to mount the logical volumes.
You can not use the unallocated space until you add it to the extended partition. Once the space is part of the extended partition you can add to either logical volume.
You probably have something logging excessively to /var/log. Check the files in there and delete old ones to get the size down. Adjust rsyslog.conf or whatever is doing the logging to fix. I usually disable cron from logging on Fedora since it seems too chatty.
Sorry, I have not updated. Moved everything I found in Downloads to an external drive. It should have freed up ~ 6GB, but I do not see that showing up in GParted. Maybe I need to (attempt to) reboot, and it will update the information (or will boot successfully!).
Thanks very much for your help with this. This machine is where my son has all his school work, so this issue has caused us headaches. Of course, we have found work-arounds, but it will be so much better when we get this thing back working.
I deleted ~6GB of stuff from the Download directory (old downloaded files).
I think this should have freed up some space in /home. May not be relevant for booting. Actually, it was not able to reboot.
I do not understand this line from df:
/dev/mapper/fedora_kiran--pc-home ext4 329G 32G 281G 11% /media/ubuntu/1b426e42-6745-4319-a434-3621e575867c
It seems to suggest there is plenty of space available (281GB) in home.
A separate question, maybe I need to clear some of those 50G in root:
/dev/mapper/fedora_kiran--pc-root ext4 50G 50G 0 100% /media/ubuntu/27c3ed23-cd5f-4a5d-8a44-da6f0805b59f
Yet another question, is there a reason that when working from the USB things look different after I just log in than a while later?
For example, if I run df -hT right now, I do not get all the information I included in my previous post. I only get:
Notice how the last three lines I had before (with information on the Fedora locations) are missing now. I have noticed this same behaviour in other features. For example, if I open a file browser, I do not see all the locations in the computer right away. After I use it for a while, I see pointers to different volumes (the Windows and Fedora locations). I get the impression that the USB finds more places in my computer after I try a few times.
OK, for this (non booting) issue:
- no-one except you and your lad care about /home. We may steal some space from it later.
- the 50G root is the problem and where you need to concentrate
- the liveCD is a generic tool, you can explore its vagaries later.
Once the LVM (/dev/mapper) mounts have appeared, run these - may take a while, just let it run. Make sure the first command matches the pc-root mountpoint -- it should, but use whatever the "df" shows.
Code:
sudo du /media/ubuntu/27c3ed23-cd5f-4a5d-8a44-da6f0805b59f -xh | sort -hr | head
sudo pvs
sudo vgs
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.