LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Where to mount second hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/where-to-mount-second-hard-drive-80941/)

Harimwakairi 08-11-2003 08:52 AM

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!

fancypiper 08-11-2003 09:00 AM

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

Skyline 08-11-2003 04:17 PM

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.

emence 08-11-2003 04:29 PM

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????


All times are GMT -5. The time now is 11:51 AM.