Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-20-2010, 07:15 PM   #1
LQ Newbie
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
/dev/disk/by-id 'error'

I have cloned my linux OS onto a new hdd. Now even tho the system will boot, it directs me to the login screen and asks me to fix the location of the root dir because it is looking for /dev/disk/by-id with a very long serial #. I presume this is the old hdd serial #. How can I determine the serial # of the new hdd and change it in fstab? Is this the correct idea? Is it /dev/disk/by-id???
Old 01-20-2010, 07:29 PM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
Look at "ls -l /dev/disk/by-id/". They are symbolic links to device nodes like /dev/sda1, /dev/sda2, etc.

Follow the links and use the new by-id names in /etc/fstab and /boot/grub/menu.lst.
The ID names are created by the kernel and contain the drive serial number, which changed. You may be able to globally replace the old drive serial number with the new one (e.g. in vim) leaving the rest of the id # entries the same (since you cloned the drive).
Old 01-24-2010, 10:31 PM   #3
LQ Newbie
Registered: Jan 2010
Posts: 5

Original Poster
Rep: Reputation: 0
Fixed prob

Well, I didn't know that about the kernel. What I did was just delete all references to /dev/disk/by-id and replaced it in fstab with the actual location:

/dev/hda1 /dev/hda2 etc.

Then everything worked fine. Can you explain the advantage of leaving all the serial ## gobbledegook in fstab. It seems cleaner to me to just put the location. Maybe I can get a better result if I use the /dev/disk/by-id???


Last edited by palmweaver; 01-24-2010 at 10:34 PM.


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
clone hard disk with: cat /dev/sda >/media/disk/backup deathalele Linux - Security 3 04-17-2009 01:29 AM
how to remove disk space in /dev/sda8 to increase the /dev/sda7 centguy Linux - Software 16 11-27-2008 07:05 PM
/dev/disk/by-uuid on install disk? randomsel Slackware 6 06-29-2008 09:54 AM
Move /dev/hda2 to end of disk and grow /dev/hda1 bcg121 Linux - Software 4 11-09-2007 10:51 PM
[SOLVED] system disk moves from /dev/sda to /dev/sdm gdevaucorbeil Linux - Hardware 4 03-10-2007 10:30 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration