Results 1 to 3 of 3
Hi Friends,
I have query, pls help
1. I have 3 harddisks on my rhel5.3 box
/dev/sda scsi 0:0
/dev/sdb scsi 0:1
/dev/sdc scsi 0:2
2. I want to remove ...
- 09-03-2009 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 7
harddisk device name automatic change
Hi Friends,
I have query, pls help
1. I have 3 harddisks on my rhel5.3 box
/dev/sda scsi 0:0
/dev/sdb scsi 0:1
/dev/sdc scsi 0:2
2. I want to remove /dev/sdb from the box.
3. I want the third harddisk name (/dev/sdc) will remain as same after removing the second harddisk (/dev/sdb). By default it will automatically change as /dev/sdb.
How i can do this, Please help me.
Regrds
aravind
- 09-03-2009 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 8,974
I'm not sure you can, but you can label the partitions and specify them by label in /etc/fstab so if you add/remove drives they are still properly recognized and mounted correctly.
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!
- 09-18-2009 #3Just Joined!
- Join Date
- Aug 2009
- Posts
- 7
Hi Friends,
I got the answer.
configure udev to create multiple device names for a single device.
I created one udev rule to do this.
1. create a file named "10-local.rules" on "/etc/udev/rules.d/" folder
2. edit the file and add the rule like this
KERNEL="sdb1" NAME="sdc1"
This rule will create the device name /dev/sdc1 corresponding to /dev/sdb1.
So that we can able to mount the /dev/sdb1 device in the name of /dev/sdc1 also
3. execute "udevstart" command
4. Mount the sdb1 and sdc1 on different mount points and check the contents. You can see the data in both the mount points are same.
Regards,
Aravind


Reply With Quote