Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian on an external storage #1

Open
matrob opened this issue Jan 27, 2020 · 5 comments
Open

Debian on an external storage #1

matrob opened this issue Jan 27, 2020 · 5 comments

Comments

@matrob
Copy link

matrob commented Jan 27, 2020

Is it possible to install debian on an USB drive to use all the disk space on the NAS?

@vzhilov
Copy link
Owner

vzhilov commented Jan 27, 2020

Yes, sure.

I believe the USB drive will be detected as /dev/sdc1 and then last lines of /initrd/init will be:

mount -o rw /dev/sbc1 /mnt/root 2>&1 >/dev/null
if [ -h /mnt/root/sbin/init -o -e /mnt/root/sbin/init ]; then
  boot
else
  rescue_shell
fi

Internal RAM of the NAS will boot, then it will decrypt the NAS and then turn the further booting over to Debian on USB drive

@matrob
Copy link
Author

matrob commented Jan 28, 2020

Thanks for the working information. After correcting the small typo I could successfully start from /dev/sdc1.

mount -o rw /dev/sdc1 /mnt/root 2>&1 >/dev/null
if [ -h /mnt/root/sbin/init -o -e /mnt/root/sbin/init ]; then
  boot
else
  rescue_shell
fi

@matrob
Copy link
Author

matrob commented Feb 2, 2020

I have also evaluated another approach that is more flexible and does not rely on hard-coded /dev/sdX1 drive specifications. After further testing I will hopefully be able to release it soon.

@matrob matrob closed this as completed Feb 2, 2020
@vzhilov vzhilov reopened this Apr 21, 2020
@vzhilov
Copy link
Owner

vzhilov commented Apr 21, 2020

I have changed the init script adding a little dialog with a boot option from external device

@mnemonicj
Copy link

Hello!
Thank you for the great work. How can I set the boot to default, or permanent to /dev/md1?
It is asking me everytime to choose.
Thank you,
Regards
Rainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants