Page 1 of 1

SOLVED: How to remove a disk

Posted: Sat Feb 24, 2018 5:34 am
by steveblakemore
Hi,

I have a problem with my HDA and would be grateful for help.
I have two hard drives in it, and want to replace one of them (/dev/sdb).
So, what I have done:
There was one share pointing to sdb, so I deleted that share, shut down the HDA, took out the 3TB disk, sdb, and then replaced it with a 160GB disk. I then started up the HDA. It then showed the following message on the screen:
---------------------------
Welcome to emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to try again to boot into default mode.
Cannot open access to console, the root account is locked.
See sulogin(8) man page for more details.
Press Enter to continue.
----------------------------

Pressing Enter took me to a grey screen with three little squares on for a few minutes, then the message above reappeared.
I tried removing the 160GB disk. Same problem, made no difference.
I put the 3TB disk back - it booted up fine!

Please advise how to safely remove the 3TB disk.

Steve

Re: How to remove a disk

Posted: Sat Feb 24, 2018 5:44 am
by steveblakemore
OK, so I just found this on the wiki:

CAUTION: If you mount a drive and at some point remove it, ensure you remove the appropriate entry from the /etc/fstab. If you don't, your HDA will boot into Emergency Mode and be inoperable.

I will remove the line that refers to the 3TB disk, then shut down and remove it.

Steve

Re: How to remove a disk

Posted: Sat Feb 24, 2018 6:24 am
by steveblakemore
And what do you know - IT JUST WORKS!!
I guess I answered my own question in a way - but thanks for the Wiki. I must remember to read it next time before I post to the forum
:lol:

Re: How to remove a disk

Posted: Sat Feb 24, 2018 8:34 am
by bigfoot65
Glad to hear the wiki was helpful for you.

It’s our intent to put common tasks and tutorials there for users.

Will mark this as resolved.