LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 06-04-2013, 01:20 PM   #1
smells_of_elderberries
LQ Newbie
 
Registered: Dec 2006
Posts: 25

Rep: Reputation: 0
/boot is on the wrong drive after re-installing Debian Wheezy.


Hi,

I was using my laptop to run Debian Wheezy as a server from the built-in HDD. It would never let the HDD spin down, though, so I decided to try booting from a USB flash drive. I left the original install on the HDD alone, just in case I screwed up.

I managed to install Debian Wheezy to a 4GB USB flash from the Netinstall ISO, but I must have messed up somewhere because, to boot the Flash drive, I have to choose the HDD from the boot menu. If I choose the USB drive, it just does nothing. My machine is capable of USB booting (I've done it before), I've just screwed up somehow.

I guess what's happened is that I mucked up the GRUB bit of the install, so it changed the /boot partition (the original HDD install uses separate /boot and / partitions) of the HDD to point to the Flash drive.

Once the machine is booted to the USB flash drive everything works fine: I can spin down the HDD immediately after boot and it never wakes up. But now I'd like to use the HDD to store data, but first I'm going to have to fix this /boot mistake.

I do have a /boot directory at the root of my USB flash install, and it appears to contain the correct files:
Code:
config-3.2.0-4-amd64  initrd.img-3.2.0-4-amd64	System.map-3.2.0-4-amd64
grub		      lost+found		vmlinuz-3.2.0-4-amd64
I checked in cfdisk, and there doesn't appear to be a partition flagged for "BOOT" on the USB flash drive, as there is on the HDD, though there is a partition with all the same characteristics as the /boot partition on the HDD:
Code:
HDD:  sda1        Boot        Primary   ext2                               254.81*
Flash:sdc1                    Primary   ext2                               254.81*
I'm thinking that fixing this might be as simple as flagging the sdc1 partition for BOOT, but I'd hate to make a further mistake that screws up both my working installs.

Can someone advise?
 
Old 06-04-2013, 01:27 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
grub-install /dev/sdc
 
1 members found this post helpful.
Old 06-04-2013, 03:59 PM   #3
smells_of_elderberries
LQ Newbie
 
Registered: Dec 2006
Posts: 25

Original Poster
Rep: Reputation: 0
That fixed it. Thank you!
 
Old 06-04-2013, 04:12 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
You're welcome.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Wheezy - no usable screen after installing RootMason Debian 6 05-23-2013 05:52 PM
[SOLVED] Can't boot kernel Debian wheezy 3.2.0-4 krchat Linux - Newbie 2 01-09-2013 02:45 AM
Perl: CPAN modules under Debian (Wheezy) not installing properly. systemlordanubis Programming 1 09-23-2012 07:41 PM
Debian Wheezy fails to boot into GUI after POST sj061 Debian 16 05-31-2011 08:45 PM
Installing Debian on a multi-boot drive jhsu Debian 1 08-29-2009 02:37 AM


All times are GMT -5. The time now is 11: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration