LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-26-2007, 03:02 PM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
Changing the partition Debian thinks its on.


I have Debian installed on a External HD and I want to take it to another computer. When I hook it up and boot into it, it says that sdb1 cannot be found or something. can I change the partition it thinks it on so I can boot into it on another computer?
 
Old 06-26-2007, 03:11 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by gamewolf
I have Debian installed on a External HD and I want to take it to another computer. When I hook it up and boot into it, it says that sdb1 cannot be found or something. can I change the partition it thinks it on so I can boot into it on another computer?
Where is the bootloader installed? (I infer that it is in the MBR of the external, and that you have set the BIOS to boot the external drive)
The bootloader gets setup to look for its config file in a certain place--are you getting past the point of seeing a bootloader menu?

Also, when it goes looking for sdb1, there may be no such thing on that computer---it depends on what else is installed.

Sooo...tell us what the configuration is and exactly where in the boot process it is getting stuck.

The link below will lead to an article on booting which might be helpful.
 
Old 06-26-2007, 03:16 PM   #3
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by gamewolf
I have Debian installed on a External HD and I want to take it to another computer. When I hook it up and boot into it, it says that sdb1 cannot be found or something. can I change the partition it thinks it on so I can boot into it on another computer?
You would need to modify the /boot/grub/menu.lst and /etc/fstab files to reflect the new drive location as seen by the computer you are on using something like a Knoppix disk to boot with first to see how the drive is seen then mounting it and editing the files so do it.
 
Old 06-26-2007, 03:19 PM   #4
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok, well, I get into GRUB (which is on the external) just fine. It starts to load and I wait a couple of minutes, then it gives me a error saying it couldn't fine that partition. Debian also thinks that Both my CD Drives are hda and hdb, then it thinks my main hd is sda then my external which is sdb. So I don't know if that has anything to do with it or not.
 
Old 06-26-2007, 03:41 PM   #5
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Make sure that you do not have any other device installed to external USB ports.

Edit /boot/grub/device.map as follows:

(hd0) /dev/sda

Boot with the external USB hard disk again.
 
Old 06-26-2007, 04:13 PM   #6
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
In addition to editing /boot/grub/menu.lst and /etc/fstab, you may also need to rebuild the initrd ramdisk image to remove (or change) the RESUME swap partition. If you don't know what "resume from swap" is, then you don't need it and you won't miss it.
 
  


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
changing partition gamor Linux - Newbie 1 08-06-2005 05:37 PM
The Debian install thinks my 60 gig drive is a 33 gig drive! Nebetsu Debian 13 06-04-2005 12:41 AM
Debian thinks my webcam is a soundcard doctorwebbox Linux - Hardware 1 12-08-2004 07:59 PM
Changing from 2 partition to 3 partition system scuzzman Linux - Newbie 4 08-12-2004 01:18 PM
changing a partition eddcrossman Linux - Newbie 17 02-16-2003 12:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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