LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-01-2004, 05:36 AM   #1
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Rep: Reputation: 15
Changing access permission


Last night I successfully installed Fedora Yarrow i386 Core 1 onto my family computer. Its quite exciting, I can now use a computer for the first time in 12 years without Bill Gates looking over my shoulder!

My question, is probably a matter of familiarisation, revolves around being able to access other partitions or discs. It could be a matter of level of access I have permitted myself - how do I correct that?

I wished to use partitions as follows:

hda1: Windows XP (6Gb - FAT32)
hda2: data space for both systems (25Gb - FAT32)
hda3: Linux (6Gb - ext3)
hda4: MBR etc (300Mb - doesn't matter - it works!)

windows can access hda1 & 2 (both FAT32), but Linux can only access iteself (ext3) so far.

I could re format 2 if necessary, but I chose that format as I believed it was accessible to Linux?

I ask the forum rather than pouring over the online manuals as my internet acccess is from the office ( where I read and access the net) while my pc is at home....

Many thanks
 
Old 07-01-2004, 05:51 AM   #2
zowey
Member
 
Registered: Feb 2004
Location: Croatia
Distribution: slackware 10.1, debian sarge, knoppix, ubuntu 7.04
Posts: 67

Rep: Reputation: 15
I think that problem is in kernel, but not necessary. It looks like your linux doesn't have support for FAT32 file system.
 
Old 07-01-2004, 06:10 AM   #3
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
Unhappy

Maybe, but I can't access the floppy or CD-Rom as a user either, so I think its a little more basic than that (I hope!)
 
Old 07-01-2004, 07:39 AM   #4
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
If it is a default Fedora install, FAT support should be available

as root

mkdir /mnt/c

#mount -t vfat /dev/hda1 /mnt/c

and let us know how it goes.

Perhaps a silly question.. are you sure youw WindowsXP partitions are FAT32 and not NTFS.

you can download and install the appropriate rpms from

linux-ntfs.sourceforge.net

and use "-t ntfs" instead of "vfat" in case your partition(s) are NTFS.
 
Old 07-01-2004, 08:40 AM   #5
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
Smile

Do you mean I needn't have reformatted each and every partition as FAT32!? - Oh well, ho hum!

ppuru,
you seem to me to have a habit of using text instead of GUI methods - I'm still learning - fast!
I presume there is an equivalent to Windows' "Run..." in the GUI? or do I need to learn other new tricks too?

I am very impressed with this form of help - you guys have been excellent
 
Old 07-02-2004, 06:47 PM   #6
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
ppuru,
I thank you, I have now found gedit, and your comments on my other thread worked a treat, especially with the titles suggested by others!

the directory you mentioned - /mnt/c is empty - when logged in as root.
"as root

mkdir /mnt/c

#mount -t vfat /dev/hda1 /mnt/c

and let us know how it goes."

what is mkdir ?(in DOS that used to be make a new directory)
# means comment doesn't it? where do I put that line? when typed in at the terminal, i got the response that I couldn't mount an existing drive, with a series of parameters. am I missing something?
 
Old 07-02-2004, 07:28 PM   #7
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
STOP PRESS - got it workin, but, then ...

mount -t vfat /dev/hda2 /mnt/c
and
mount -t vfat /dev/hda2 /home/ian

appears to have prevented me logging in. How do I dismount it?

questions, questions,
 
Old 07-02-2004, 08:44 PM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To un-mount a partition, for example, type:
Code:
umount /mnt/c
The /etc/fstab file contains information concerning pre-defined partition setup (including cd-rom and floppy).
If you still can't acces your cd-rom or floppy, the problem may be with this file.
Post the contents for more help.

Quote:
I presume there is an equivalent to Windows' "Run..." in the GUI? or do I need to learn other new tricks too?
Yes there is.
Log-in as a normal user. Open a Console window (also know as a terminal window... it looks like a DOS window).
This is the command line.

At the command line, if you want to run some commands or programs as root, type the following:
Code:
su -
To log-out, you can type exit or press Ctrl+D.
 
Old 07-03-2004, 05:26 AM   #9
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
merci Mathieu,
I'm getting there! I've found Terminal - I now understand the # (not a command, just a prompt) and ppuru, and the mount disappeared on shut down. At this stage, I'm just so paranoid, I don't want to break anything!

Many Thanks to ppuru, I've found my floppy, my CD and other hard disk partitions - excellent. Now to put 'shortcuts' into the desk top, and mount .... in the login script wherever that is. That should be totally up and running then.

If only I could...


I'm getting there, with a little help from my friends!
 
Old 07-03-2004, 09:32 AM   #10
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
Quote:
mount -t vfat /dev/hda2 /home/ian
appears to have prevented me logging in
When you issue a mount command, the device (/dev/hda2) is mounted on the mount point that you specify (/home/ian). So, the original contents on /home/ian will not be available till you unmount the device.
 
Old 07-03-2004, 03:43 PM   #11
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
Makes sense! - it all fits.

Is there an equivalent to shortcuts?
Can I permantly mount to /mnt/c?
Ideally, I'd then assign permissions to each part of that data disc (hda2)
 
Old 07-03-2004, 04:02 PM   #12
BattousaiX
LQ Newbie
 
Registered: Jul 2004
Posts: 18

Rep: Reputation: 0
I'm new but I believe /etc/fstab is where perminant mounts are.
 
Old 07-03-2004, 04:54 PM   #13
LinuxVirgIan
Member
 
Registered: Jun 2004
Location: Herts, England
Distribution: VectorLinux 5.7 SOHO
Posts: 33

Original Poster
Rep: Reputation: 15
BattousaiX,

Again, that's what Mathieu said, now the mud is becoming clearer! I'm beginning to understand what people are talking about - and its working.

How do you make windows style shortcuts/links to subdirectories, anybody?
'make links' always gives me an error message
 
Old 07-04-2004, 07:02 AM   #14
lone_nut
Member
 
Registered: Dec 2003
Location: Denmark
Distribution: Mandrake
Posts: 179

Rep: Reputation: 30
making a windows stylled shortcut:
ln -s originalfile newfile

the ln -s makes a soft link from the originalfile to the newfile.
if you remove the originalfile the newfile becomes useless.

Under GNU/Linux you can create a so called hard link by not typeing ln -s but just ln.

A hard link differ from a soft link by only allowing links on the same partion.
The advantegs is that if the original file is removed, the new file works just the same.
no that if you overwrite the new (or old) file, both files will have there contains althered.
 
Old 07-04-2004, 07:10 PM   #15
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
To automount hda2 -- your data space for both systems (25Gb - FAT32),
you will have to edit the fstab file located in the /etc directory (/etc/fstab).

Add the following line:
Code:
/dev/hda2            /mnt/ian           vfat       defaults,users,gid=users,dmask=0002,fmask=0111   0 0
You may or may not already have an entry for /dev/hda2, check first.

For your windowsXP partition, if it is NTFS, you can mount it in Read-only mode, but if it is a FAT32, you can mount it in Read/Write mode.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Changing permission jaakkop Slackware 1 09-29-2004 01:08 PM
Changing permission. jaakkop Slackware 1 09-17-2004 02:41 PM
Changing Files without permission dolphans1 Mandriva 20 09-17-2004 01:16 PM
Changing permission on commands erraticassassin Slackware 3 07-13-2004 03:46 AM
Changing Permission of a command Encrypted Linux - General 5 01-16-2003 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration