<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: change mounted points in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692611#M21005</link>
    <description>Where do you have the problem? What is the error when you reboot?&lt;BR /&gt;&lt;BR /&gt;Ensure that no extra characters, space, returns are in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;Do don't have to modify any other file.&lt;BR /&gt;&lt;BR /&gt;Ensure that the new mount point exists.&lt;BR /&gt;&lt;BR /&gt;Can you post your fstab configuration?</description>
    <pubDate>Fri, 16 Dec 2005 06:37:25 GMT</pubDate>
    <dc:creator>Ivan Ferreira</dc:creator>
    <dc:date>2005-12-16T06:37:25Z</dc:date>
    <item>
      <title>change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692609#M21003</link>
      <description>Hi&lt;BR /&gt;after changed mounted point&lt;BR /&gt;I cannot reboot the system&lt;BR /&gt;I have mounted points like this.&lt;BR /&gt;Filesystem           1K-blocks      Used Available Use% Mounted on&lt;BR /&gt;/dev/ida/c0d0p6        2064160    123576   1835732   7% /&lt;BR /&gt;/dev/ida/c0d0p1          98747     14918     78730  16% /boot&lt;BR /&gt;/dev/ida/c0d0p8       22730156     32888  21542632   1% /data&lt;BR /&gt;/dev/ida/c0d0p7         991864     16636    924844   2% /home&lt;BR /&gt;none                   1950968         0   1950968   0% /dev/shm&lt;BR /&gt;/dev/ida/c0d0p3        2923548   1407244   1367792  51% /usr&lt;BR /&gt;/dev/ida/c0d0p5        2064160     68624   1890684   4% /var&lt;BR /&gt;&lt;BR /&gt;I want to change mount point /data to /data5.&lt;BR /&gt;after modifying /etc/fstab, /data to /data5&lt;BR /&gt;&lt;BR /&gt;it can not reboot.&lt;BR /&gt;help&lt;BR /&gt;what should I modify other files?</description>
      <pubDate>Fri, 16 Dec 2005 00:02:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692609#M21003</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2005-12-16T00:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692610#M21004</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;No other files need to modified for changing mount point.&lt;BR /&gt;&lt;BR /&gt;Make sure the /data5 directory exists ( the ne mount point)&lt;BR /&gt;&lt;BR /&gt;reboot the server using &lt;BR /&gt;#shutdown -y 0&lt;BR /&gt;#reboot&lt;BR /&gt;&lt;BR /&gt;It should work.&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.</description>
      <pubDate>Fri, 16 Dec 2005 00:56:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692610#M21004</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2005-12-16T00:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692611#M21005</link>
      <description>Where do you have the problem? What is the error when you reboot?&lt;BR /&gt;&lt;BR /&gt;Ensure that no extra characters, space, returns are in the /etc/fstab file.&lt;BR /&gt;&lt;BR /&gt;Do don't have to modify any other file.&lt;BR /&gt;&lt;BR /&gt;Ensure that the new mount point exists.&lt;BR /&gt;&lt;BR /&gt;Can you post your fstab configuration?</description>
      <pubDate>Fri, 16 Dec 2005 06:37:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692611#M21005</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-12-16T06:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692612#M21006</link>
      <description>You forgot to creat /data5 directory.&lt;BR /&gt;fstab can mount a device in an exsited directory. It cannot create /data5. you have to create it with "mkdir /data5" and after that you can mount a device in it.Now if you reboot your server (after creating directory by yourself), you will not get any error.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Alireza</description>
      <pubDate>Sat, 17 Dec 2005 02:55:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692612#M21006</guid>
      <dc:creator>Delrish</dc:creator>
      <dc:date>2005-12-17T02:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692613#M21007</link>
      <description>I did as you notice me that do not edit any other files except /etc/fstab&lt;BR /&gt;so. I did but Some error loged like this when it boots.&lt;BR /&gt;&lt;BR /&gt;'Could not find matching file system :LABEL=/data5'&lt;BR /&gt;&lt;BR /&gt;what is it? what other problem?&lt;BR /&gt;&lt;BR /&gt;I post fstab file first before changing mount point&lt;BR /&gt;&lt;BR /&gt;Before&lt;BR /&gt;[root@ecfarm2 root]# cat /etc/fstab&lt;BR /&gt;LABEL=/                 /                       ext3    defaults        1 1&lt;BR /&gt;LABEL=/boot             /boot                   ext3    defaults        1 2&lt;BR /&gt;LABEL=/data             /data                   ext3    defaults        1 2&lt;BR /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;BR /&gt;LABEL=/home             /home                   ext3    defaults        1 2&lt;BR /&gt;none                    /proc                   proc    defaults        0 0&lt;BR /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;BR /&gt;LABEL=/usr              /usr                    ext3    defaults        1 2&lt;BR /&gt;LABEL=/var              /var                    ext3    defaults        1 2&lt;BR /&gt;/dev/ida/c0d0p2         swap                    swap    defaults        0 0&lt;BR /&gt;/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0&lt;BR /&gt;/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0&lt;BR /&gt;&lt;BR /&gt;=================&lt;BR /&gt;After changed mounted point /data to /data5.&lt;BR /&gt;[root@ecfarm2 root]# cat /etc/fstab&lt;BR /&gt;LABEL=/                 /                       ext3    defaults        1 1&lt;BR /&gt;LABEL=/boot             /boot                   ext3    defaults        1 2&lt;BR /&gt;LABEL=/data5             /data5                   ext3    defaults        1 2&lt;BR /&gt;none                    /dev/pts                devpts  gid=5,mode=620  0 0&lt;BR /&gt;LABEL=/home             /home                   ext3    defaults        1 2&lt;BR /&gt;none                    /proc                   proc    defaults        0 0&lt;BR /&gt;none                    /dev/shm                tmpfs   defaults        0 0&lt;BR /&gt;LABEL=/usr              /usr                    ext3    defaults        1 2&lt;BR /&gt;LABEL=/var              /var                    ext3    defaults        1 2&lt;BR /&gt;/dev/ida/c0d0p2         swap                    swap    defaults        0 0&lt;BR /&gt;/dev/cdrom              /mnt/cdrom              udf,iso9660 noauto,owner,kudzu,ro 0 0&lt;BR /&gt;/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0&lt;BR /&gt;&lt;BR /&gt;I only edit line LABEL=/data             /data                   ext3    defaults        1 2&lt;BR /&gt;to&lt;BR /&gt;LABEL=/data5            /data5                   ext3    defaults        1 2&lt;BR /&gt;&lt;BR /&gt;what's the problem&lt;BR /&gt;</description>
      <pubDate>Sun, 18 Dec 2005 20:40:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692613#M21007</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2005-12-18T20:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692614#M21008</link>
      <description>and I made /data5 dir.&lt;BR /&gt;&lt;BR /&gt;please.</description>
      <pubDate>Sun, 18 Dec 2005 20:42:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692614#M21008</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2005-12-18T20:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692615#M21009</link>
      <description>restart the nfs service...&lt;BR /&gt;you can do this by using the following command&lt;BR /&gt;&lt;BR /&gt;Service nfs restart&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;enable this service in the setup and then restart the computer.</description>
      <pubDate>Mon, 19 Dec 2005 04:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692615#M21009</guid>
      <dc:creator>Pradeep Prabhakaran</dc:creator>
      <dc:date>2005-12-19T04:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692616#M21010</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You have made a simple mistake (I did it once in another life!).&lt;BR /&gt;&lt;BR /&gt;There are a couple of ways of refering to a disk partition in fstab.&lt;BR /&gt;&lt;BR /&gt;One way is to use the partition label, the other way is to use the partition device file.&lt;BR /&gt;&lt;BR /&gt;The label is a property of the partition on the disk, and, unless you relabel the partition, it will never change.&lt;BR /&gt;&lt;BR /&gt;On the other hand, the partition device file will always be the device file unless you reparition the disk (e.g. /dev/ida/c0d0p8).&lt;BR /&gt;&lt;BR /&gt;In your case, your disk is mounted using labels (you can do either if you have labels defined), and your /data partition has the *label* 'data'.&lt;BR /&gt;&lt;BR /&gt;In your fstab, you originally had:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;LABEL=/data /data ext3 defaults 1 2&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;The change you made was:&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;LABEL=/data5 /data5 ext3 defaults 1 2&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;The problem is, the label (i.e. the name of the partition you are talking about) has not changed, so if you try to refer to a partition labeled 'data5' the system doesn't know what you are talking about!&lt;BR /&gt;&lt;BR /&gt;You can do one of several things to fix the problem...&lt;BR /&gt;&lt;BR /&gt;Change the line to read:&lt;BR /&gt;&lt;BR /&gt;LABEL=/data /data5 ext3 defaults 1 2&lt;BR /&gt;&lt;BR /&gt;This tells the system to mount the partition labelled as 'data' into the mount point '/data5'&lt;BR /&gt;&lt;BR /&gt;This will work.&lt;BR /&gt;&lt;BR /&gt;Alternatively, keep the changes you made, and relabel the partition to 'data5' instead.&lt;BR /&gt;&lt;BR /&gt;What filesystem are you running?&lt;BR /&gt;&lt;BR /&gt;For example, if you're running an ext2 or ext3 filesystem, you can relabel the partition with the command:&lt;BR /&gt;&lt;BR /&gt;# e2label device [ new-label ]&lt;BR /&gt;&lt;BR /&gt;So in your case:&lt;BR /&gt;&lt;BR /&gt;# e2label /dev/ida/c0d0p8 data5&lt;BR /&gt;&lt;BR /&gt;Will change the partition label to match what you have in your fstab.&lt;BR /&gt;&lt;BR /&gt;The third way of fixing it (it's a bit like perl - more than one way to do it!), is to avoid using the label altogether, and to use the partitions device file - edit the fstab to read:&lt;BR /&gt;&lt;BR /&gt;/dev/ida/c0d0p8 /data5 ext3 defaults 1 2&lt;BR /&gt;&lt;BR /&gt;this will work too!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Andy Bruce&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2005 05:53:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692616#M21010</guid>
      <dc:creator>Andrew Bruce</dc:creator>
      <dc:date>2005-12-19T05:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692617#M21011</link>
      <description>You should change the line as the below. One of your disks labled with â  dataâ   you cannot change the label to â  data5â   manualy. You can just change the mount point. If you want to change diskâ  s label you have to use e2lable command. However, if you change your fstab as below, your problem will be solved.&lt;BR /&gt;&lt;BR /&gt;LABEL=/data   /data5   ext3  defaults   1  2&lt;BR /&gt;&lt;BR /&gt;Also you can use the disk's direct address in fstab instead of using label.&lt;BR /&gt;&lt;BR /&gt;/dev/ida/c0d0p8 /data5 ext3  defaults   1  2&lt;BR /&gt;&lt;BR /&gt;Alireza</description>
      <pubDate>Mon, 19 Dec 2005 06:04:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692617#M21011</guid>
      <dc:creator>Delrish</dc:creator>
      <dc:date>2005-12-19T06:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: change mounted points</title>
      <link>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692618#M21012</link>
      <description>thank you Andy Bruce and Alireza !&lt;BR /&gt;&lt;BR /&gt;I did what you tell me what i've done wrong.&lt;BR /&gt;So I did altertives what you gave solution.&lt;BR /&gt;&lt;BR /&gt;first I edit line LABEL=/data             /data5                  ext3    defaults        1 2&lt;BR /&gt;that's my mistake I edit wrong LABEL=/data5.&lt;BR /&gt;thank you for your help.&lt;BR /&gt;&lt;BR /&gt;second I did new label using e2label.&lt;BR /&gt;e2label device [ new-label ] &lt;BR /&gt;&lt;BR /&gt;I did sencond solution.&lt;BR /&gt;I examined each of alternatives. thanks &lt;BR /&gt;have a nice day.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and I give you poins to Bruce 10, 8 Alireza.&lt;BR /&gt;&lt;BR /&gt;Because Bruce gave me the solution faster than Alireza.&lt;BR /&gt;I'm sorry Alireza. Good luck&lt;BR /&gt;Anyway, Thank you all &lt;BR /&gt;</description>
      <pubDate>Mon, 19 Dec 2005 23:30:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/change-mounted-points/m-p/3692618#M21012</guid>
      <dc:creator>file system</dc:creator>
      <dc:date>2005-12-19T23:30:52Z</dc:date>
    </item>
  </channel>
</rss>

