Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-04-2007, 01:25 PM   #1
Registered: Jun 2007
Posts: 96

Rep: Reputation: 16
/dev/sdx question

Hi there,
I'm using Debian here.

A few days ago I added my external hard disk to /etc/fstab so it would autommaticly mount when it was connected. By that time, it was /dev/sda1

However, now I have a small problem. Everytime I connect my USB PenDisk and I have the external hard disk disconnected, the USB PenDisk gets the address /dev/sda1, which is in /etc/fstab to autommaticly mount under my external hard disk directory.

So evertytime I connect my pen drive, it just mounts it on my external HD directory.

I just wanted to know if there is anyway to reserve /dev/sda1 to my external disk, so I could connect my pendrive and Linux detect that /dev/sda1 will always be to my external disk, so give another address to my pen drive (sdb, or sdc, etc...)

Because now, if I want to connect my pendisk, I have to:
a) connect my external hard disk so it gets the address /dev/sda1
b) connect my pen to acquire address /dev/sdb1.

As you can see, it is really annoying. I want /dev/sda1 reserved to my external disk, even if it is not connected!

Thanks in advance for your replies.
Old 10-04-2007, 05:06 PM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 78
This sounds like a job for udev.
Old 10-04-2007, 05:18 PM   #3
LQ Guru
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
In addition to osor's post here are some other options here.
Good luck. ;-)
Old 10-05-2007, 06:31 AM   #4
Registered: Jun 2007
Posts: 96

Original Poster
Rep: Reputation: 16
thanks, I'm going to explore it! see ya


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
How do I change the /dev/sdx number of a drive ? Christof999 Linux - Hardware 1 06-08-2007 03:29 PM
change order sdx DLGandalf Linux - Newbie 13 05-17-2007 06:22 PM
USB Drive - Static /dev/sdx Nodes in 2.4.x? Ruler2112 Linux - Hardware 1 01-26-2007 10:20 AM
Lock different external drives to a set device name ? (/dev/sdX) Dark Carnival Linux - Hardware 5 10-20-2006 10:42 PM
Clone with dd if=/dev/hda of=/dev/hdb question wrc1944 Linux - Hardware 2 11-28-2004 09:10 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:08 AM.

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