LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-11-2004, 07:28 PM   #1
karimd
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Rep: Reputation: 0
how to mount ntfs drives in the boot sequence


i am still a new with linux so this could be real easy...

i can mount drives from the root prompt doing:

mount ...

but i have to do that everytime i boot up, i think, unless im doing something wrong

anyway, im trying to find a way to mount them in the boot sequence
i presume there is a file somewhere that i can add those lines to and that will run everytime it boots up
if anyone knows what im talking about, i would love some help

thanks in advance,
karim
 
Old 08-11-2004, 08:36 PM   #2
SiegeX
Member
 
Registered: Jul 2004
Location: Silicon Valley, CA
Distribution: Slackware
Posts: 171

Rep: Reputation: 38
look in /etc/fstab , the syntax is a bit differnt than running the 'mount' command but you can just adapt it by looking at the existing lines.

Alternativly you could just toss the 'mount' command you are using in /etc/rc.d/rc.local

 
Old 08-12-2004, 09:42 AM   #3
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
You can mount NTFS partitions during bootup by fixing your /etc/fstab (as long as your kernel supports reading NTFS)

Add something like this : just point /dev/hda1 to your NTFS drive or partition then make sure the mountpoint exists (that's /hda1)

Quote:
/dev/hda1 /hda1 ntfs auto,ro,umask=000 1 0
The drive will be mounted during bootup
 
Old 08-12-2004, 05:00 PM   #4
xPAGANx
LQ Newbie
 
Registered: Aug 2004
Location: Warren, MI
Distribution: Slackware 10
Posts: 7

Rep: Reputation: 0
Just so you know if you have more than 1 pc you can also mount your remote computer drives on startup as well...

I do this so I can use my linux box for backup purposes.

I made directorys such as this

/mnt/computer1/c
/mnt/computer1/d
/mnt/computer2/c
/mnt/computer2/d

you can put the following command into rc.local for each drive changing whats necessary.

"smbmount //computer1/c$ /mnt/computer1/c -o username=username,password=password"

Hope you enjoy this!

xPAGANx
 
Old 08-13-2004, 12:35 PM   #5
karimd
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your help guys.
I'll try it out and let you know how it goes.
 
Old 08-13-2004, 03:51 PM   #6
karimd
LQ Newbie
 
Registered: Aug 2004
Distribution: Slackware 10
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks

That was great. I basically used the lines you suggested and now all my ntfs drives mount on boot.
Just out of curiosity, what do the numbers at the end of the line mean? I'm referring to the "1 0".
I noticed the root drive had a "1 1" at the end and the other linux partitions had a "1 2" except for the swap partition which was "0 0" so I'm guessing that the first number refers to 'active' or 'enabled' or something and as for the second number I have no idea.
Anyway, it's not really a big deal, I'm just curious.
Thanks again,
karim
 
Old 08-16-2004, 10:40 AM   #7
insyte
Member
 
Registered: Jul 2004
Distribution: Slackware Current
Posts: 308

Rep: Reputation: 30
the first number stands for 1 = checked during bootup
0 = not checked default for non-linux partitions and cd drives

the 2nd stands for 1 = reserved for the / partition because its checked first
2 = all other partitions
0 = not checked
 
  


Reply



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 to mount NTFS drives on fedora core 2? laiju Linux - General 3 11-21-2004 03:51 PM
How To Mount NTFS Drives in Linux 9 KnowledgeSeeker Linux - Software 3 09-23-2004 04:37 PM
Can't mount NTFS drives (yeah...I searched first) mandark Debian 4 04-06-2004 11:39 PM
How to permenantly mount NTFS drives in Linux? raid517 Linux - Hardware 1 10-23-2003 12:40 PM
Can't mount ntfs hard drives? justin9 Linux - Newbie 8 07-14-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:45 PM.

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
Open Source Consulting | Domain Registration