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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
04-22-2017, 12:33 PM
|
#16
|
Member
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195
Original Poster
Rep:
|
Lenovo N22 8056
|
|
|
04-22-2017, 02:45 PM
|
#18
|
Member
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195
Original Poster
Rep:
|
I'm going to check it out. Thanks so much! I didn't read it all yet cause I've been very busy today. But I'll check it out and give it a go. You definitely went above and beyond on this one.
|
|
|
04-22-2017, 02:58 PM
|
#19
|
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
|
Quote:
Originally Posted by bsth123
I'm going to check it out. Thanks so much! I didn't read it all yet cause I've been very busy today. But I'll check it out and give it a go. You definitely went above and beyond on this one.
|
thanks - hope you get it to work
|
|
|
04-22-2017, 03:45 PM
|
#20
|
Senior Member
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791
|
I've got an HP Stream 11 that has Windows on the internal "HDD" (a 32GB eMMC). After having turned off secure boot, I've come up with two ways to dual-boot Linux on it.
#1. Installed Ubuntu on a micro-USB flash drive that I keep attached to the Stream. Requires hitting F9 to change the boot order each time I boot, but works well and is very straight-forward. Requires no messing around with the contents of the eMMC.
#2 Shrank the Windows partition on the eMMC by 2GB. Installed Ubuntu with / on the SD card (the mmcblk device) and /boot on the eMMC. This works, but is slower, possibly because I'm not using a fast SD card.
|
|
|
04-24-2017, 03:47 PM
|
#21
|
Member
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195
Original Poster
Rep:
|
Since I received such great help I thought I'd give an update. I tried everything. I have an identical notebook with the same mmc and installed kubuntu on it with no prob. I never even booted into windows. The notebook with the problems was used by my daughter and she never used any antivirus software. The computer quit working completely. I decided the best way to solve it was to install kubuntu. You know what happened then. After I tried everything else I installed kubuntu on a usb flash drive. All I got were error messages and I've done this before. After I got past the error messages it tried to boot kubuntu but failed. I want to put it in the street and run over it with my car!
|
|
|
04-24-2017, 04:33 PM
|
#22
|
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
|
Quote:
Originally Posted by bsth123
Since I received such great help I thought I'd give an update. I tried everything. I have an identical notebook with the same mmc and installed kubuntu on it with no prob. I never even booted into windows. The notebook with the problems was used by my daughter and she never used any antivirus software. The computer quit working completely. I decided the best way to solve it was to install kubuntu. You know what happened then. After I tried everything else I installed kubuntu on a usb flash drive. All I got were error messages and I've done this before. After I got past the error messages it tried to boot kubuntu but failed. I want to put it in the street and run over it with my car!
|
So you did wiped windows on it? I do wonder if you can delete that partition on it then reestablish it. that should get rid of anything on it.
Me I might try pulling my card out and putting it into that other one and see if it will boot it. that's would eliminate hardware other than the mmc card. if it boots. but I do not know if they've developed a means to corrupt BIOS via virus from Windows infection.
I do not think so. if not then that would ( me doing this) I do not know about anyone else. it is not my stuff. but I'd pull mine that works and put it into that other one and see if it boots. if yes. then take a closer look at that mmc hdd if you can still call it an hdd.
that being an option just to see if it is the mmc card or Hardware.
or just try creating a usb stick OS with dd on it then dd the main mmc card to clear everything on it. write zeros to it. then try installing again. After you set up the partition.
not much to lose I do suppose as it is not even being able to be used other then for something to run over.
mmc card should not be that different then an sdd hdd or reg hdd as far as removing partitions and writing zero's and ones and a random character and verify the write to it, three passes just to be sure then reestablishing a partition and what not that is needed to make it usable again.
AS far as putting Windows back on it. if it still has that sticker on it with them numbers that just got a get that Install windows with a USB Stick off windows sight and follow the instructions.
do the research first on that in what versions if other than 10 and how to's
Last edited by BW-userx; 04-24-2017 at 04:48 PM.
|
|
|
04-25-2017, 11:15 AM
|
#23
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
The eMMC on my hp stream 11 shows up as /dev/mmcblk0. Why exactly are you looking for sda? Because the grub.cfg points at that? You should use the UUID of the partition which you want to boot. It's more portable.
$ sudo blkid
One of the menu items from my /boot/grub/grub.cfg
Code:
menuentry 'Debian GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-20170118-1000-1111-1111-111111111111' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 20170118-1000-1111-1111-111111111111
else
search --no-floppy --fs-uuid --set=root 20170118-1000-1111-1111-111111111111
fi
echo 'Loading Linux 3.16.0-4-amd64 ...'
linux /boot/vmlinuz-3.16.0-4-amd64 root=UUID=20170118-1000-1111-1111-111111111111 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.16.0-4-amd64
}
And the corresponding /etc/fstab
Code:
UUID=20170118-1000-1111-1111-111111111111 / ext4 defaults,noatime 0 1
For custom entries (in debian) you can put the menu entry into /etc/grub.d/40_custom which will get it included when update-grub runs (every kernel update).
I tend to make custom UUIDs when I make a new partition. With the YYYYMMDD-HH00- as the first part and the rest is basically the number of the partition. It's easier to type when I fiddle in grub.cfg land.
|
|
|
04-25-2017, 12:00 PM
|
#24
|
Member
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195
Original Poster
Rep:
|
Well I wiped it entirely. Installed only this time I let kubuntu do it's own partitioning and all went well until I went to reboot. I get the options to boot from the drive or use windows bootloader. Neither one works. I'm not comfortable removing any hardware and switching it. Thanks for the suggestions.
|
|
|
04-25-2017, 12:18 PM
|
#25
|
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
|
Quote:
Originally Posted by bsth123
Well I wiped it entirely. Installed only this time I let kubuntu do it's own partitioning and all went well until I went to reboot. I get the options to boot from the drive or use windows bootloader. Neither one works. I'm not comfortable removing any hardware and switching it. Thanks for the suggestions.
|
switching things out can be scary.
Windows boot loader? what the is that still doing there?
I clam a conspiracy between the laptop manufacturer and Windows. Because you stated you wiped it's hard drive (mmc card). the boot options. BIOS
or somewhere else I have no idea where.
Like @Shadow_7 suggested, matching UUID in fstab file and grub file. boot a USB Linux mount and investigate.
as root user
Code:
blkid # to get drive device to mount.
or using a file manager or sudo geany then navigate to where the file is. check it for UUIDs being that the editor was opened using root it can then be used to save any changes made. if needed. using the file manager to complete the auto mount of that drive on the laptop. just click into it, maybe even use it to navigate to the file needed, or you can use a manual mount to your /tmp on the USB Linux.
Code:
mount source destination
Still the blkid will give you the proper UUID needed to check and change to. Most distros already use UUID in the grub and fstab, but checking it is not a bad idea.
that windows boot loader has me befiddled. if your laptop and that laptop is not completely identical which can be because they can and I have seen it. I had a netbook that the make was the same the model was not even though it still looked like that other one. it wasn't minor changes were made to it.
Anyways, without looking at it myself and no other information on that 'windows boot loader' I have no idea about that one. Other then looking into what that BIOS has in it.
Last edited by BW-userx; 04-25-2017 at 12:21 PM.
|
|
|
04-25-2017, 01:13 PM
|
#26
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
It would be a little hard to remove the /dev/mmcblk0 eMMC device as it's likely soldered to the motherboard of my cheap laptop. I normally use a bootable USB distro and update-grub on IT and reboot, which lets me select the new install via it's menu after update-grub. Otherwise you can use "e" to edit a menu item before booting it. Or "c" to enter most of the lines of a menu item manually to boot an installation. As long as the /etc/fstab is golden, and the kernel is bootable, good to go. I'm often booted into a new install before I install the boot loader with methods like these. It simplifies the process greatly. Or at least makes the grub menu shorter by only having entries of the install, not the installer, and any other connected devices.
|
|
|
04-25-2017, 02:16 PM
|
#27
|
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
|
Quote:
Originally Posted by Shadow_7
It would be a little hard to remove the /dev/mmcblk0 eMMC device as it's likely soldered to the motherboard of my cheap laptop. I normally use a bootable USB distro and update-grub on IT and reboot, which lets me select the new install via it's menu after update-grub. Otherwise you can use "e" to edit a menu item before booting it. Or "c" to enter most of the lines of a menu item manually to boot an installation. As long as the /etc/fstab is golden, and the kernel is bootable, good to go. I'm often booted into a new install before I install the boot loader with methods like these. It simplifies the process greatly. Or at least makes the grub menu shorter by only having entries of the install, not the installer, and any other connected devices.
|
so you slap that sd card into that sd card slot reader, and lucky for you it actually boots off of it?
because I had one laptop that said in BIOS boot order SD CARD as an option, but never got that to work.
That here though I think would be the best solution to this. If it can boot the sd card. Get the fastest one he can then install it on that.
if it takes as a hdd.
Install grub to it
in BIOS if he got a hit {a key} to select boot order or boot from then all one has to do is select that to boot it. done.
it is a theory
|
|
|
04-25-2017, 05:02 PM
|
#28
|
Senior Member
Registered: Feb 2003
Distribution: debian
Posts: 4,137
|
The onboard SD card reader is NOT bootable, but I have several SDHC readers that ARE bootable. And other bootable from USB options. I could probably chainload the onboard card reader, but a little pointless since you'd be using another bootable source to do so.
|
|
|
04-25-2017, 05:10 PM
|
#29
|
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
|
Quote:
Originally Posted by Shadow_7
The onboard SD card reader is NOT bootable, but I have several SDHC readers that ARE bootable. And other bootable from USB options. I could probably chainload the onboard card reader, but a little pointless since you'd be using another bootable source to do so.
|
OIC
therefore one could even use a internal laptop hdd with a cord to connect it to the usb bootable port if it has such a thing as mine does. and I have done so. same set up just bigger more space setup
Last edited by BW-userx; 04-25-2017 at 05:12 PM.
|
|
|
04-26-2017, 05:44 AM
|
#30
|
Member
Registered: Feb 2017
Distribution: Kubuntu, Debian, FreeBSD
Posts: 195
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:17 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|