LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 07-24-2014, 12:36 PM   #1
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
grub-install /dev/sdX on a Virtualbox Appliance


I'm at 8.4. Using GRUB to Set Up the Boot Process and I have to ask for guidance.

The appliance is slackware 14 on 32 bit architecture.
sda is slackware
sdb is lfs (dev)

My goal is to remove the slackware.vdi from the appliance.

I think I should use
Code:
grub-install /dev/sdb
inside my lfs environment since sda1 would be removed soon'ish?

But what about /etc/fstab?
It too would need modification from
Code:
/dev/sdb1      /            ext4     defaults            1     1
/dev/sdb2      swap         swap     pri=1               0     0
to
Code:
/dev/sda1      /            ext4     defaults            1     1
/dev/sda2      swap         swap     pri=1               0     0
and my grub.cfg should then be:
Code:
set root=(hd1,2)
> 
> menuentry "GNU/Linux, Linux 3.15.6-lfs-SVN-20140723" {
>         linux   /boot/vmlinuz-3.15.6-lfs-SVN-20140723 root=/dev/sdb1 ro
> }
> EOF
This isn't really a Question question, just me sounding it out.

Tips, ridicule, encouragement, beer gladly welcomed.

Last edited by Habitual; 07-24-2014 at 01:12 PM.
 
Old 07-24-2014, 02:13 PM   #2
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374

Original Poster
Blog Entries: 37

Rep: Reputation: Disabled
Seems to have worked!
Code:
/etc/fstab:/dev/sda1      /            ext4     defaults            1     1
/etc/fstab:/dev/sda2      swap         swap     pri=1               0     0
/boot/grub/grub.cfg:set root=(hd0,msdos1)
/boot/grub/grub.cfg:        linux   /boot/vmlinuz-3.15.6-lfs-SVN-20140723 root=/dev/sda1 ro
My first lfs system and it only took a week!
 
  


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
udev rule to rename /dev/sdx as /dev/sdr does not work :-( on OS 11.2 tkmbe SUSE / openSUSE 2 05-10-2012 01:53 AM
Associating /dev/sdX with a drive. stympman Linux - Hardware 6 12-18-2011 01:18 AM
Force /dev/sdX? to remain? tbeehler Linux - Software 2 05-08-2008 04:29 PM
IDE drives detected as /dev/sdX - Grub Fails Fedora 8 kushalkoolwal Fedora 3 04-08-2008 06:36 PM
/dev/sdx question Fill Linux - Newbie 3 10-05-2007 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

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