lunedì 15 marzo 2010

How To: Mount an Hard Disk or another support at system startup

Questa guida è disponibile anche in Italiano.

Many people has got Windows in dual-boot with Ubuntu, and between these someone has got to use the Windows partition for some reason, and every time they have got to mount it, giving the password.

How to avoid this things? But obviously mounting the partition at the startup!
Easi, open the terminal and type:

sudo gedit /etc/fstab

Now gedit will open the fstab file, which manages the partitions to mount.
Now there are two cases: Windows partition is NTFS or in FAT32
To know it, do
sudo fdisk -l

And read the informations printed. If under "System" appears a NTFS or FAT partition.

If it's in NTFS:

Add this to fstab file:

/dev/device /media/mount-point    ntfs-3g silent,umask=0,locale=it_IT.utf8 0 0

Where "device" is found ever with sudo fdisk -l, example: /dev/sda1
While "mount-point" it's whatever you want, but don't put any space in the name.


If it's in FAT:

Add this to the fstab file:


/dev/device /media/mount-poing vfat  iocharset=utf8,umask=000  0    0


Where "device" is found ever with sudo fdisk -l, example: /dev/sda1
While "mount-point" it's whatever you want, but don't put any space in the name.


But what if i don't wanna mount NTFS partition, but a EXT4 one?
So, it'll be:
/dev/device /media/mount-poing ext4 rw,defaults 0 0

Where "device" is found ever with sudo fdisk -l, example: /dev/sda1
While "mount-point" it's whatever you want, but don't put any space in the name.

The guide has been tested with Ubuntu 9.10

If I helped you, or you like the article, click on a Google Ad here down the page: It's free!

0 commenti:

Posta un commento