Primm wrote:
On Sunday 24 December 2006 14:15, Patrick Shanahan wrote:
* jdd <[EMAIL PROTECTED]> [12-24-06 07:31]:
the better way is to name the partition (label), so that
it's mounted in /media/<name>

however, I don't remember exactly how to name it :-(
The YasT Partition Editor can do it.

As it stands, /media/disk doesn't exist until I plug in the external disk. That is what yast chose as a mount point when I formatted it (it had ntfs to begin with). Is what you are saying to create a permanent directory called <name> under the /media directory? Confused.

My main concern is that the mount point will always be the same every time I plug it in. In my case /media/disk Or will it change depending upon what else is plugged in? I need to write a script to rsync to it and so need to have a fixed mount point.

I have a setup which is along the lines that you are trying to create - except that I do not have a permanent mount point allocated to the external HD (but I do use it for backup purposes - it's a 200GB/16MB Maxtor).

When you plugin and switch on the HD an entry is made in /etc/mtab file. Here for your info. is a copy of my mtab when I switched on my external which I have partitioned into 150GB ntfs and 50GB reiserfs and these show up at the bottom as sdb5 and sdb6:-

dev/hda9 / ext3 rw,acl,user_xattr 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
debugfs /sys/kernel/debug debugfs rw 0 0
udev /dev tmpfs rw 0 0
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0
/dev/hdc11 /data ext3 rw,acl,user_xattr 0 0
/dev/hda1 /windows/C ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hda5 /windows/D ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hda6 /windows/E ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hda7 /windows/F ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hda8 /windows/G ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hdc5 /windows/I ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hdc6 /windows/J ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hdc7 /windows/K ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0 /dev/hdc8 /windows/L vfat rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true 0 0 /dev/hdc9 /windows/M vfat rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true 0 0 /dev/hdc10 /windows/N vfat rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true 0 0
securityfs /sys/kernel/security securityfs rw 0 0
/dev/sdb5 /media/disk ntfs rw,nosuid,nodev,noatime,uid=1000 0 0
/dev/sdb6 /media/disk-1 reiserfs rw,nosuid,nodev,noatime 0 0

Create in /etc/fstab the entry(ies) for your external HD with the info shown in mtab and then also create the actual DIRECTORY for this entry. For example, from the above I would create in /media a directory /disk and a directory /disk-1 so that when you switch on (or plug it into the USB port) the external HD it would get mounted to that directory (in my case to /media/disk and /media/disk-1).

This help sort it out for you?


Cheers.

--
In a period of great joy and pleasure you are comforted by the thought that tragedy is just around the corner.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to