Computing.Net > Forums > Linux > Acces other Drives

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Acces other Drives

Reply to Message Icon

Name: tobz
Date: April 22, 2004 at 00:20:34 Pacific
OS: Linux Mandrake
CPU/Ram: Intel MMX Processor 64mb
Comment:

I know that this sounds like a stupid question but how do you access hard drive partitions other that the linux "Home" files and others? Does that even exist?


Thanks, TObz



Sponsored Link
Ads by Google

Response Number 1
Name: Jake
Date: April 22, 2004 at 02:01:43 Pacific
Reply:

Each partition has a device file. Take for example "/dev/hda1". "a" indicates primary master hard drive, and "1" the first partition. "d" would be the secondary slave. See the pattern?

You also need a mount point, which is most often an empty directory in /mnt. Use "mkdir /mnt/whatever" as root to create one.

The command to "access" a filesystem is called "mount". Syntax is "mount device_file mount_point". If that fails, you may have to specify the filesystem type, like "mount -t type device_file mount_point". Common types are vfat for FAT 16/32, ntfs, or Linux native filesystems like ext3, reiserfs, or xfs.

You can save yourself the trouble of mounting every time you boot by making an entry in /etc/fstab as root. An fstab entry may look like- "device_file mount_point type defaults 0 0". It's usually safe to use auto for the type. Read the man pages for mount ("man mount") and fstab ("man fstab") for more details.


0

Response Number 2
Name: JrLz
Date: April 22, 2004 at 02:06:46 Pacific
Reply:

you have to mount that partition,

you have to make a mount directory like
mkdir /mnt/mount1
then mount the device to the mount dir
device can be any device detected in /dev/
mount /dev/hdXY /mnt/mount1
hdXY X=which disk, a=prim master
b=prim slave
c=sec master
d=sec slave
Y=partition number
eg mount /dev/hdb1 /mnt/mount1


Just ask what u need to ask


0

Response Number 3
Name: tobz
Date: April 22, 2004 at 08:08:18 Pacific
Reply:

thanks a lot

;)


0

Response Number 4
Name: ernie
Date: April 22, 2004 at 14:54:58 Pacific
Reply:

If you add a new partition entry to your /etc/fstab file, and you want regular users to be able to access the filesystem, add the option umask=0 to give regular users read/write
access, or umask=0022 to give read only access.

Ernie [ewilcox@buckeye-express.com]
ICQ 41060744
Registered Linux User 247790
Contributing author to Uptime
http://www.steidler.net/uptime


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


get rid of WindowMaker Hotmail in Mozilla -> out...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Acces other Drives

accessing other drives w/redhat 9 www.computing.net/answers/linux/accessing-other-drives-wredhat-9/25604.html

Mount Other Drive in Linux www.computing.net/answers/linux/mount-other-drive-in-linux/29523.html

Bootable hard drive? www.computing.net/answers/linux/bootable-hard-drive/30330.html