LinuxQuestions.org
Review your favorite Linux distribution.
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 11-15-2011, 01:09 PM   #1
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Rep: Reputation: 0
Grub Error 22 when New HD is added


I have an ubuntu box with a sata drive (OS) and an IDE drive for my media (pictures, documents etc)
I would like to add a new bigger sata drive to the box to replace the IDE drive. I need to format the drive still and then move the contents from the IDE drive to the SATA drive.
However when I add the sata drive to the box, boot the system it returns the Error 22 on boot.
I remove the new sata drive and the computer boots fine.
I checked with Gparted and my primary Sata is /dev/sda the ide drive is /dev/sdb so I guess the new drive is either trying to be /dev/sda or /dev/sdb.

Am I correct? and if so how do I correct this so I can format and transfer the data from the older IDE to the new sata drive?
 
Old 11-15-2011, 01:37 PM   #2
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Okay, my guess is that Linux tries to mount the new drive, but ... there's nothing to mount as yet.

My feeling is that you may need to prep it first. What I'd do (but, that's just me) is disconnect the "good drives" just to keep 'em safe, connect the new one and boot with a Live CD, fire up GParted and prep/partition the drive. Then, reassemble the box and boot up.

By the way, MacPup/Puppy is light w8 enuff to do the job, and they have GParted...just a hint.

Good luck

Thor
 
Old 11-15-2011, 01:37 PM   #3
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Original Poster
Rep: Reputation: 0
I thought this might be a problem with my mounting the IDE drive (sdb) in fstab with /dev/sdb1 instead of using the UUID of the device (I'm been doing some reading)
I made the changes in fstab, rebooted and made sure everything was working properly, then shutdown and rebooted with the new Sata drive attached.
I'm still getting the Error 22 message.
Sda's are being mounted with UUIDs
 
Old 11-15-2011, 01:57 PM   #4
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Thor_2.0: I'll grab Puppy and try getting the drive formatted that way.
Thanks for the tip, hope it works
 
Old 11-15-2011, 01:57 PM   #5
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
I'd not mess too much with stuff like fstab - unless you made either notes on what you did (so you can roll back) or have a set of backups ready for emergencies...

But...on a brighter note...if I can tempt you to wheel it my way. Trust me, it's safer for the existing data

Quote:
hope it works
It will, that's the way I rescue all my stuff...there's also TTYlinux or Finnix, but that's really for rescue missions...it's text-only...
Fedora's Live CD are great as well, though I never used GParted with those...

Last edited by ButterflyMelissa; 11-15-2011 at 02:01 PM.
 
Old 11-15-2011, 02:02 PM   #6
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Thor_2.0 View Post
I'd not mess too much with stuff like fstab - unless you made either notes on what you did (so you can roll back) or have a set of backups ready for emergencies...

But...on a brighter note...if I can tempt you to wheel it my way. Trust me, it's safer for the existing data
Well I commented out the original entry just in case.

I've always been the one to shoot first then ask questions, I've gotten into some pretty sticky situations at times, but I've always ended up learning a lot and quickly.
 
Old 11-15-2011, 02:03 PM   #7
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
Take a look in the bios and see if it's trying to boot from one of the other drives. If that doesn't help then you might want to try using a live cd to fix your boot loader configuration. (Which I haven't done myself so I'm of little use.)
 
Old 11-15-2011, 02:35 PM   #8
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, puppy, ubuntu
Posts: 2,015

Rep: Reputation: 283Reputation: 283Reputation: 283
try swapping drive cables around, if grub is working without the new drive installed, then the new drive installed is changing the order of which drive is first second and third
 
Old 11-15-2011, 03:15 PM   #9
havock
LQ Newbie
 
Registered: May 2011
Posts: 10

Original Poster
Rep: Reputation: 0
Well it would seem that by adding the second sata drive I promoted the IDE to be the primary boot drive in BIOS. Made the change in BIOS and all is well.

Thanks for all the help, Puppy is a great live CD to have around just in case
 
Old 11-15-2011, 09:49 PM   #10
ButterflyMelissa
Senior Member
 
Registered: Nov 2007
Location: Somewhere on my hard drive...
Distribution: Manjaro
Posts: 2,699
Blog Entries: 23

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
I've always been the one to shoot first then ask questions, I've gotten into some pretty sticky situations at times, but I've always ended up learning a lot and quickly.
That is by far the best way to learn anything fast...if you're not on a critical system. But, that is the main resaon I've got eleven PC's around...so I can learn without messing up the critical stuff...

Puppy is a great tool to have around indeed. Put it where you can find it quickly

Quote:
Well it would seem that by adding the second sata drive I promoted the IDE to be the primary boot drive in BIOS. Made the change in BIOS and all is well.
Hmmm, dunnow it that could help: leave all as is and set the boot sequence in the BIOS...but, it's 4:46 AM here, so I cannot garantee full clarity of thought yet...

(yawn)

Last edited by ButterflyMelissa; 11-15-2011 at 09:50 PM.
 
  


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
GRUB--sata drive added to existing IDE setup? zkdabek Linux - Hardware 1 10-08-2009 11:31 AM
Added my own grub splash screen checkmate3001 LinuxQuestions.org Member Success Stories 1 09-30-2007 09:08 PM
Will 3rd distro be added to grub? wargod2293 Linux - Newbie 2 09-25-2005 09:38 PM
How to add an existing linux on a newly added disk to grub ? glenn69 Linux - Newbie 1 10-07-2004 09:16 PM
New drive added, help with GRUB crimsontide Linux - Newbie 2 03-23-2004 06:09 PM


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