LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   partition name changing after each reboot/restart (https://www.linuxquestions.org/questions/linux-newbie-8/partition-name-changing-after-each-reboot-restart-691005/)

toledano 12-16-2008 12:51 PM

partition name changing after each reboot/restart
 
hi,

I have 2 hd, and 4 partitions.

now. let say for the example that the 30gb is at /media/disk and the 20 gb is at /media/disk-2/.

sometimes (sometimes it doenst) when i reboot, the partition location is changing.
meaning, the 20 gb is at /media/disk/ and 30gb /media/disk-2/

now, normally I wouldnt care, but I use a program that is configured with a specific location I got a problem.
(like ktorrent and the download dir..)


hope you understand the problem.

got a solution?

thanks.

farslayer 12-16-2008 01:39 PM

mount the drives with their UUID's rather than the drive names..

Code:


mhepler@it-etch:~$ ls -l /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 2008-11-24 04:02 24b1bd67-0de9-4782-9644-a088a434c562 -> ../../sda6
lrwxrwxrwx 1 root root 10 2008-12-14 23:47 55D123D9E79ABF54 -> ../../sdb1
lrwxrwxrwx 1 root root 10 2008-11-24 04:02 70165487-7f4f-4a6c-9332-07d907b63976 -> ../../sda1


old /etc/fstab (backup this file before making changes)
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
/dev/sda1      /              ext3    defaults,errors=remount-ro 0      1
/dev/sda6      /home          ext3    defaults        0      2
/dev/sda5      none            swap    sw              0      0
/dev/hda        /media/cdrom0  udf,iso9660 user,noauto    0      0
/dev/sdb1        /media/usbdisk        auto        user,noauto        0        0

would become


new /etc/fstab file using uuid's for consistent drive mapping
Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
uuid=70165487-7f4f-4a6c-9332-07d907b63976      /              ext3    defaults,errors=remount-ro 0      1
uuid=24b1bd67-0de9-4782-9644-a088a434c562      /home          ext3    defaults        0      2
/dev/sda5      none            swap    sw              0      0
/dev/hda        /media/cdrom0  udf,iso9660 user,noauto    0      0
uuid=55D123D9E79ABF54        /media/usbdisk        auto        user,noauto        0        0

http://linux.byexamples.com/archives...tab-with-uuid/

toledano 12-20-2008 02:28 PM

sorry for the late response..

thanks for your help :)


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