LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-19-2013, 04:41 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,746

Rep: Reputation: 256Reputation: 256Reputation: 256
installing grub2 on pendrive /dev/sdb1?


Hi,

I have fat16 /dev/sdb1 and I would like to install grub2, using debian.

Would you know how to do so?

thank you
kind regards
 
Old 09-19-2013, 10:05 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,406

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
From your installed Linux system with the flash drive attached as root user:

Quote:
mkdir /mnt/sdb1
mount -t ext4 /dev/sdb1 /mnt/sdb1
grub-install --root-directory=/mnt/sdb1 /dev/sdb1
If that doesn't do it try this:

Quote:
mkdir /mnt/sdb1
mount -t ext4 -o rw /dev/sdb1 /mnt/sdb1
mount -t proc none /mnt/sdb1/proc
mount -o bind /dev /mnt/sdb1/dev
mount -o bind /sys /mnt/sdb1/sys
mount -t devpts devpts /mnt/sdb1/dev/pts
chroot /mnt/sdb1
grub-install --force --root-directory=/mnt/sdb1 /dev/sdb1
update-grub
Then in order to boot from your installed system, you would need to put an entry in the grub.cfg file for it as it can't boot from the flash if just installed to a partition.
 
Old 09-20-2013, 12:24 AM   #3
eklavya
Member
 
Registered: Mar 2013
Posts: 650

Rep: Reputation: 145Reputation: 145
Here is the process but they have taken the ubuntu Live CD but there is not much difference, you can see the process.
http://www.pendrivelinux.com/install...-ubuntu-linux/
 
Old 09-20-2013, 02:47 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,690

Rep: Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658Reputation: 2658
fat16 for a boot partition ?

i have had no problems using ext3 on usb thumb drives
fedora 19
CentOS 6.4
kali
BT5
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My pendrive suddenly changed from /dev/sda1 to /dev/sdb1! stf92 Slackware 10 08-08-2012 05:02 PM
mdadm --manage /dev/md0 --add /dev/sdb1 returns device busy JeepingAZ Linux - Desktop 2 02-17-2011 12:18 PM
I think I corrupted MBR by copying to /dev/sdb1 locksoflove Linux - Newbie 2 05-15-2010 08:14 AM
USB Detection; when /dev/sda1 or /dev/sdb1 ravime Linux - Hardware 6 09-12-2007 06:15 AM
why I can't find /dev/sdb1 in fdisk -l breeze027 Linux - Server 1 08-02-2007 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:52 AM.

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