[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Replacing an HDD: will it be labeled as before?



On Sun, 15 Aug 2010 10:55:22 +0200, Merciadri Luca wrote:

> I would like to replace one of my HDDs by another one (a bigger one).
> Say that this is /dev/sdc. Then, its structure is defined like this:
> 
> /dev/sdc1 (extended)
>     /dev/sdc5 (ext3)
> 
> where
> 
> /dev/sdc5 is mounted as my home in /etc/fstab:
> 
> ==
> # cat /etc/fstab | grep merciadriluca /dev/sdc5      
> /home/merciadriluca ext3 errors=remount-ro 0 1 ==
> 
> Say now that I manage to copy my home to the new HDD (in ext3) which
> will replace the old one. If I physically put a new HDD at the place of
> the old one, will I encounter issues? 

Most probably, yes. There is a high chance the system detects the new 
device as "/dev/sdd". Reusing existing device names is not what I would 
expect as it could overlap the current setup :-/

> Everything is done according to
> /dev/, so, no UUIDs, and there should be no problem. But will it be set
> as /dev/sdc5 automatically? (Sorry for my noobness.)

Should you face problems, just edit the "/etc/fstab" accordingly and 
you're done. For static mount points, I would go for "/dev/disk/by-id" or 
"/dev/disk/by-uuid", though.

Greetings,

-- 
Camaleón


Reply to: