Linux - NewbieThis 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.
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.
I have looked at grub.cfg and the UUID matches with the OS.
I did a search on the error message ubuntuforums.org and came across this: 'One is error in partition table which causes grub to fail on search to find correct partition to boot from and very large / (root) partition'.
The usb has only one partition which is /root. And it's 16gb in size.
Maybe I should have the root partition smaller or maybe a separate boot partition?
naaaa I donno, a REG install of Linux with split / and /home I have my root partition set to way bigger then 16GB. but, if I can install a full linux on a 32GB USB stick all using / then you can too.
what Linux are you actually using?
try it with VOID Linux (if you want to) one of your choice by the same steps, if you have time, just to see if that distro will work, because I tired it with Debian myself after I did VOID .. Debian gave me crap, so I just pitched that idea into the void of space.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by BW-userx
did you give him your USB Stick os too?
Yes, the usb stick info is sdf1.
The OS is debian jessie and the kernel is Linux 3.16.0-4-amd64.
I'm wondering if I should have a seperate boot partition. The boot partition will never change so it doesn't matter if I assign a small space on the usb for it.
I don't get it. If someone is installing debian to an external SSD hard drive with usb cable - then surely they'll face the same problem?
Last edited by Higgsboson; 11-12-2016 at 03:59 PM.
Your bootinfoscript output shows Grub code in the MBR of sda (1TB drive) and nothing in the MBR of sdf, your 16GB drive. If you tried installing Grub to the MBR of sdf, it obviously didn't work unless you have run it after the bootinfoscript?? In that situation, the only way you could boot the system on the flash drive is to put a menuentry in the grub.cfg file on the 1TB drive with Debian or install Grub to the MBR of sdf with a proper entry. Your bootinfoscript does not show a grub.cfg file for either system so we are left guess.
A separate boot partition is not going to resolve your problem. You might try downloading and running boot repair from the site below and burning it to a CD and booting. Select the option to Create BootInfo Summary and post a link here. It will show a lot more info which should help.
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by yancek
Your bootinfoscript output shows Grub code in the MBR of sda (1TB drive) and nothing in the MBR of sdf, your 16GB drive. If you tried installing Grub to the MBR of sdf, it obviously didn't work unless you have run it after the bootinfoscript??
I see. So grub has not installed to the mbr of sdf?
That's unusual because I'm pretty certain I chose to install grub to sdf.
Is there a way of installing grub to the mbr of sdf after installation?
Can I use the chmod option to add grub to the mbr of sdf?
Why the hell has grub not installed to the mbr of sdf?
Quote:
In that situation, the only way you could boot the system on the flash drive is to put a menuentry in the grub.cfg file on the 1TB drive with Debian or install Grub to the MBR of sdf with a proper entry.
I prefer the latter option.
The whole point of linux-on-flash-drive is you can open the OS on other computers.
Please can you say how I can add Grub to the MBR of sdf?
Quote:
Your bootinfoscript does not show a grub.cfg file for either system so we are left guess.
The bootinfoscript is too big for a single post. I can submit the bit you refer to - I just don't know where it is.
Quote:
A separate boot partition is not going to resolve your problem. You might try downloading and running boot repair from the site below and burning it to a CD and booting. Select the option to Create BootInfo Summary and post a link here. It will show a lot more info which should help.
Well clearly this means we are unclear what the problem is.
I am installing full debian jessie (not live) onto flash drive (which presumably is the same as an external SSD with usb cable) - and it's not happening.
Where are all the people who have installed debian onto an SSD via a usb port?
Or is this purely a flash drive issue?
Is there a way of installing grub to the mbr of sdf after installation?
Can I use the chmod option to add grub to the mbr of sdf?
Why the hell has grub not installed to the mbr of sdf?
...snip...
Where are all the people who have installed debian onto an SSD via a usb port?
Or is this purely a flash drive issue?
I gave you instructions for installing grub yourself to your flash drive, should you choose to follow them.
Apparently you did not install grub to the flash drive properly during installation, as it is not there according to the boot info output you gave us. In your first post, you mentioned sda.
Edit:
Forgive me as it's been a while, but I just remembered that the Debian team has taken care of the chroot step for you. Boot your Debian installer CD/flash drive and select Rescue mode from the menu. It will then allow you to choose a device as the root device. Do so, and it will drop you into a chrooted environment. Make note of the device name, in case it has changed. Now, you just have to:
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508
Original Poster
Rep:
Quote:
Originally Posted by goumba
Boot your regular Linux installation as it seems you have one.
Mount the USB drive to the location of choice, I'm going to go with your /dev/sdf from before but it is your responsibility to check it.
Yes, but i386 sounds like 32-bit and I have a 64-bit processor.
Is there an issue with my processor? I can get a new one.
No, it has to do with BIOS rather than EFI, as far as I can tell.
Quote:
Ok, so what is going on here?
Apparently I edited my post as you replied, see my post again. As it is similar, I'll explain. chroot is allowing you basically to enter that installation without having booted into it, to do some limited tasks. As I stated above, the Debian team has taken care of this part for you.
grub-install installs the necessary support files for grub to work. grub-mkconfig rebuilds the configuration file, and places it in /boot where grub can find it.
1. you're changing root to your USB mounted in /mnt/usb directroy
2. that second line is commands to have grub make a config file to your usb stick and create it in the /boot/grub directory on your USB Stick due to chroot /mnt/usb
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.