Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #208032 > unrolled thread
| Started by | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| First post | 2019-05-02 14:50 +0200 |
| Last post | 2019-05-02 17:10 +0200 |
| Articles | 14 — 7 participants |
Back to article view | Back to linux.debian.user
Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Albretch Mueller <lbrtchx@gmail.com> - 2019-05-02 14:50 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Dan Purgert <dan@djph.net> - 2019-05-02 15:10 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Jonas Smedegaard <jonas@jones.dk> - 2019-05-02 15:20 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? <tomas@tuxteam.de> - 2019-05-02 15:50 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Brian <ad44@cityscape.co.uk> - 2019-05-02 16:10 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Jonas Smedegaard <jonas@jones.dk> - 2019-05-02 17:20 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Brian <ad44@cityscape.co.uk> - 2019-05-02 19:40 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Jonas Smedegaard <jonas@jones.dk> - 2019-05-02 20:30 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Brian <ad44@cityscape.co.uk> - 2019-05-02 21:20 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Dan Purgert <dan@djph.net> - 2019-05-02 16:50 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? <tomas@tuxteam.de> - 2019-05-02 17:10 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? Dan Purgert <dan@djph.net> - 2019-05-02 20:10 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? An Liu <sourceonly@gmail.com> - 2019-05-02 15:20 +0200
Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? "Thomas Schmitt" <scdbackup@gmx.net> - 2019-05-02 17:10 +0200
| From | Albretch Mueller <lbrtchx@gmail.com> |
|---|---|
| Date | 2019-05-02 14:50 +0200 |
| Subject | Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTjjX-1Ds-3@gated-at.bofh.it> |
something like: 1) download the iso's 2) go: <some application> /dev/sdb where "/dev/sdb" is the device a USB disk is linked to then you would plug the disk on your computer and take it from there For that I used to burn live DVD but there should be a better way lbrtchx
[toc] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-05-02 15:10 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTjDj-1ZV-5@gated-at.bofh.it> |
| In reply to | #208032 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Albretch Mueller wrote: > something like: > > 1) download the iso's > > 2) go: <some application> /dev/sdb > > where "/dev/sdb" is the device a USB disk is linked to Something like this, perhaps? dd if=debian.iso of=/dev/sdb bs=4M -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlzK6S4ACgkQjhHd8xJ5 ooFwhAgApPOZjD4xOWCEdZxpmEab9DPNUkOfxadbd4ExOwyRVCWgVFWzNefTzBZU mKrLf7f9rnOPcnxQmVcD51lOkwSoApsfA/ckRoQ+e1m3DgMXxo5woWxjt+EEO5Tu DMwKWY3LoG0I+daekbpKJ1lX8dGr2ifNiFwCWkimS2fMGRu/8JBbIjyz+K8meAKF ojXwN4PFjpJukIlUVN/bIjdjCRbOChQnK0B8zxwG1LBiz5B3j2Im7RBq+eyjsb9A fneh1sXpOcLdpxRHjPR5hw8n9OLk66aLDB9lHBC167vNyhtaa33ZgrHVbIikI+ge ndFog13cX6rekmthJPBKFKMF75hYQA== =rOk1 -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | Jonas Smedegaard <jonas@jones.dk> |
|---|---|
| Date | 2019-05-02 15:20 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTjMZ-23e-1@gated-at.bofh.it> |
| In reply to | #208032 |
[Multipart message — attachments visible in raw view] — view raw
Quoting Albretch Mueller (2019-05-02 14:42:08) > something like: > > 1) download the iso's > > 2) go: <some application> /dev/sdb > > where "/dev/sdb" is the device a USB disk is linked to > > then you would plug the disk on your computer and take it from there > > For that I used to burn live DVD but there should be a better way Debian ISOs specifically are prepared to be used not only on optical drives but also booted from e.g. USB flash drives. So "the better way" is to simply copy the image onto the device: sudo cp downloaded_image /dev/sdb There is a cargo cult preaching the use of "dd" but that tool is like cutting trees with scissors: The wrong tool for the job! There are some suggesting to avoid the need for sudo by messing with udev rules to grant non-root write access to removable devices. When properly established that is indeed more safe, but setting it up can go wrong in just as bad and more complex ways to decipher than simply mistyping the device name and wiping your main system drive. - Jonas -- * Jonas Smedegaard - idealist & Internet-arkitekt * Tlf.: +45 40843136 Website: http://dr.jones.dk/ [x] quote me freely [ ] ask before reusing [ ] keep private
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2019-05-02 15:50 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTkg2-2dw-1@gated-at.bofh.it> |
| In reply to | #208037 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, May 02, 2019 at 03:12:46PM +0200, Jonas Smedegaard wrote: [...] > There is a cargo cult preaching the use of "dd" but that tool is like > cutting trees with scissors: The wrong tool for the job! No cargo cult at all. Each tool has its advantages. The two I appreciate in dd are: - status=progress -- indicates how far the copy is. - oflag=direct and siblings, which let you fine-tune when to flush out stuff (mitigating the long wait at the end where the system seems to be doing nothig) There sure others. There are downsides to it, as well... Cheers -- t
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-05-02 16:10 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTkzn-2A1-1@gated-at.bofh.it> |
| In reply to | #208037 |
On Thu 02 May 2019 at 15:12:46 +0200, Jonas Smedegaard wrote:
> Quoting Albretch Mueller (2019-05-02 14:42:08)
> > something like:
> >
> > 1) download the iso's
> >
> > 2) go: <some application> /dev/sdb
> >
> > where "/dev/sdb" is the device a USB disk is linked to
> >
> > then you would plug the disk on your computer and take it from there
> >
> > For that I used to burn live DVD but there should be a better way
>
> Debian ISOs specifically are prepared to be used not only on optical
> drives but also booted from e.g. USB flash drives.
>
> So "the better way" is to simply copy the image onto the device:
>
> sudo cp downloaded_image /dev/sdb
I use cat downloaded_image > /dev/sdb
> There is a cargo cult preaching the use of "dd" but that tool is like
> cutting trees with scissors: The wrong tool for the job!
>
> There are some suggesting to avoid the need for sudo by messing with
> udev rules to grant non-root write access to removable devices. When
> properly established that is indeed more safe, but setting it up can go
> wrong in just as bad and more complex ways to decipher than simply
> mistyping the device name and wiping your main system drive.
This is along the same lines as Message #34 at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751892
> To random people reading this bug: please do not EVER do
> this or it may subtly break other things and then get you
> flamed when you will waste my time debugging that.
Although the issue is treated sympathetically towards the end of the
report, I don't believe I've ever seen an example of subtle breakage.
I agree with what is said in Message #23 at
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788662
> In any case, it seems unfortunate that users can no
> longer write an image to a USB disk without using root.
> Especially because that makes it easier to make a mistake
> and overwrite the wrong disk. I've made ahabit of always
> dd'ing as non-root, to make it somewhat less likely that
> I'd overwrite a system disk.
Which is why I have a udev rule with
SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
in it. I might stop doing that if its use was demonstrated to have an
adverse effect on other things I do.
--
Brian.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Smedegaard <jonas@jones.dk> |
|---|---|
| Date | 2019-05-02 17:20 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTlF7-3cW-3@gated-at.bofh.it> |
| In reply to | #208041 |
[Multipart message — attachments visible in raw view] — view raw
Quoting Brian (2019-05-02 16:01:31)
> On Thu 02 May 2019 at 15:12:46 +0200, Jonas Smedegaard wrote:
>
> > Quoting Albretch Mueller (2019-05-02 14:42:08)
> > > something like:
> > >
> > > 1) download the iso's
> > >
> > > 2) go: <some application> /dev/sdb
> > >
> > > where "/dev/sdb" is the device a USB disk is linked to
> > >
> > > then you would plug the disk on your computer and take it from
> > > there
> > >
> > > For that I used to burn live DVD but there should be a better way
> >
> > Debian ISOs specifically are prepared to be used not only on optical
> > drives but also booted from e.g. USB flash drives.
> >
> > So "the better way" is to simply copy the image onto the device:
> >
> > sudo cp downloaded_image /dev/sdb
>
> I use cat downloaded_image > /dev/sdb
Is there some benefit to that over cp?
Reason I prefer cp is that it is less confusing esp. for newcomers, in
that it works also with sudo.
> > There is a cargo cult preaching the use of "dd" but that tool is
> > like cutting trees with scissors: The wrong tool for the job!
> >
> > There are some suggesting to avoid the need for sudo by messing with
> > udev rules to grant non-root write access to removable devices.
> > When properly established that is indeed more safe, but setting it
> > up can go wrong in just as bad and more complex ways to decipher
> > than simply mistyping the device name and wiping your main system
> > drive.
>
> This is along the same lines as Message #34 at
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751892
>
> > To random people reading this bug: please do not EVER do
> > this or it may subtly break other things and then get you
> > flamed when you will waste my time debugging that.
>
> Although the issue is treated sympathetically towards the end of the
> report, I don't believe I've ever seen an example of subtle breakage.
>
> I agree with what is said in Message #23 at
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788662
>
> > In any case, it seems unfortunate that users can no
> > longer write an image to a USB disk without using root.
> > Especially because that makes it easier to make a mistake
> > and overwrite the wrong disk. I've made ahabit of always
> > dd'ing as non-root, to make it somewhat less likely that
> > I'd overwrite a system disk.
>
> Which is why I have a udev rule with
>
> SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
>
> in it. I might stop doing that if its use was demonstrated to have an
> adverse effect on other things I do.
Good for you that you have a hack that works. Really!
Reason I discourage that approach more generally is not that I want to
"flame" anyone (as in that bugreport you referenced aboe), but that I
seek ways reasonable also for non-technical users: Your udev hack is
more (not less) complicated for a non-technical user to do right
compared to my one-liner sudo+cp command. Your approach is sensible if
doing _many_ such operations, but not when doing few, as a beginner.
At http://box.redpill.dk/ I currently use these initial steps:
[...]
2) Connect microSD card to pc, and locate its device path:
* On linux, try this command:
lsblk --paths --nodeps
* On macOS, try this command:
ls /dev/rdisk?
* Compare output of above command with and without card plugged in
to not COMPLETELY OVERWRITE the wrong device below
3) Make sure card is (connected but) not mounted:
* On linux, check that lsblk lists no mountpoint entry
4) Decompress and copy image onto card
(adjust image name and device path as needed):
gunzip core-lime2-1.0b22.img.gz
sudo cp core-lime2-1.0b22.img PATH_TO_YOUR_SDCARD
[...]
That's not the method I use myself when testing those images over and
over again, but the most sensible I have found so far for general use,
also for those not fluent in shell pipes and udevadm queries and such...
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-05-02 19:40 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTnQB-4sl-5@gated-at.bofh.it> |
| In reply to | #208045 |
On Thu 02 May 2019 at 17:09:26 +0200, Jonas Smedegaard wrote:
> Quoting Brian (2019-05-02 16:01:31)
> >
> > I use cat downloaded_image > /dev/sdb
>
> Is there some benefit to that over cp?
None that I know of; it's just something I've used since isohybrids
came along.
> Reason I prefer cp is that it is less confusing esp. for newcomers, in
> that it works also with sudo.
Point taken. I think the ">" can also cause problems and would have
no problem recommending cp instead of cat.
> > Which is why I have a udev rule with
> >
> > SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
> >
> > in it. I might stop doing that if its use was demonstrated to have an
> > adverse effect on other things I do.
>
> Good for you that you have a hack that works. Really!
Labelling it a "hack" is not something I find sufficient to cause me
to abandon a technique that makes copying to a removable device safer.
After all, it was the norm on wheezy (and maybe before), so users had
some protection against writing to the incorrect device without being
aware the rule was there.
Don't get me wrong; I am not arguing for its return or that others
follow my lead.
> Reason I discourage that approach more generally is not that I want to
> "flame" anyone (as in that bugreport you referenced aboe), but that I
> seek ways reasonable also for non-technical users: Your udev hack is
> more (not less) complicated for a non-technical user to do right
> compared to my one-liner sudo+cp command. Your approach is sensible if
> doing _many_ such operations, but not when doing few, as a beginner.
I am unfamiliar with sudo but didn't think sudo+cp prevented my
accidentally wiping a system disk.
--
Brian.
[toc] | [prev] | [next] | [standalone]
| From | Jonas Smedegaard <jonas@jones.dk> |
|---|---|
| Date | 2019-05-02 20:30 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xToCZ-4Z0-5@gated-at.bofh.it> |
| In reply to | #208048 |
[Multipart message — attachments visible in raw view] — view raw
Quoting Brian (2019-05-02 19:35:07)
> On Thu 02 May 2019 at 17:09:26 +0200, Jonas Smedegaard wrote:
> > Quoting Brian (2019-05-02 16:01:31)
> > > Which is why I have a udev rule with
> > >
> > > SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
> > >
> > > in it. I might stop doing that if its use was demonstrated to have
> > > an adverse effect on other things I do.
> >
> > Good for you that you have a hack that works. Really!
>
> Labelling it a "hack" is not something I find sufficient to cause me
> to abandon a technique that makes copying to a removable device safer.
Sorry - I meant "hack" as a power user compliment.
> > Reason I discourage that approach more generally is not that I want
> > to "flame" anyone (as in that bugreport you referenced aboe), but
> > that I seek ways reasonable also for non-technical users: Your udev
> > hack is more (not less) complicated for a non-technical user to do
> > right compared to my one-liner sudo+cp command. Your approach is
> > sensible if doing _many_ such operations, but not when doing few, as
> > a beginner.
>
> I am unfamiliar with sudo but didn't think sudo+cp prevented my
> accidentally wiping a system disk.
It doesn't.
You and I are both power user. We use (sudo or) su, or log in as root.
That is needed to tune our systems e.g. by adding a udev rule.
Last summer I was in Taiwan at Debconf, together with many other power
users. Imagine I had forgotten my laptop at home, went out and bought a
cheap taiwanese laptop, and wanted to install Debian on it. I would
then go over to one of my power user friends with my new laptop and a
USB stick. I could then ask my friend to...
* Reconfigure their system to include a udev rule
so that writing to USB flash disks did not require root,
and then run cp as regular user (even a guest account!)
* Run a cp command as root.
Which would be most sensible?
Which would be most sensible to ask a non-technical friend to do?
Yes, your approach works, and is one that I might use myself and might
recommend to power users for their own pleasure. But not something I
would recommend to power user for a one-time need, not something I would
recommend non-technical users themselves (how *I* might tune their
systems if granted root access is a very different story).
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
[toc] | [prev] | [next] | [standalone]
| From | Brian <ad44@cityscape.co.uk> |
|---|---|
| Date | 2019-05-02 21:20 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTppo-5vI-3@gated-at.bofh.it> |
| In reply to | #208051 |
On Thu 02 May 2019 at 20:21:39 +0200, Jonas Smedegaard wrote:
> Quoting Brian (2019-05-02 19:35:07)
> > On Thu 02 May 2019 at 17:09:26 +0200, Jonas Smedegaard wrote:
> > > Quoting Brian (2019-05-02 16:01:31)
> > > > Which is why I have a udev rule with
> > > >
> > > > SUBSYSTEM=="block", ATTRS{removable}=="1", GROUP="floppy"
> > > >
> > > > in it. I might stop doing that if its use was demonstrated to have
> > > > an adverse effect on other things I do.
> > >
> > > Good for you that you have a hack that works. Really!
> >
> > Labelling it a "hack" is not something I find sufficient to cause me
> > to abandon a technique that makes copying to a removable device safer.
>
> Sorry - I meant "hack" as a power user compliment.
Me? A power user? I am not used to compliments on -user; they make
me feel uneasy. But thank you for any confidence you might have in
my abilities to drive Debian.
> > > Reason I discourage that approach more generally is not that I want
> > > to "flame" anyone (as in that bugreport you referenced aboe), but
> > > that I seek ways reasonable also for non-technical users: Your udev
> > > hack is more (not less) complicated for a non-technical user to do
> > > right compared to my one-liner sudo+cp command. Your approach is
> > > sensible if doing _many_ such operations, but not when doing few, as
> > > a beginner.
> >
> > I am unfamiliar with sudo but didn't think sudo+cp prevented my
> > accidentally wiping a system disk.
>
> It doesn't.
>
> You and I are both power user. We use (sudo or) su, or log in as root.
> That is needed to tune our systems e.g. by adding a udev rule.
>
> Last summer I was in Taiwan at Debconf, together with many other power
> users. Imagine I had forgotten my laptop at home, went out and bought a
> cheap taiwanese laptop, and wanted to install Debian on it. I would
> then go over to one of my power user friends with my new laptop and a
> USB stick. I could then ask my friend to...
>
> * Reconfigure their system to include a udev rule
> so that writing to USB flash disks did not require root,
> and then run cp as regular user (even a guest account!)
>
> * Run a cp command as root.
>
> Which would be most sensible?
Ok, you have my arm up my back. I'd go for the second choice. It's
quicker and involves no disruption to the friend's system. The onus
would then be on me to be ultra-careful before pressing the ENTER
key. "Friend", I would say - "please check what I am doing".
> Which would be most sensible to ask a non-technical friend to do?
>
> Yes, your approach works, and is one that I might use myself and might
> recommend to power users for their own pleasure. But not something I
> would recommend to power user for a one-time need, not something I would
> recommend non-technical users themselves (how *I* might tune their
> systems if granted root access is a very different story).
As I said, I am not advocating my approach to anyone. And I get exactly
what you are saying about non-technical users. Double-checking is more
likely to be followed than any amount of "change your system". Again -
point taken.
--
Brian.
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-05-02 16:50 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTlc5-2Nk-9@gated-at.bofh.it> |
| In reply to | #208037 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jonas Smedegaard wrote: > Quoting Albretch Mueller (2019-05-02 14:42:08) >> something like: >> >> 1) download the iso's >> >> 2) go: <some application> /dev/sdb >> >> where "/dev/sdb" is the device a USB disk is linked to >> >> then you would plug the disk on your computer and take it from there >> >> For that I used to burn live DVD but there should be a better way > > Debian ISOs specifically are prepared to be used not only on optical=20 > drives but also booted from e.g. USB flash drives. > > So "the better way" is to simply copy the image onto the device: > > sudo cp downloaded_image /dev/sdb That's just going to put debian-whatever.iso on the drive ... perhaps you meant cat? -----BEGIN PGP SIGNATURE----- iQEyBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlzK/wYACgkQjhHd8xJ5 ooE7eQf492+G+Ub5/dtq73vrNBIQSAY2oTqeuObwWyM0LCMmjp1zpzox/xv/r1fQ wUJA17WeCf6SjlZLd38NEy+TPOMR69unkd5fz4RtCfcJicguMNgOUHb2fLM+q2CV GmWHPh3dhdYbJrX564pjnYZDaj77xhq39E5tciEaPJdVTXg8BicbtG/GFAMhdPha dcSFG6oYqCYadyjhGBBm9xwKDzMW2t7DCtPAmaZzwaiOy9XiHOUiBOAnqFR/B8/4 lD5MRt0cy/aDHZdSFYqvExOEU/GMLQ4qZvA/ZeiWTrMd29lIPCUJwdiR5K3Rbj2E dgyfPZbUynDg7laOK7Fgun9tSYK6 =RBTJ -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | <tomas@tuxteam.de> |
|---|---|
| Date | 2019-05-02 17:10 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTlvr-39C-3@gated-at.bofh.it> |
| In reply to | #208042 |
[Multipart message — attachments visible in raw view] — view raw
On Thu, May 02, 2019 at 02:30:30PM -0000, Dan Purgert wrote: [...] > > sudo cp downloaded_image /dev/sdb > > That's just going to put debian-whatever.iso on the drive ... perhaps > you meant cat? No. Actually cp and cat will do the same (assuming /dev/sdb is the device file).
[toc] | [prev] | [next] | [standalone]
| From | Dan Purgert <dan@djph.net> |
|---|---|
| Date | 2019-05-02 20:10 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTojD-4Si-1@gated-at.bofh.it> |
| In reply to | #208043 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 <tomas@tuxteam.de> wrote: > On Thu, May 02, 2019 at 02:30:30PM -0000, Dan Purgert wrote: > > [...] > >> > sudo cp downloaded_image /dev/sdb >> >> That's just going to put debian-whatever.iso on the drive ... perhaps >> you meant cat? > > No. Actually cp and cat will do the same (assuming /dev/sdb is the > device file).S Nice, learned something new today. -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAlzLLuQACgkQjhHd8xJ5 ooHdWQf/YL5L2PA405e9yIf0oh3+xtyp/5AxWkqAD9oZQ3FzUmCvIyCVogO0PCku WmtHZL6e9oBgKPkVKvttQ2DCB8QrDHN+OKOkzdHasPyAPKh/6Z/WX7WcJrqnoM8N azmEaYHXhXcJz2w8I4XIah2334nS4eI7pQbcySPFKGFyKK5sR/mj/7sIOBvf8DgJ nZKLiGkqRvhEzmcT4EFz/AvgelrdnA8QOaLhjyKcq2HIv5RXB1uqzezkpcIeTXGe jcA4Inlse3uH+fy8ZYVxIzOc0XNMnnHts9jmm76gNOJon7UXsXvY4AXCrOIpjRSX 4shYjzup+WqmEfvfjuMar3hw48N4Ww== =ziFj -----END PGP SIGNATURE----- -- |_|O|_| |_|_|O| Github: https://github.com/dpurgert |O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5 4AEE 8E11 DDF3 1279 A281
[toc] | [prev] | [next] | [standalone]
| From | An Liu <sourceonly@gmail.com> |
|---|---|
| Date | 2019-05-02 15:20 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTjMZ-23e-7@gated-at.bofh.it> |
| In reply to | #208032 |
[Multipart message — attachments visible in raw view] — view raw
if you dont want to erase the existing contents of your USB stick (or you even dont need a USB stick) then grab vmlinuz and initrd from http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/hd-media/ then place debian install iso of same version under root partition of disk (not only work for usb ,but also the partition on sdX you would not destory in next installation) reboot with these too vmlinuz and initrd from GRUB (you should have it as you mentioned existing workable system) and you are all through,nothing special to iso boot On Thu, May 2, 2019 at 14:42 Albretch Mueller <lbrtchx@gmail.com> wrote: > something like: > > 1) download the iso's > > 2) go: <some application> /dev/sdb > > where "/dev/sdb" is the device a USB disk is linked to > > then you would plug the disk on your computer and take it from there > > For that I used to burn live DVD but there should be a better way > > lbrtchx > > -- Liu An
[toc] | [prev] | [next] | [standalone]
| From | "Thomas Schmitt" <scdbackup@gmx.net> |
|---|---|
| Date | 2019-05-02 17:10 +0200 |
| Subject | Re: Is there a way to install Debian iso's from an existing installation onto a USB connected drive? |
| Message-ID | <xTlvr-39C-11@gated-at.bofh.it> |
| In reply to | #208032 |
Hi, i am trying to make sense of the title of this thread. If it is about putting an existing individual Debian installation as bootable ISO system onto an USB stick: Difficult, at best. If it is about replacing the use of Debian Live on DVD by Debian Live on USB stick, then the proposals of dd, cat, and cp will do with a current Debian Live ISO image. E.g. from https://cdimage.debian.org/debian-cd/current-live/amd64/iso-hybrid/ Important is that you use the base device, e.g. /dev/sdc, not a partition device like e.g. /dev/sdc1. Further be aware that all old content of the USB drive will become nearly unaccessible if not overwritten. Your drive will get a new partition table by copying the Live ISO. (Make sure you use the right /dev/sd? as copy target. Not your system disk.) See also https://www.debian.org/CD/faq/#write-usb Verification of the written USB drive is done as with DVD. See https://www.debian.org/CD/faq/#verify Have a nice day :) Thomas
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web