LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   How to change the label of a disk (https://www.linuxquestions.org/questions/red-hat-31/how-to-change-the-label-of-a-disk-218712/)

dtournas 08-17-2004 08:02 AM

How to change the label of a disk
 
Hi.

I want to replace a disk in a Red Hat 9 server I use as Samba Domain Server. I have 2 SCSI disks and 2 IDE. During the initial setup I have made the following partitions:

IDE Device A:
Partition #1 > /boot
Partition #2 > /
Partition #3 > swap

IDE Device B:
Partition #1 > /public

SCSI Device A:
Partition #1 > /setup

IDE Device A:
Partition #1 > /ntprofiles

Now, I want to replace the IDE Device B: with a new SCSI disk. I can transfer all the data of the existing disk somewhere else. So I need a way to un-install the IDE disk (probably from fstab), then install the SCSI disk and name it (or better mount it) as /public.

My current fstab config is:
Code:

LABEL=/                /                      ext3    defaults        1 1
LABEL=/boot            /boot                  ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
LABEL=/ntprofiles      /ntprofiles            ext3    defaults        1 2
none                    /proc                  proc    defaults        0 0
none                    /dev/shm                tmpfs  defaults        0 0
LABEL=/public          /public                ext3    defaults        1 2
LABEL=/setup            /setup                  ext3    defaults        1 2
/dev/hda3              swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0

The new SCSI disk is exctacly the same as the SCSI Device A. Any hints? Thank you!


All times are GMT -5. The time now is 04:00 AM.