LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-26-2017, 05:21 AM   #31
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389

Quote:
But with this one I even went into the Bios and made sure it was sent to legacy and I installed kubuntu, installed grub but I couldn't boot into it
Quote:
I get the options to boot from the drive or use windows bootloader
The two quotes above give me the impression installation is in legacy mode but trying to boot in UEFI mode.
Because the option to boot Windows is still there after supposedly wiping it off suggests there is a protected MBR on this GPT embedded multimedia card and the EFI partition still exists with the Windows .efi file.

I recently tried to fix a Windows 8 tablet with a Hynix 32GB eMMC, from a live Windows I could not do anything to the partition structure with diskpart. From Ubuntu live I wiped it with dd urandom, dd exited successfully, booted Windows live and nothing changed. I eventually did a diskpart clean all (similar to dd zero fill) and the drive was empty, but could not initialize it, thus could not partition it with any of the supper fantastic partitioning applications available in any platform including diskpart.

It's an Acer Switch 10, and the "locked drive" thing has happened to many that owned this thing, the only ones whom got around it were the ones who broke down and gave Acer extra cash for a recovery disk that fixed it. It is a firmware feature as far as I'm concerned designed to get extra money from something that didn't bring in much money from the original sale.
 
Old 04-26-2017, 05:31 AM   #32
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
You may be able to use WinToUSB to put Windows 10 (download ISO from Microsoft) on a pendrive or clumsy external USB drive, extract the product key which is in the UEFI firmware with Rw-Portable from a Windows PE live session to activate it if the owner would prefer Windows 10 over Linux.

Last edited by Brains; 04-26-2017 at 05:34 AM.
 
Old 04-26-2017, 06:13 AM   #33
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
I don't have windows installed which is why it's so frustrating.
 
Old 04-26-2017, 08:29 AM   #34
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by bsth123 View Post
Can someone explain that in english? remember I'm still pretty new to this. I thought about buying a cheap external hd but I didn't know if that would work. And yes mine is soldered in.
A usb storage device is bootable on linux since 2006-ish. So as long as your hardware is NOT > a decade old, you can boot from USB. There are some card readers that require drivers to work, that can't boot, otherwise most storage things usb can be used to run a distro off of. Some usb sticks are horribly slow so you wouldn't want to run a distro off of them. But a lot of recent things are more than good enough.

In short hard drives galore, install and boot from any of them. You don't even need to wipe the drive that came with the system. You can spam a key at boot and select your boot drive. ESCape on my hp stream 11, F12 on my gateway desktop, and other options depending on your hardware. Since USB drives can be removed and moved so easily, you can literally do your install on a different machine. And then use that drive to boot linux on other hardware. As long as the CPU types match.
 
Old 04-26-2017, 09:17 AM   #35
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Shadow_7 View Post
A usb storage device is bootable on linux since 2006-ish. So as long as your hardware is NOT > a decade old, you can boot from USB. There are some card readers that require drivers to work, that can't boot, otherwise most storage things usb can be used to run a distro off of. Some usb sticks are horribly slow so you wouldn't want to run a distro off of them. But a lot of recent things are more than good enough.

In short hard drives galore, install and boot from any of them. You don't even need to wipe the drive that came with the system. You can spam a key at boot and select your boot drive. ESCape on my hp stream 11, F12 on my gateway desktop, and other options depending on your hardware. Since USB drives can be removed and moved so easily, you can literally do your install on a different machine. And then use that drive to boot linux on other hardware. As long as the CPU types match.
Yes but how do I do this on a usb stick? This notebook is new. I know how to put a distro n a usb stick and boot from it. I guess if worse comes to worse I can use it as a live distro and use it for surfing, etc. Is there an emoticon for pulling your hair out?
 
Old 04-26-2017, 12:23 PM   #36
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bsth123 View Post
Can someone explain that in english? remember I'm still pretty new to this. I thought about buying a cheap external hd but I didn't know if that would work. And yes mine is soldered in.
them @
ok get into your BIOS first and look in the menu going through them all until you find boot order or boot selection or anything to do with boot 'ing
look to see what options it is giving to to select the order to look in for a boot drive.

if you see an option USB hdd or something with USB ... in it. then 99.9 percent you're going to be able to boot off a hdd hooked up to your USB Port.

Most external hdds that come in a case. well it is a 50/50 it will work.
an internal hdd 2.5" laptop is best because a USB port has a better chance of supplying it power without an extra cable. As a 3.5" desktop hdd you will have to supply a power source to it.

don't forget the cable to hook the hdd up to your laptop.
"usb 3.0 to 2.5" sata iii hard drive adapter cable"

nevertheless, if you got a means to use your laptop 2 USB ports.

1.plug in the Linux OS to boot it (install OS off it USB Linux)
2. turn it on
3. when it is booting up off that USB then plug in your other external hdd you are going to install Linux on. So Linux can see it as it is booting, so it will be there when you get into Linux.
4. when you log into that USB Linux OS then open up a terminal
5. sudo lsblk = /dev/sdx and hdd size to help determine which is the one you want to use to install on. VERY IMPORTANT
6. install it onto the external hdd, install grub onto the external hdd remember your dir /dev/sdx so you will NOT install grub on the wrong drive. VERY IMPORTANT
7. (scratching head)
8. when all is done- reboot-
9. how ever your laptop allows you to select that new install in one of your USB ports. select it at the optimum moment to boot into it.
10. enjoy
11. post back - cuz I know you're going to want to.

as far as the hdd to install on being recognized by Linux USB boot live. The, I am going to use this one to install Linux onto somewhere else Linux.

When to actually plug it in(the hdd to be installed upon)?

That can be a hit and miss . their are only so many options try them all if needed until a success is achieved.

if you have any trouble with the steps post back. it has been awhile sense I've done this. so I may have missed something.

Basically you are just using your CPU and its ports in that Laptop as a means to transfer data from one device to another device without touching that Laptops hdd. Therefore, you want to ensure that you do not. lsblk

piece of cake.

Last edited by BW-userx; 04-26-2017 at 12:40 PM.
 
Old 04-26-2017, 01:21 PM   #37
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
Thanks for the great info. I've already got it set to boot from usb because I've installed kubuntu on a usb drive. I actually understood all of that. The only thing I'm torn about is that I installed the previous version of Kubuntu (the latest won't work) and I'm booted in it now. Is there any reason I can't use the usb thumb drive instead of an external hd? That way there'd be no expense and it would be more convenient. And shouldn't I be able to write to it and install software? I ask because I tried to install chromium and it didn't work so that's a deal breaker for me. I'm willing to go the hd route if this doesn't work. Besides I'd actually be able to use it which I wouldn't be able to do if I ran over it! Thanks again!
 
Old 04-26-2017, 04:37 PM   #38
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bsth123 View Post
Thanks for the great info. I've already got it set to boot from usb because I've installed kubuntu on a usb drive. I actually understood all of that. The only thing I'm torn about is that I installed the previous version of Kubuntu (the latest won't work) and I'm booted in it now. Is there any reason I can't use the usb thumb drive instead of an external hd?
well it just so happens I've done that too.
That can be a little more tricky but I did get one distro to install, not that I tried everyone out there.

here is one I develop the method on how to. And I used Slackware and Voids xbps toolset to do it. But you need a POSIX system to get it to work.
https://wiki.voidlinux.eu/User:Userx
Quote:
That way there'd be no expense and it would be more convenient. And shouldn't I be able to write to it and install software? I ask because I tried to install chromium and it didn't work so that's a deal breaker for me. I'm willing to go the hd route if this doesn't work. Besides I'd actually be able to use it which I wouldn't be able to do if I ran over it! Thanks again!

you can read that one post and try this too. gives you options, insight. and knowledge?

Just like the hdd install. Apply the same method the USB Stick. If your BIOS can differentiate between the two USB Sticks being plugged in at the same time, then that is a plus.

the only thing that needs to be made sure of --
fstab
Code:
/dev/sdd1 / ext4 defaults,nodiratime,noatime 0 1
atime and nodiratime to cut back on read and writes to the USB Stick so it does not get wore down as fast.

You can play with UUIDs too in your fstab if you are going to be using it other then that one laptop. due to whichever mounts / spins up first gets first "drive-letter"

so /dev/sdd1 does and maybe can be /dev/sdc1 /dev/sde1 if booting with other things pluged in or more then one internal hdd connected and mounting in Linux. then your fstab will not match and you will not be able to boot it.

and if it does not take you try clearing the USB Stick using dd as root of course. rule of thumb if it does not work not using su or sudo then try su or sudo then decided if something might not be right.

Code:
 dd if=/dev/zero of=/dev/hdx bs=512 count=1
you got a 50/50 on whatever Distro you are trying to get to install on a USB Stick as a full blown Linux OS.

so be prepared to change distros if you really want to do it that way.

Last edited by BW-userx; 04-26-2017 at 04:48 PM.
 
Old 04-26-2017, 06:11 PM   #39
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
The bootable USB stick is just like a harddrive. As far as the technicals of creating a bootable linux. Grub might be slightly harder to install on them, but it can be installed on them. Otherwise it's functionally the same as far as any linux installation goes.

I tend to do debootstrap installations from an existing debian based linux. You can also use this route to install flavors of ubuntu.

Code:
# clean and prep a storage device
dcfldd if=/dev/zero of=/dev/sdz bs=2M
cfdisk /dev/sdz
mkfs.ext4 -L deb64bit -U 20170426-1700-1111-1111-1111-111111111111 /dev/sdz1
mkdir /mnt/p1
mount /dev/sdz1 /mnt/p1
cd /mnt/p1

# setup and do a debootstrap installation
apt-get install --reinstall debootstrap
mkdir zzz_TEMP
cd zzz_TEMP
ar -x /var/cache/apt/archives/debootstrap_1.0.67_all.deb
cd ../
tar -xzvpf ./zzz_TEMP/data.tar.gz
debootstrap --arch=amd64 jessie /mnt/p1 http://httpredir.debian.org/debian

# post installation steps before booting
nano ./etc/fstab
cp /etc/resolv.conf ./etc/resolv.conf
mount -t proc none /mnt/p1/proc
mount -o bind /dev /mnt/p1/dev
chroot /mnt/p1 /bin/bash
(chroot)# passwd
(chroot)# apt-get update
(chroot)# apt-get install linux-image-amd64
(chroot)# exit
update-grub
shutdown -r now
While in the chroot you might want to install networking tools and drivers / firmware. It's a very minimal installation going the debootstrap route. But you should still have the host linux to chroot again if things need more things. With post boot installation steps like install a bootloader, creating users, installing X and environments (tasksel if you're lazy). But the basic steps I do when installing with debootstrap to a USB (or any) storage device. Once the install and bootloader is on the "stick", shutdown that computer, stick it in the other computer and boot from USB.

There are simpler options. Which tend to require a storage device to boot and a second device to install to.

http://cdimage.debian.org
https://www.debian.org/CD/
 
Old 04-26-2017, 07:17 PM   #40
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
Wow! I hate to admit it but this may be over my head. But I'll definitely try to figure something out using your instructions. The thing is I don't need this notebook. I have more computers than I need. But I'm too damn stubborn to quit! And I don't think I'm the only one!

Offtopic: I tried to install slack on my new laptop today and I quit after the third try. I kept having fatal package installation, Suggestions?
 
Old 04-26-2017, 07:36 PM   #41
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bsth123 View Post
Wow! I hate to admit it but this may be over my head. But I'll definitely try to figure something out using your instructions. The thing is I don't need this notebook. I have more computers than I need. But I'm too damn stubborn to quit! And I don't think I'm the only one!

Offtopic: I tried to install slack on my new laptop today and I quit after the third try. I kept having fatal package installation, Suggestions?
that would be a different post in the Slackware area.
 
Old 04-27-2017, 08:43 AM   #42
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
Quote:
Originally Posted by bsth123 View Post
Offtopic: I tried to install slack on my new laptop today and I quit after the third try. I kept having fatal package installation, Suggestions?
I installed slackware once. I had to slap the debian kernel onto it to get it to boot.
 
Old 04-27-2017, 11:54 AM   #43
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
Ok, before I go any further I think I ruined my debian partitions. I installed gparted because I've never been good at cli partitioning. It wouldn't run so I booted gparted live. I had /dev/sda for debian so I used /dev/sdb in the drop down menu and did my partitioning. It booted with no problems. But when I ran blkid I got weird output so I checked /etc/fstab and it shows debian as /dev/sdb and my thumb drive as /dev/sda but it says that debian was originally installed on /dev/sda etc. I have no idea what to do.

Edit: nm, I had forgotten to remove the device before I booted. :stupid:

Last edited by bsth123; 04-27-2017 at 12:16 PM.
 
Old 04-27-2017, 01:07 PM   #44
bsth123
Member
 
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195

Original Poster
Rep: Reputation: Disabled
Ok I'm still lost. I used BW-Userx's instructions because I understood them better but it's for another distro and I don't know where to use Kubuntu instead.I know you've gone out of your way to help me but I need a little more guidance. Plus at one point you say you use a script but you don't say what it is. I
 
Old 04-27-2017, 01:19 PM   #45
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by bsth123 View Post
Ok I'm still lost. I used BW-Userx's instructions because I understood them better but it's for another distro and I don't know where to use Kubuntu instead.I know you've gone out of your way to help me but I need a little more guidance. Plus at one point you say you use a script but you don't say what it is. I
which instructions are you using the Void Linux on the wiki? that is only for Void Linux

refresh my memory in what exactly you are doing and with what distro and what instructions of mine.
 
  


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
Kubuntu Won't Boot on USB Hard Drive Tyro65 Linux - Newbie 3 05-15-2011 08:31 AM
Kubuntu 10.10 Dual Boot W/ Win 7 Pro: No Option To Boot Kubuntu FrostBot Ubuntu 2 01-26-2011 08:17 PM
Dual Boot drive share with kubuntu/win2000 nardz Linux - Newbie 10 02-27-2007 08:18 PM
Drive Sharing on a dual boot (kubuntu/win2000) nardz Ubuntu 2 02-27-2007 09:50 AM
when fedora machine is connected to the internet via network windiws machines cannot purbeck Linux - Networking 1 01-24-2004 07:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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