LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-14-2001, 08:18 AM   #1
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Rep: Reputation: 30
Question Partition mounting


Hello all,
I have divided my HD into two partitions, one for win98(say C) and the other for linux. I didn't mount the C drive while installing linux. How can I mount it now?
 
Old 09-14-2001, 09:09 AM   #2
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
taking your "C"-Drive is /dev/hda1 (first ide-device, first primary partition)

# mount -t vfat /dev/hda1 /mnt

if you want to mount it at every bootup add this line to your /etc/fstab

/dev/hda1 /my/mountpoint vfat user, auto, rw, umask=000

umask=000 will mask privileges, so that any user can do anything with the files. -> Have a look at the man-page for chmod for other masking options. (works the same way as chmod xxxx would.)

thats all! Steave.
 
Old 09-14-2001, 09:12 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Jut to point out a small flaw in steaves reply.

the fstab line should be

/dev/hda1 /my/mountpoint vfat user,auto,rw,umask=000

not

/dev/hda1 /my/mountpoint vfat user, auto, rw, umask=000

the extra spaces will screw it up royally
 
Old 09-15-2001, 12:47 AM   #4
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
Don't forget the numbers at the end:

/dev/hda1 /my/mountpoint vfat user,auto,rw,umask=000 0 0
 
Old 09-20-2001, 10:13 AM   #5
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
Question !

Hello, I have set the etc/fstab according to the instrument to make the system auto-mount the "c" drive.
I wonder how to auto-mount the "C" drive while some users, who belongs to a special group, login the system. (i.e. Except for some users in a special group, I don't want any other users access the "C" drive which contains win98);
 
Old 09-20-2001, 10:31 AM   #6
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
edit the line in fstab to ... user,noauto,....
now you can mount the drive using mount /my/mountpoint
You probably want to write a login script for those people that you want the C-Drive to see:
I think you do this by just adding a file called .login to the users home-dir. This will be executed on login.
add the line
mount /my/mountpoint
thats it.
If you don't want anybody else from mounting drives, set the access privileges to /bin/mount accordingly.
 
Old 09-21-2001, 02:46 PM   #7
SprinterPD
LQ Newbie
 
Registered: Sep 2001
Posts: 11

Rep: Reputation: 0
Hello all, I had the exact same question with a twist. If I ALSO have a FAT32 25GB partition on hda6 that I want to share between my Linux and Win98 OS's do I mount it the same way? I will be using this partition as a backup area and need the files available regardless of how I boot.
This system will be a router/gateway to my cable modem, but I want to retain Win98 so I can play games on my LAN with the other systems.
Cheers,
Michael
 
Old 09-21-2001, 02:55 PM   #8
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
yes, same thing! just replace /dev/hda1 by /dev/hda6 and do the rest as mentioned above. Have fun!
 
Old 09-21-2001, 03:06 PM   #9
SprinterPD
LQ Newbie
 
Registered: Sep 2001
Posts: 11

Rep: Reputation: 0
2 lines, 1 for each, right?
vfat applies to FAT32 as well as FAT?
Thanks,
Michael

(see that? post a question and a knowledgable, friendly person answers in <10 min. )
 
Old 09-21-2001, 03:13 PM   #10
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
one line for each partition you want to mount. VFAT will work for all fat-types.
 
Old 09-24-2001, 03:11 AM   #11
Rex_chaos
Member
 
Registered: Aug 2001
Location: GD, GZ, China
Posts: 240

Original Poster
Rep: Reputation: 30
extended partition mounting

How can I mount the extended partition and logical partition with mount command?
 
Old 09-24-2001, 05:35 AM   #12
Steave
Member
 
Registered: Jul 2001
Location: Braunschweig, Germany
Distribution: Suse 7.2
Posts: 184

Rep: Reputation: 30
Extended partitions also have a /dev/hdax id. type

fdisk -l /dev/hda

to find out how your primary and logical parititions are numbered.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting partition peaceslp Linux - Software 4 09-28-2005 01:08 PM
Mounting Partition DDRfreak2 Mandriva 8 09-10-2005 12:33 PM
Mounting a partition 1veedo Linux - Hardware 6 12-19-2004 06:40 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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