How to permanently mount 2nd hard drive?

Hi,

I’m running OpenSUSE 11.1. I have OS installed on first harddrive (SATA). I have a lot of data on 2nd hard drive (also SATA).

Each time I boot up, 2nd hard drive is mounted as HDNAME[+] in Media. So, today it might be listed as "HDNAME".

If I shutdown and reboot, the “" character will get appended to the name, so the new 2nd hard drive will be called "HDNAME___”.

The next reboot, one more character will be added, “HDNAME______”, and so on.

How do I permanently mount the 2nd harddrive so it is registered and has a permanent name/location. I’d like to be able to create shortcuts from the OS to the 2nd harddrive. If the name changes each boot, this obviously isn’t going to work.

Any suggestions?

Thanks,
GOLEM

Use the Yast – System → partitioner to mount it. That will be a permanent mount. Put the path to the mount directory in the slot labeled Mount Point.

Actually, if it’s a FAT32 or NTFS (windows) drive, let me know cos that’s a bit more complicated.

Thanks swerdna. Yes, its formatted NTFS so I can easily read/write data when booting into the Windows partition (for games of course – still playing Valve’s Left4Dead right now).

Wuold I still use Yast -> System -> Partitioner?

Thanks for followup on this.

Probably better to add a custom line into the fstab file. Like this for full read/write access if drive is internal:

/dev/sda2    /path_to/mount_point    ntfs-3g    defaults    0 0

or this if the drive is external:

UUID=F028603828600048    /path_to/mount_point    ntfs-3g    defaults    0 0

You can get the UUID from this command:

sudo /sbin/blkid -L

More here: HowTo Mount NTFS Filesystem Partition Read Write Access in openSUSE 10, 11
and here (for uuid): HowTo Mount NTFS Partitions Read Write in Ubuntu Kubuntu

It’s an internal drive. I read through your HowTo Mount NTFS doc and updated FSTAB with defaults as suggested. Everything works perfectly.

Thanks… (and you can close this question if thats possible)