LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2019, 07:02 AM   #31
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155

Quote:
Originally Posted by descendant_command View Post
man rename?
mv should work too.

So, you're just trying to stop mdadm from reporting it's findings at boot?

If you don't want/need it just remove the package.
I've tried mv and rename it doesn't work.

Yes, I'm just trying to stop mdadm from reporting it's findings at boot time:-

Can't rm it because mdadm may have a signature on the HDD which could cause other issues.

I'll see what the Live CD does when I can.
 
Old 03-04-2019, 07:19 AM   #32
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,691

Rep: Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508
Quote:
Originally Posted by Ztcoracat View Post
I've tried mv and rename it doesn't work.
"doesn't work" is not diagnostically helpful (although frequently indicates user error).

Quote:
Can't rm it because mdadm may have a signature on the HDD which could cause other issues.
What does that even mean?

If you have no mdadm arrays, you have no need for mdadm.
What does
Code:
aptitude why mdadm
show (may need to install aptitude).
 
Old 03-04-2019, 06:54 PM   #33
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by descendant_command View Post
"doesn't work" is not diagnostically helpful (although frequently indicates user error).


What does that even mean?

If you have no mdadm arrays, you have no need for mdadm.
What does
Code:
aptitude why mdadm
show (may need to install aptitude).
-:::-With or without elevated privileges trying to rename the mdadm.conf file does not work-:::-
The file show's no change what so ever:-

Even tho a Raid Array is not set up there may still be a signature (related to mdadm/raid setup) that is associated with Raid attached to the HDD that Debian 9 is installed on.
 
Old 03-05-2019, 12:38 AM   #34
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,691

Rep: Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508
Quote:
Originally Posted by Ztcoracat View Post
-:::-With or without elevated privileges trying to rename the mdadm.conf file does not work-:::-
Why not show us?
Quote:
Even tho a Raid Array is not set up there may still be a signature (related to mdadm/raid setup) that is associated with Raid attached to the HDD that Debian 9 is installed on.
There may also be leprechauns under your bed... shamrock patterned pyjamas should ward them off

Last edited by descendant_command; 03-05-2019 at 03:18 AM.
 
Old 03-05-2019, 06:52 AM   #35
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
When attempting to rename the file I get the error message shown in post # 25.

Quote:
There may also be leprechauns under your bed... shamrock patterned pyjamas should ward them off
lol
 
Old 03-05-2019, 01:13 PM   #36
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,691

Rep: Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508Reputation: 508
As per my post #30, that is just incorrect usage of 'rename'.
Just use a simple 'mv' (as root b/c it's a system file).

Or, better than monkeying around moving stuff that your system is expecting to be there - just remove the package.

Last edited by descendant_command; 03-05-2019 at 01:17 PM.
 
1 members found this post helpful.
Old 03-05-2019, 07:27 PM   #37
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
I'm using mv correctly but not rename correctly.

Code:
bash-4.3$ mv /home/zebracat/Documents/fstab1 /home/zebracat/Downloads/fstab2
bash-4.3$ rename /home/zebracat/Downloads/fstab2 /home/zebracat/Downloads/fstab3
rename: not enough arguments
 
Old 03-05-2019, 08:05 PM   #38
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Code:
bash-4.3$ mv /home/zebracat/Downloads/fstab2 /home/zebracat/Downloads/fstab3
Renaming those files with mv worked now to rename the mdadm.conf file shouldn't be that difficult.
I'll try again:-
 
Old 03-08-2019, 06:01 PM   #39
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Renaming that configuration file worked:-

Code:
MS-7845:~$ sudo mv /etc/mdadm/mdadm.conf /etc/mdadm/mdadm.conf.bac
However; I'm still getting this error at boot time:
Code:
mdadm:No arrays found in config file or automatically
Are you sure removing mdadm won't wreck the system?
 
Old 03-08-2019, 06:04 PM   #40
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 971

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by Ztcoracat View Post
Are you sure removing mdadm won't wreck the system?
As I mentioned, my Debian Testing runs fine without mdadm installed. If for whatever reason it don't boot or run properly, you can always reinstall it from a chroot or single user mode if it and it's dependencies are in /var/cache/apt/archives.
 
Old 03-08-2019, 06:15 PM   #41
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by Brains View Post
As I mentioned, my Debian Testing runs fine without mdadm installed. If for whatever reason it don't boot or run properly, you can always reinstall it from a chroot or single user mode if it and it's dependencies are in /var/cache/apt/archives.
I looked here:
https://wiki.debian.org/chroot

Never used chroot before Brains.

Suggestions?
 
Old 03-08-2019, 06:19 PM   #42
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 971

Rep: Reputation: 259Reputation: 259Reputation: 259
Quote:
Originally Posted by Ztcoracat View Post
I looked here:
https://wiki.debian.org/chroot

Never used chroot before Brains.

Suggestions?
Is this MBR partition scheme (Legacy BIOS) or GPT partitions (UEFI)?
 
1 members found this post helpful.
Old 03-08-2019, 06:22 PM   #43
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,397

Original Poster
Blog Entries: 15

Rep: Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155Reputation: 1155
Quote:
Originally Posted by Brains View Post
Is this MBR partition scheme (Legacy BIOS) or GPT partitions (UEFI)?
MBR:-
 
Old 03-08-2019, 06:41 PM   #44
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 971

Rep: Reputation: 259Reputation: 259Reputation: 259
You can do this two ways:
The first may not give internet access, but you can boot the Debian installer media and select Advanced/Rescue mode from the menu. It will go through many of the install questions but eventually ask which partition you want to mount, it should list a few since you have 3 drives, but you'll want to mount the Debian root partition, next you would select to go to a terminal inside the selected root partition where you can then install mdadm. But if it and it's dependencies are not in the cache, and there is no internet, it won't be able to retrieve necessary packages from the mirrors configured in /etc/apt/sources.list.

The other option is to boot a live (Preferably Debian derivative) CD, you should hopefully still have Mint. Mint has great support for network devices, you would open a terminal and issue the commands below to go into a chroot and reinstall mdadm, the "xxxx" would need be replaced with appropriate device such as /dev/sda1, needs to be the Debian root partition:
Code:
mount /dev/xxxx /mnt       
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
chroot /mnt
apt install mdadm
exit 
for i in /dev /dev/pts /proc /sys /run; do umount /mnt$i; done
umount /mnt
You may need to use sudo for the first three and last two commands if using Mint

But it's highly unlikely you'll need to reinstall mdadm. When you go to uninstall mdadm, it'll show before confirming what all other packages will need be uninstalled. In my earlier posts, I show which packages are dependencies of mdadm, if there are other packages that will need be uninstalled, means mdadm was installed as a dependency for these other packages, at which time you can decide if you want to go ahead. It's possible the other packages are also not needed as they may simply have been installed as a "Suggested" or "Recommended" package, which are not actually needed to keep the system running properly, they are just bloatware.

Last edited by Brains; 03-08-2019 at 06:45 PM.
 
Old 03-08-2019, 06:51 PM   #45
Brains
Member
 
Registered: Apr 2009
Distribution: Debian testing
Posts: 971

Rep: Reputation: 259Reputation: 259Reputation: 259
Sorry, I've been doing lots of fruit and vegetables lately.

You can do the chroot thing from the Mint that's installed, no need for Live CD.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Long time member, long time *nix user, about time to say hi. stuman LinuxQuestions.org Member Intro 0 10-15-2013 07:35 AM
Aboout "with very long lines",how long is very long? yun1st Linux - Newbie 4 07-20-2012 03:38 PM
long long long: Too long for GCC Kenny_Strawn Programming 5 09-18-2010 01:14 AM
Fedora9 now taking long time to boot terry-duell Fedora 7 12-10-2008 10:16 PM
SuSE 10.1 taking a long time to boot up adityavpratap SUSE / openSUSE 2 07-04-2006 06:51 AM

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

All times are GMT -5. The time now is 09:34 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration