LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 05-10-2021, 09:52 AM   #1
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Rep: Reputation: Disabled
installing linux from disk on key usb disk


Hi all,

I want to ask regarding how can I install a full linux distribution from an .iso file on a laptop that does not have dvd writer, offcourse it has usb, so after saving the distro .iso file on the usb disk how can I install it on the new laptop ??

Thanks,
 
Old 05-10-2021, 10:56 AM   #2
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Don't just save the iso file to the usb stick — all you'll have then is the iso file on the usb as well as on your hard drive. You need to create an iso image on the usb stick so that it is bootable and looks like a DVD.
1. Insert the usb stick and use the mount command to see what it's mounted as — like /dev/sdb
2. Unmount it with umount.
3. Run as root
Code:
dd if=/path_to_file.iso of=/dev/sdb status=progress
(or whatever /dev/ you got from 1)
 
Old 05-10-2021, 11:02 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Not enough information provided.

It depends, did you download the ISO file on the new laptop and do we assume it runs Windows? If so you can create the USB flash drive using win32diskimager or other utility like Etcher as recommended by the distribution's documentation.

If you downloaded the ISO file to a linux PC you can create a bootable USB drive using the dd command. Be sure you use the correct device ID for your USB drive or you could potentially overwrite your operating system.
 
Old 05-10-2021, 11:48 AM   #4
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
I have debian 10 on the old laptop and want to create bootable usb drive, but I will not install it on the same laptop but on a new one that does not have dvd writer, never installed a os on a laptop with no dvd writer.

thanks,
 
Old 05-10-2021, 12:01 PM   #5
lin66uxx
Member
 
Registered: Oct 2012
Distribution: debian11
Posts: 212

Original Poster
Rep: Reputation: Disabled
Quote:
2. Unmount it with umount.
I do not understand why I need to un mount it?
How can write to it while it is un mounted ?


Thanks,
 
Old 05-10-2021, 02:48 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,981

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
https://linuxize.com/post/create-boo...tick-on-linux/ May be a way if you are careful.
 
Old 05-11-2021, 12:33 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by lin66uxx View Post
I do not understand why I need to un mount it?
How can write to it while it is un mounted ?


Thanks,
DavidMcCann gave you the correct answer.
Graphical applications that effectively do the same as the dd command exist.

Although I need to stress that you shouldn't rely on the USB drive being /dev/sdb - could just as well be sdc, sdd etc... Check with
Code:
sudo fdisk -l
Learn to read the wiki before asking questions: https://www.debian.org/CD/faq/#record-unix
 
Old 05-11-2021, 03:27 AM   #8
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,491

Rep: Reputation: Disabled
You 'image copy' an .iso file to your pendrive, then it acts just like a DVD when you boot up from it.

It is a complete system image within the .iso file, so it needs to be exactly the same on your pendrive.
 
Old 05-11-2021, 11:50 AM   #9
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,142

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
You mount it to discover the device name so that you write to the USB stick and not your hard drive by accident. But you have to unmount it because of the way dd works: it doesn't copy files, but just moves data from one place to another without bothering about the nature of the target. If you do that to a mounted device, the system probably couldn't work out what had happened when it tries to unmount it.

Last edited by DavidMcCann; 05-11-2021 at 11:51 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ctrl key and Alt key are acting as Shift key rotopercutor Linux - Newbie 10 12-19-2019 11:22 AM
SSH skips public key authentication for a key, but works with another key simopal6 Linux - General 1 07-06-2011 08:33 AM
Bootable USB key messed up permissions on key.. VipX1 Linux - Newbie 4 09-21-2009 03:26 AM
Install grub on a USB hard disk (not disk on key) zvivered Linux - Embedded & Single-board computer 4 07-22-2009 10:30 PM
"Enter Key" not working, how to map "Enter Key" functionality to "F9" Key srinihi Linux - Newbie 1 04-03-2009 02:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration