LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-10-2004, 10:23 AM   #1
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Rep: Reputation: 15
My second harddrive


I installed a second harddrive in fat32 to be able to use it whit both linux and windows. But I cant delete files or folders on if im not logued as root.


The line in my fstab:

/dev/hdb1 /mnt/second_drive auto user,rw 0 0

Can you please help me?
 
Old 12-10-2004, 11:10 AM   #2
systemparadox
Member
 
Registered: Jul 2004
Location: Tavistock, Devon, England
Distribution: Slackware 9.1, Mandrake 9.0/9.1/10.0, LFS 6.0, Knoppix 3.1/3.3
Posts: 73

Rep: Reputation: 15
Try adding the option umask=022
This is the octal bitmask of the permissions NOT present (why i dont know).
e.g. while you would use 755 for chmod to give rwxr-xr-x, you use 022 for mount/fstab.

You might also want to change the user option to users (allow everyone to unmount it too, not just the person who mounted it).

Hope this helps
Simon
 
Old 12-10-2004, 01:39 PM   #3
urka58
Member
 
Registered: Nov 2003
Distribution: slackware 15
Posts: 546

Rep: Reputation: 43
Try as root
chown -R your_log_name.users /mnt/second_drive
then edit your /etc/fstab
/dev/hdb1 /mnt/second_drive vfat defaults 0 0
Hope this helps
Ciao
 
Old 12-10-2004, 01:47 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
BTW this is one of your more common questions asked.

Add umask=000 option for all users to read /write

/dev/hdb1 /mnt/second_drive vfat umask=000,users 0 0
 
Old 12-13-2004, 03:40 PM   #5
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
I added umask=000

I added umask=000 to my fstab now I can delete when im as user.

But I found a new problem.

When im on Linux I can see data saved from Windows but when im on Windows I cant see my datas saved from Linux.

Do you have any idea?

Thanks!
 
Old 12-13-2004, 03:51 PM   #6
davecs
Member
 
Registered: Feb 2003
Location: Barking, Essex, Britain
Distribution: PCLinuxOS and MX-Linux
Posts: 503

Rep: Reputation: 32
A scary thought might be that data is being saved with different filesystems overlapping and a disaster is about to occur.

I would format the drive as FAT32 and use vfat not auto as the type in your fstab. As you are dual-booting, I would partition and format it from Windows, I have had the odd problem with using Linux fdisk to set up FAT partitions.

I have two hard drives, first holds 3 Windows partitions (C:, E: and F and 7 Linux partitions, (boot1, boot2, root1, root2, home, swap and spare). The second disk is just a huge Windows FAT32 partition (D which holds data. I divided the disk up using fdisk from Win98SE, then reformatted partitions as Linux using a Mandrake install disk, before installing Gentoo! (Partitioning was easier than it sounds!)
 
Old 12-14-2004, 10:50 PM   #7
stefane321
Member
 
Registered: May 2004
Location: Canada
Distribution: SUSE 9.3
Posts: 132

Original Poster
Rep: Reputation: 15
Its now working

I added umask=000 to my fstab line and its now working
 
Old 12-14-2004, 11:09 PM   #8
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
Congrats on solving the problem and thanks for posting back with the solution. Likewise thanks to everyone who replied in this thread. -- J.W.
 
  


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
new harddrive canyon289 Linux - Hardware 9 11-03-2005 05:01 PM
Need Harddrive help goobn68 Linux - Hardware 1 07-31-2005 09:35 PM
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 09:33 AM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 12:59 PM
Harddrive JTD Linux - Hardware 1 11-11-2003 01:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:00 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