LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 08-05-2018, 01:35 AM   #16
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled

Quick update: I've tried using GRUB, and hit another snag. When I try to boot from the disk, it says something about the "ntfscomp" module not being loaded. After reading some man pages, I've tried re-installing GRUB with the "--modules=ntfs --modules=ntfscomp" arguments. (IDK if the former argument was really necessary, but I figured it couldn't hurt). Now, I have a proper boot menu, and am waiting to see if the drive finally boots. Oh, boy!
 
Old 08-05-2018, 01:38 AM   #17
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
Darn it! I've tried booting into the flash drive twice, and both times gave me a kernel panic!

The only message currently on the screen that seems even remotely helpful is:
"Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)". Perhaps there's some parameter that GRUB needs to pass to the kernel to tell it to expect something other than FAT32?

Last edited by NachoLord; 08-05-2018 at 01:42 AM.
 
Old 08-05-2018, 07:15 AM   #18
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
I just noticed I neglected to post the link I referred to my earlier post so here it is.

https://help.ubuntu.com/community/Grub2/Installing

I'm not sure what you mean by 'tried using Grub'. What exactly did you do? The link below explains using Grub2 to directly boot a Linux iso file Grub by simply copying the iso file to a partition on your drive (hard drive, flash drive doesn't matter). Using this method, it doesn't matter if the iso is on a partition with a Linux filesystem, vfat, ntfs, etc.

https://help.ubuntu.com/community/Grub2/ISOBoot

The link below shows some example menuentries for Grub2.

https://help.ubuntu.com/community/Grub2/CustomMenus

I'm not really clear what you are trying to do and what you have available to use. If you want a persistent Ubuntu on a flash drive, unetbootin has always worked for me although I haven't tried it on 18.04. Do you have a Linux system available to use to create this? If you have an Ubuntu or derivative, other software that works well is mkusb which should be in the Ubuntu repositories. You can use dd to write the iso to a flash drive. There will be no persistence but that can be created from another Linux system. The only problem with this method is that you will need to add the word persistent to the linux line in grub.cfg on boot as well as manually mount the persistent casper-rw partition.

Do you have the iso on an ntfs partition? If so, you might want to add insmod ntfs to the menuentry. Do you have the iso on the partition or the extracted iso copied to it? Post your menuentry.tc
 
Old 08-05-2018, 08:28 AM   #19
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
try passing the kernel parameter
Code:
rootdelay=10
 
Old 08-07-2018, 11:38 PM   #20
NachoLord
Member
 
Registered: Jul 2018
Location: Somewhere between here and there.
Distribution: Ubuntu, Debian, Arch
Posts: 47

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
I just noticed I neglected to post the link I referred to my earlier post so here it is.

https://help.ubuntu.com/community/Grub2/Installing

I'm not sure what you mean by 'tried using Grub'. What exactly did you do? The link below explains using Grub2 to directly boot a Linux iso file Grub by simply copying the iso file to a partition on your drive (hard drive, flash drive doesn't matter). Using this method, it doesn't matter if the iso is on a partition with a Linux filesystem, vfat, ntfs, etc.

https://help.ubuntu.com/community/Grub2/ISOBoot

The link below shows some example menuentries for Grub2.

https://help.ubuntu.com/community/Grub2/CustomMenus

I'm not really clear what you are trying to do and what you have available to use. If you want a persistent Ubuntu on a flash drive, unetbootin has always worked for me although I haven't tried it on 18.04. Do you have a Linux system available to use to create this? If you have an Ubuntu or derivative, other software that works well is mkusb which should be in the Ubuntu repositories. You can use dd to write the iso to a flash drive. There will be no persistence but that can be created from another Linux system. The only problem with this method is that you will need to add the word persistent to the linux line in grub.cfg on boot as well as manually mount the persistent casper-rw partition.

Do you have the iso on an ntfs partition? If so, you might want to add insmod ntfs to the menuentry. Do you have the iso on the partition or the extracted iso copied to it? Post your menuentry.tc
When I said "tried using Grub", what I meant was I installed grub like so: sudo grub-install --boot-directory=/mnt/boot /dev/sdb --modules=ntfs --modules=ntfscomp. Since those modules are pre-loaded, there shouldn't be any real need to add them to the configuration file. PS: as it turns out, there's already a grub.cfg file, which is pre-configured already. So, I guess I don't need to set up a menu manually after all.

As for your suggestion of copying the ISO, I'll look into that.

As for unetbootin, that basically extracts the ISO to a FAT32 drive. That's pretty similar to what I'm trying to do, except for the FAT32 part. IDK about mkusb, as I've never heard of it. I guess I'll be looking into that, as well.

Also, I don't seem to have a menuedit.tc file. Is that used by legacy GRUB? I'm using GRUB2, so: guess I'll post my grub.cfg file, instead. See my attachment. On that note, I had to change the extension to .txt to upload it. The original name was (of course) grub.cfg.

Quote:
Originally Posted by colorpurple21859 View Post
try passing the kernel parameter
Code:
rootdelay=10
I'm afraid that didn't have any effectat all.
Attached Files
File Type: txt grub.cfg.txt (953 Bytes, 10 views)
 
Old 08-08-2018, 05:15 AM   #21
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,350

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(1,0)"
either ntfs driver isn't built into the kernel or initrd.img, or the root=ramfs parameter needs to be set in grub. Maybe boot the iso directly off the ntfs using grub. https://www.howtogeek.com/196933/how...ur-hard-drive/
https://www.linuxjournal.com/content/grub-boot-iso

Last edited by colorpurple21859; 08-08-2018 at 05:32 AM.
 
Old 08-08-2018, 06:39 AM   #22
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
Also, I don't seem to have a menuedit.tc file. I
Sorry about that, typo on my part. I meant the menuentries from grub.cfg which you have posted. The grub.cfg file you posted is the standard file with the entries one would expect to see on an Ubuntu "Live" CD/DVD or flash drive.

Quote:
sudo grub-install --boot-directory=/mnt/boot /dev/sdb
The command above should work IF you have an boot directory at /mnt/boot, IF it is writable which it would not be if you used pendrivelinux to create the bootable usb and if you mounted the partition on sdb(?) prior to running the command.

My experience with booting an iso file directly or extracted is that it makes no difference what the filesystem on the partition is as iso9660 will be used. I've booted an iso file directly from vfat and ntfs partitions without problems.

Might be simpler to start over and manually create a small partition with a Linux filesystem for a boot partition (1-200MB) then create another partition on which you can copy your iso file(s), install Grub2 and create your own grub.cfg file using the template you have posted and the examples for directly booting an iso at the link I posted earlier. Also, you should be able to boot the extracted iso if your bootloader is properly installed. You can do that from either Grub2 or Grub Legacy.

Last edited by yancek; 08-08-2018 at 06:57 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
Make live usb stick with dd fails ario Fedora - Installation 2 06-05-2016 02:35 PM
Make a live usb anutherguy Linux - Software 12 06-14-2011 12:20 PM
Fedora 14 Live USB, can not make persistent changes Poser Fedora 8 03-02-2011 11:13 AM
[SOLVED] How to make boot USB with 2 or more live cds? pedrodh Linux - Software 2 07-09-2010 11:25 PM
writing premissions on USB ntfs HD achived, how to make it last? greg.drezner Linux - Newbie 4 07-29-2007 10:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

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