LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 08-11-2003, 08:52 AM   #1
Harimwakairi
LQ Newbie
 
Registered: May 2003
Posts: 15

Rep: Reputation: 0
Where to mount second hard drive


I recently upgraded my second hard drive in my Windows box, leaving me with an extra 60 Gigger that I've put into my Redhat box. It contains some DVD and CD rips that I've made and would really like to keep. I downloaded and installed the RPMS for the ntfs file system stuff, and I can read the data fine. I did have two questions though.

1) I mounted the drive temporarily using "mount -t ntfs /dev/hdb1 /newdrive". This resulted in a readonly filesystem owned by root. I can't change the permissions because it's readonly, so I can only access the drive as root, which sucks. How does one normally set up the system to have a new drive? Will I be modifying fstab by hand? Is there a howto on adding a new hard drive somewhere? I'd really like to transfer the files over the network back to my Windows box so I can format the drive in ext3, but I can't because of the way the permissons are on the files.

2) What's the normal style for mounting a drive of mp3s and movies? I mean, if you had one where would you create the directory to use as the mount point for the drive? I was thinking "/media", but I don't know if it's normal to create a folder off the root directory like that. I'd like to have this drive shared over samba and perhaps ftp when it's fully setup. Would that affect where I should mount it? Sorry if this seems like a weird question, but I don't want to be the Linux equivalent of that Windows user who has 50 directories in c:\. :)

Any help appreciated!
 
Old 08-11-2003, 09:00 AM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
I would use something like /mnt/media, myself.

BTW, NTFS should be read only as you can ruin that filesystem by attempting to write to it.

# Managing drives
LNAG - Accessing my drives
Rute - Device Mounting

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 08-11-2003 at 09:03 AM.
 
Old 08-11-2003, 04:17 PM   #3
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Hi Harimwakairi

To mount a NTFS filesystem on Boot-up were all users have Read access, put an entry at the bottom of your /etc/fstab file on a new line - (just substitute in your Partition, Mount point and User ID Number ( uid ) in place of my example ones)

/dev/hda1 /mnt/windows ntfs auto,ro,umask=222,uid=501 0 0

You can get your User ID Number by opening a terminal and typing:

id username – (substitute username with whatever your username is)

Look for

uid=xxx

thats your user id number

You can open /etc/fstab from RH9 with ( As Root user - su to root)

kedit /etc/fstab

Once youve put that line in , Save the file - then just re-boot and your partition will automatically mount and youll have appropriate permissions as a Normal user.

Last edited by Skyline; 08-11-2003 at 04:19 PM.
 
Old 08-11-2003, 04:29 PM   #4
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
You could always throw it back in to your Windows Box, convert it to fat32 and then read/write on it all damn day in linux. But if you have it mounted you should be able to go ahead and copy the data over the network to a samba share or ftp site. Are you getting an error when trying to copy it????
 
  


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
Can't mount hard drive. Alvis Linux - Hardware 4 07-25-2005 01:31 PM
how do you mount a hard drive? blackdragon Linux - Newbie 2 07-22-2005 10:28 AM
Mount a second Hard drive darazman Linux - Hardware 4 03-17-2004 06:50 AM
can't mount new hard drive yanban Linux - Hardware 5 07-19-2003 05:09 AM
How to mount a hard drive ed1023 Linux - General 1 08-31-2002 10:04 PM

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

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