hdd startup mount

Asked by bazsik

I want my secondary HDD to be mount when I start my OS. I know I should set this drive into the fstab file but I don't know the right parameters during the addition.
Could anyone help us.

My fstab file is like this: (what should I change or add to solve this problem?)

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda7
UUID=4cc609e2-df23-4903-96cb-3268db4ff02d / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=fe6db5ed-2ffe-4974-beb7-54e8576cd489 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

Thanx

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Tony Mugan
Solved:
Last query:
Last reply:
Revision history for this message
Pramod Dematagoda (pmdematagoda) said :
#1

Post the output of:-
fdisk -l
and also specify what drive it is that you want to be put into fstab.

Revision history for this message
Tony Mugan (tmugan) said :
#2

Try running this in a terminal window to show your current UUID for each partition
It is probable that the partition you are referring to is not currently mentioned and needs to be added in the /etc/fstab

ls /dev/disk/by-uuid -alh

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hello

When you mount an ext3, the permissions on the files are remember from when used previously. You probably just need to use chmod to adjust your permissions.

when you are using a fat 32 drive you can use umask = 000

But paste the output of the command that tony has mentioned

Regards

Revision history for this message
bazsik (bazsikadam) said :
#4

thax all

but the problem is still here
The drive is a 40GB HDD which has a 7GB partition (for Ubuntu ext3) and a secondary one 33GB ntfs. The mounting problem is about this ntfs partition.

I ran the previous command offered by Tony and here is the result of it:
"
total 0
drwxr-xr-x 2 root root 100 2008-06-08 21:30 .
drwxr-xr-x 6 root root 120 2008-06-08 21:30 ..
lrwxrwxrwx 1 root root 10 2008-06-08 21:30 0E10AF9910AF8675 -> ../../sda5
lrwxrwxrwx 1 root root 10 2008-06-08 21:30 4cc609e2-df23-4903-96cb-3268db4ff02d -> ../../sda7
lrwxrwxrwx 1 root root 10 2008-06-08 21:30 fe6db5ed-2ffe-4974-beb7-54e8576cd489 -> ../../sda6
"
should I add this line (lrwxrwxrwx 1 root root 10 2008-06-08 21:30 0E10AF9910AF8675 -> ../../sda5) to the fstab file or...? If yes how what parameters with?

here is my fstab: (the question: is this correct, what should I correct 'caz doesen't work with it)
If I remove the "mount" word from the last line I won't mount the current partition manually either

"
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda7
UUID=4cc609e2-df23-4903-96cb-3268db4ff02d / ext3 relatime,errors=remount-ro 0 1
# /dev/sda6
UUID=fe6db5ed-2ffe-4974-beb7-54e8576cd489 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
mount /dev/sda5 /media/HDD30 fuseblk defaults,allow_other,blksize=4096 0 0
"

What can I do..?

Revision history for this message
Best Tony Mugan (tmugan) said :
#5

Try

sudo apt-get install ntfs-config
sudo ntfs-config

This tool should identify internal drives with NTFA and set them up in /etc/ftsab according to
http://www.ubuntugeek.com/widows-ntfs-partitions-readwrite-support-made-easy-in-ubuntu-feisty.html
It's specifically for an older version of Ubuntu but should work.

Revision history for this message
bazsik (bazsikadam) said :
#6

Thankx Tony!

It's working. :)

Revision history for this message
bazsik (bazsikadam) said :
#7

Thanks Tony Mugan, that solved my question.