Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

[solved] How to boot without external HDD

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

[solved] How to boot without external HDD

#1 Post by fred44nl »

my system runs Debian Stretch 9.6
internal I have an M2.SSD on which the system is installed.
externally I have an usb3 HDD.
for this disk I have a line in my /etc/fstab so the disk mounts at boot.
there is also a setting for sharing files on this external disk in /etc/samba/smb.conf
ok, no problem :)

when I shut down my system, remove the usbhdd, my system does not boot, but goes in Emergency Mode
so, I commented out the line for this disk in /etc/fstab
system does not boot.
after reconnecting the usbhdd, it booted again properly.

so, how can I boot my system without the usbhdd ??
Last edited by fred44nl on 2018-12-22 09:48, edited 1 time in total.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

arzgi
Posts: 1185
Joined: 2008-02-21 17:03
Location: Finland
Been thanked: 31 times

Re: How to boot without external HDD

#2 Post by arzgi »

Does the fstab line for the external hdd include noauto -option?

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: How to boot without external HDD

#3 Post by fred44nl »

arzgi wrote:Does the fstab line for the external hdd include noauto -option?
no, it does not.
this is the line:
UUID=cdd8bbd9-285b-45e8-ad06-ab29e7997e0b /mnt/usbhdd ext4 defaults 0 1
but before disconnecting the usbhdd, I have this line commented out.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: How to boot without external HDD

#4 Post by fred44nl »

I have added "nofail" and "x-systemd.device-timeout=10" to line for mounting the usbhdd in /etc/fstab
the boot-process now continues, also when the usbhdd is not connected.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [solved] How to boot without external HDD

#5 Post by Head_on_a_Stick »

fred44nl wrote:when I shut down my system, remove the usbhdd, my system does not boot, but goes in Emergency Mode
so, I commented out the line for this disk in /etc/fstab
system does not boot.
I would be very interested to see the journal contents for the failed boot with the fstab line deleted.

Enable a persistent journal with

Code: Select all

# mkdir -p /var/log/journal
Then comment out the fstab line, disconnect the drive, reboot twice (with the drive connected the second time) and post the output of

Code: Select all

journalctl -b -1
Please use code tags for the output, thanks!

The journal can be reset to non-persistent operation by deleting /var/log/journal
deadbang

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: [solved] How to boot without external HDD

#6 Post by fred44nl »

Head_on_a_Stick wrote:Please use code tags for the output, thanks!
what do you mean here ??
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [solved] How to boot without external HDD

#7 Post by Head_on_a_Stick »

fred44nl wrote:what do you mean here ??
It should be OK as long as you use code tags but http://paste.debian.net/ may be better if it's very long :wink:
deadbang

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: [solved] How to boot without external HDD

#8 Post by fred44nl »

Head_on_a_Stick wrote:
fred44nl wrote:what do you mean here ??
It should be OK as long as you use code tags but http://paste.debian.net/ may be better if it's very long :wink:
OK, I'll work on that.
probably to-morrow.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: [solved] How to boot without external HDD

#9 Post by fred44nl »

Head_on_a_Stick wrote: I would be very interested to see the journal contents for the failed boot with the fstab line deleted.
just saw you question again.
but there is no failed boot, when the fstab line is deleted.
this only happened when the line was there.
I assume there was a misunderstanding here :)
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 132 times

Re: [solved] How to boot without external HDD

#10 Post by Head_on_a_Stick »

fred44nl wrote:but there is no failed boot, when the fstab line is deleted.
this only happened when the line was there.
Ah, OK, my mistake then.

That clears up my confusion at least :)
deadbang

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: [solved] How to boot without external HDD

#11 Post by p.H »

fred44nl wrote:but there is no failed boot, when the fstab line is deleted.
this only happened when the line was there.
The above statement does not match the below quote from your original post :
fred44nl wrote:so, I commented out the line for this disk in /etc/fstab
system does not boot.

User avatar
fred44nl
Posts: 215
Joined: 2018-07-14 08:54
Has thanked: 1 time

Re: [solved] How to boot without external HDD

#12 Post by fred44nl »

p.H wrote: The above statement does not match the below quote from your original post :
fred44nl wrote:so, I commented out the line for this disk in /etc/fstab
system does not boot.
yes, sorry about that.
anyways, the problem is clear and solved.
Debian 10 - Buster on Compulab Fitlet2
Debian 12 - Bookworm on Acer Spin 1

Post Reply