LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   mounting & unmounting? (https://www.linuxquestions.org/questions/slackware-14/mounting-and-unmounting-124958/)

777JR 12-11-2003 12:43 PM

mounting & unmounting?
 
I just installed Slack 9.1 I am a newbie to Slack and I have used RH 9 for the last two months. I am trying to find where I am able to manage my drives(mounting & unmounting) also need to find out how to get them to automount( if I can)? :newbie:

tipaul 12-11-2003 01:03 PM

mount vs automount
 
There's a big difference between mounting and auto-mounting!

Because for enabling auto-mounting, you must patch the kernel and recompile it!

But for mounting, you must know your drives and edit (as root) the file /etc/fstab .

you must insert a line for cdrom:

/dev/hdx /mnt/cdrom iso9660 noauto,users,ro 0 0

where /dev/hdx is:
/dev/hda -> Drive is connected to Primary IDE as Master.
/dev/hdb -> Drive is connected to Primary IDE as Slave.
/dev/hda -> Drive is connected to Secondary IDE as Master.
/dev/hda -> Drive is connected to Secondary IDE as Slave.

Samething for Windows partition except you must specify the partition # after the drive (/dev/hda1 -> which is the first harddrive and second partition as partitionning start at 0!). The line would look like:

/dev/hda1 /mnt/win vfat auto,users,rw 0 0

NB: vfat is for FAT32 partition (as with Windows98). auto will mount the partition at bootup. users is for enabling access for users. rw = read and write enabled...

If you want to mount a Windows XP/NT/2000..etc... parition, then you must replace vfat with ntfs and also the "rw" for "ro"... Because write access to your NTFS partition could damage-it!

Another NB: you must create the directory in the /mnt before mounting something in it... Like doing mkdir /mnt/cdrom for the upper example of the cdrom... All this always under ROOT user!!!! ;)

thegeekster 12-11-2003 04:27 PM

typo?
 
I think you made some typos here:
Code:

where /dev/hdx is:
/dev/hda -> Drive is connected to Primary IDE as Master.
/dev/hdb -> Drive is connected to Primary IDE as Slave.
/dev/hda -> Drive is connected to Secondary IDE as Master.
/dev/hda -> Drive is connected to Secondary IDE as Slave.

It should read as:
Code:

where /dev/hdx is:
/dev/hda -> Drive is connected to Primary IDE as Master.
/dev/hdb -> Drive is connected to Primary IDE as Slave.
/dev/hdc -> Drive is connected to Secondary IDE as Master.
/dev/hdd -> Drive is connected to Secondary IDE as Slave.

The secondary master and slave devices should be hdc and hdd, respectively ;)

bigbacon 02-08-2004 03:26 AM

Another question answered with out even asking... Thanks guys. :) You really make this too easy for us n00bs :)


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