Page 1 of 1

How to automatically mount all the hard drive partitions?

Posted: Sat 26 May 2012, 04:56
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!

Posted: Sat 26 May 2012, 05:31
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

Posted: Sat 26 May 2012, 18:30
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.

_________________________________________________________
________________________________________

Posted: Sat 26 May 2012, 21:32
by Médor
Sorry bad tread