LinuxQuestions.org
Review your favorite Linux distribution.
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 08-11-2004, 03:09 AM   #1
Sc0pE
Member
 
Registered: Aug 2004
Location: Northern Ireland
Distribution: Suse 9.3
Posts: 46

Rep: Reputation: 15
mount storage drive


hey im realitivy new to linux and ive run into a spot ot bother, i have 2 hard drives 1 for linux and 1 for storage (which was previously used in windows but no windows files are on it just storage) it is ntfs, in devices it shows me my cd rom my linux hard drive (hdd6) and my other hard drive /sys, but wont let me mount it, any suggestions ? cheers
 
Old 08-11-2004, 05:10 AM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
First, create a mount point if you haven't done so yet. The mountpoint is where the contents of the partition will be shown. I suggest something like /mnt/storage just to get started.

Second, determine what the device name of the partition you want to mount is, as well as the partition type (which usually indicates roughly what filesystem is used). You can get a list of all partitions on all disks using fdisk -l. Something like /dev/hdb1 would not be too surprising since that is the first partition on the slave disk on the first IDE controller.

Mount it! mount -t <fsname> <device> <mountpoint> is the general synopsis, so if /dev/hdb1 is a FAT32 partition and we want to mount it at /mnt/storage this would do the trick: mount -t vfat /dev/hdb1 /mnt/storage

If that works you can add it to /etc/fstab to have it automatically mounted on each boot. You can also set umask and ownership (userid/groupid) to make sure users can use the files on the partition as you want them to.


Håkan
 
Old 08-12-2004, 01:12 PM   #3
Sc0pE
Member
 
Registered: Aug 2004
Location: Northern Ireland
Distribution: Suse 9.3
Posts: 46

Original Poster
Rep: Reputation: 15
hey ive created a mount point as you said /mnt/storage and when i click apply it sais that it cant be mounted but i can continue if i know what im doing and when i look in the directory i can see the storage directory ive created but nothing inside
 
Old 08-13-2004, 02:49 AM   #4
Sc0pE
Member
 
Registered: Aug 2004
Location: Northern Ireland
Distribution: Suse 9.3
Posts: 46

Original Poster
Rep: Reputation: 15
hey man thanx i got it mounted but now only root can access it and when i try and change the permission it tells me its a read only file system, look

linux:/mnt/20gig # chmod +rwx /mnt/20gig
chmod: changing permissions of `/mnt/20gig': Read-only file system
 
Old 08-13-2004, 04:09 PM   #5
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You can't just change the permissions on the mount point or partition. You need to pass some options to the mount command, either on the command line or in /etc/fstab to make it readable by those who should have access. Or, for a quick and dirty fix: Specify umask=000 on the "option" part of the line in /etc/fstab. That will make all files on the partition readable/deletable and executable by everyone. This is of course a security hazard but I have outlined another neater way here.


Håkan
 
  


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
Linux, usb-storage... how to mount them and see their partition table Saradas Programming 5 11-12-2008 08:09 AM
USB storage devices difficult to mount and use jaakkop Slackware 4 11-16-2005 04:03 PM
Cannot mount usb storage under 2.6.9 stelmed Slackware 6 12-12-2004 08:34 AM
how to mount a usb storage automatic ? lemon_hou Linux - Hardware 2 03-07-2004 10:55 PM
Mount Massive Storage drive Musikolo Linux - Hardware 32 07-24-2003 11:50 AM

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

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