LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-16-2008, 01:51 PM   #1
toledano
LQ Newbie
 
Registered: Dec 2008
Posts: 24

Rep: Reputation: 15
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.
 
Old 12-16-2008, 02:39 PM   #2
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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/

Last edited by farslayer; 12-16-2008 at 02:41 PM.
 
Old 12-20-2008, 03:28 PM   #3
toledano
LQ Newbie
 
Registered: Dec 2008
Posts: 24

Original Poster
Rep: Reputation: 15
sorry for the late response..

thanks for your help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot restart, reboot, or shutdown slimfadey Linux - Newbie 3 04-28-2005 08:07 PM
reboot and restart problem Fedora Dannydy Linux - Hardware 3 10-13-2004 08:14 PM
Always have to reboot to restart dsl sh1ft Slackware 8 04-21-2004 10:49 PM
SuSE7.2 Firewall, how do I restart it, without a reboot Led*Zep Linux - Security 1 03-19-2003 10:59 AM
Named cache kept through restart or reboot Supp0rtLinux Linux - Networking 2 01-21-2002 06:11 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration