Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
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
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
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 03:01 PM.
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.)
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
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...
Last edited by ButterflyMelissa; 11-15-2011 at 10:50 PM.