How to automatically mount all the hard drive partitions?

Requests go here. If you fill a request, give it a new thread in the appropriate category and then link to it in the request thread.
Post Reply
Message
Author
linux28
Posts: 270
Joined: Sun 05 Apr 2009, 07:22

How to automatically mount all the hard drive partitions?

#1 Post by linux28 »

Hello, I use Upup the Precise, how can Saluki the same can be automatically mounted hard drive all the partitions?the automount? Thank you, pet it?If we can provide a better thank you very much!

jpeps
Posts: 3179
Joined: Sat 31 May 2008, 19:00

#2 Post by jpeps »

If I understand the question, you can add mount instructions in /etc/rc.d/rc.local:
ex: mount -t ext3 /dev/sda2 /mount/sda2

User avatar
don570
Posts: 5528
Joined: Wed 10 Mar 2010, 19:58
Location: Ontario

#3 Post by don570 »

Or put a script in /root/Startup
Make sure it's executable by
looking at it's properties.

Example

Code: Select all

#!/bin/sh
mount -t ext3 /dev/sda2 /mount/sda2
mount -t ext3 /dev/sda5 /mount/sda5
Note: if the partition is formated ext3 then
you don't need -t option


-t vfstype
The argument following the -t is used to indicate the file system type.
The file system types which are currently supported are: adfs, affs,
autofs, coda, coherent, cramfs, devpts, efs, ext, ext2, ext3, hfs, hpfs,
iso9660, jfs, minix, msdos, ncpfs, nfs, ntfs, proc, qnx4, ramfs, reiserfs,
romfs, smbfs, sysv, tmpfs, udf, ufs, umsdos, vfat, xenix, xfs, xiafs.

_________________________________________________________
________________________________________

Médor

#4 Post by Médor »

Sorry bad tread

Post Reply