[solved] How to boot without external HDD

If none of the more specific forums is the right place to ask

[solved] How to boot without external HDD

Postby fred44nl » 2018-12-19 13:00

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: How to boot without external HDD

Postby arzgi » 2018-12-19 18:08

Does the fstab line for the external hdd include noauto -option?
arzgi
 
Posts: 390
Joined: 2008-02-21 17:03
Location: Finland

Re: How to boot without external HDD

Postby fred44nl » 2018-12-19 21:10

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: How to boot without external HDD

Postby fred44nl » 2018-12-22 09:48

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: [solved] How to boot without external HDD

Postby Head_on_a_Stick » 2018-12-22 11:24

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
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] How to boot without external HDD

Postby fred44nl » 2018-12-22 11:46

Head_on_a_Stick wrote:Please use code tags for the output, thanks!


what do you mean here ??
Debian 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: [solved] How to boot without external HDD

Postby Head_on_a_Stick » 2018-12-22 11:53

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:
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] How to boot without external HDD

Postby fred44nl » 2018-12-22 12:00

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: [solved] How to boot without external HDD

Postby fred44nl » 2018-12-22 13:21

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54

Re: [solved] How to boot without external HDD

Postby Head_on_a_Stick » 2018-12-22 13:23

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 :)
"French riots get results! U lot are instagram zzzombies" — graffiti over Euston underpass
User avatar
Head_on_a_Stick
 
Posts: 8590
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: [solved] How to boot without external HDD

Postby p.H » 2018-12-22 19:45

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.
p.H
 
Posts: 709
Joined: 2017-09-17 07:12

Re: [solved] How to boot without external HDD

Postby fred44nl » 2018-12-23 08:36

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 9.6 on Compulab Fitlet2
User avatar
fred44nl
 
Posts: 97
Joined: 2018-07-14 08:54


Return to General Questions

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable