Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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.

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

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

![]() |
get rid of WindowMaker
|
Hotmail in Mozilla -> out...
|

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