LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-22-2022, 04:08 AM   #1
doraimom
Member
 
Registered: Nov 2005
Posts: 288

Rep: Reputation: 30
Resized Debian Partition in Windows. After Error: "mdadm no arrays found"


Hi.
I entered my windows 10 to resize the SWAP partition and then increase the size of the EXT4 Debian file system. After that, when I reboot and try to access Debian I get the error:
Quote:
mdadm no arrays found in config file or automatically
I was only able to get to the terminal through DEBIAN RESCURE option in GRUB, but since everything was locked as protected read only and all possible and imaginable commands didn't work I went back to the LIVE CD (USB disk).
Through the live CD I was able to mount the Debian's existing partition, but I wasn't able to neither fix the problem nor reinstall GRUB.

One solution that I tried was:
Quote:
mdadm --detail --scan >> /etc/mdadm.conf
update-initramfs -u
update-grub
The first command worked, but "update-initramfs -u" and "update-grub" didn't work since the command was interpreted inside the live CD:
Quote:
ERROR:
update-initramfs is disabled (live system is running in read-only media)
Can anyone provide me with a solution either from the live CD terminal to repair the system or through the reinstallation of GRUB?

I also tried to use Debian's USB installation media to reinstall only GRUB, marking the existing partition (sda7) as "KEEP existing files" and use it as "/", but it didn't allow me to finish the installation. It kept sending me back to the partition table screen every time I tried to finish the installation.

Thank you.

Last edited by doraimom; 02-22-2022 at 04:14 AM.
 
Old 02-22-2022, 04:41 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,842

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
looks like your partition table is corrupted. I don't really know if it can be easily repaired. Can you just reinstall it?
 
Old 02-22-2022, 10:58 AM   #3
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Once you mount the existing Debian partition you should chroot to it and then run the commands you tried, else the commands will be run on the live CD instance. You can chroot by issuing the following command as root:

chroot /path/to/new/root

where /path/to/new/root is where you mounted your debian partition.

- Suramya
 
Old 02-23-2022, 08:21 AM   #4
larstrier
Member
 
Registered: Dec 2019
Distribution: Debian
Posts: 97

Rep: Reputation: 24
Quote:
Originally Posted by doraimom View Post
Through the live CD I was able to mount the Debian's existing partition, but I wasn't able to neither fix the problem nor reinstall GRUB.
Have you tried using your debian-live USB to use Gparted partition editor?
You could then use Gparted to open your debian OS on sda7.
If you can - it may be possible to tidy up any partition irregularities on your hard drive (if there are any).
Then press the 'Apply' button on Gparted.
This may refresh your partition changes - except this time with a gnome-based partition editor.


Quote:
I also tried to use Debian's USB installation media to reinstall only GRUB, marking the existing partition (sda7) as "KEEP existing files" and use it as "/"
Nice idea. But I thought the installation media was only to install a debian OS first (and then install GRUB to complete the installation).

You could use the debian installation media to actually install a new debian OS on a new partition.
You could create the new partition with your debian-live USB. After the new install is complete GRUB will be re-installed on the mbr.
However I don't know if this will actually recover your debian OS on sda7.

At the very least you could use your debian-live USB to access the /home directory of your debian OS. Save the /home directory on your debian-live USB (if it has persistence) and then reinstall debian. You can then transfer your saved /home directory to the new install.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mdadm: No arrays found in config file babunix Linux - Enterprise 8 08-29-2018 08:16 AM
openSUSE won't boot after I resized its partition - grub2 related Mountain Linux - General 18 11-09-2009 01:42 PM
Ext4 partition corrupted by resized NTFS Vista C:\ partition? graviton-boson Linux - Newbie 2 03-16-2009 01:26 PM
Resized Existing Windows Partition Using QTParted; System now Fudged! Rott3nHippi3 Linux - Software 5 09-07-2007 02:07 PM
resized windows partition no longer accessible jboy22k MEPIS 3 01-24-2006 12:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration