How to mount HDD in Ubuntu??

Status
Not open for further replies.

bhushan2k

Genius in making mistakes
Hi. Guys. I have installed Ubuntu on my HDD. After that I have attached other HDD and restarted computer in ubuntu. After restarting in ubuntu other hdd partitions detect but not mount automatically. I have to mount everytime after restart in ubuntu. So how should I configure partitions of hdd so that it will mount automatically at every restart (like 'computer management' in windows)
 

praka123

left this forum longback
u shud post here the output of command :
Code:
:~$ sudo fdisk  -l
here.
we can make /etc/fstab entries for you that which will automount ur partitions.
else if u want u can have a look at *ubuntuguide.org the site explains all these things nicely
 
OP
bhushan2k

bhushan2k

Genius in making mistakes
Disk /dev/hda: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 1305 10482381 7 HPFS/NTFS
/dev/hda2 1306 4870 28635862+ f W95 Ext'd (LBA)
/dev/hda5 1306 4283 23920753+ 7 HPFS/NTFS
/dev/hda6 4284 4805 4192933+ 83 Linux
/dev/hda7 4806 4870 522081 82 Linux swap / Solaris

Disk /dev/hdc: 40.0 GB, 40060403712 bytes
255 heads, 63 sectors/track, 4870 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 1958 15727603+ 7 HPFS/NTFS
/dev/hdc2 1959 4869 23382607+ f W95 Ext'd (LBA)
/dev/hdc5 1959 3414 11695288+ 7 HPFS/NTFS
/dev/hdc6 3415 4869 11687256 7 HPFS/NTFS
 

praka123

left this forum longback
First of All,I am explaining how to have the things done fast.
if u care to know what all below commands are doing u can try:
*www.ubuntugeek.com/widows-ntfs-partitions-readwrite-support-made-easy-in-ubuntu-feisty.html
^ this method may be easier for u.else try my HW2:
edit ur /etc/fstab to accomodate the second harddisk entried.first of all you can read only ur ntfs partitions unless you install ntfs-3g.
so open menu System>admin>Synaptic manager-install ntfs-3g
editing /etc/fstab:
press ALT+F2 to get run dialog:rolleyes: then enter below commands and run,when asked give ur local user passwd:
Code:
gksudo gedit /etc/fstab
at a new line last of the page,enter below lines:
Code:
/dev/hdc1      /media/hdc1     ntfs-3g silent,umask=0,locale=en_US.UTF-8  0  0

/dev/hdc5      /media/hdc5     ntfs-3g silent,umask=0,locale=en_US.UTF-8  0  0

/dev/hdc6      /media/hdc6     ntfs-3g silent,umask=0,locale=en_US.UTF-8  0  0
warning:dont enter both below and above entries
if ur yet to install ntfs-3g or dont want to have write access,try below lines instead :
Code:
/dev/hdc1    /media/hdc1 ntfs  nls=utf8,umask=0222 0    0
/dev/hdc5    /media/hdc5 ntfs  nls=utf8,umask=0222 0    0

/dev/hdc5    /media/hdc6 ntfs  nls=utf8,umask=0222 0    0
save and exit.
now open a terminal and run below commands:
Code:
:~$sudo mkdir /media/hdc1 /media/hdc5 /media/hdc6
^ afterwards run:
Code:
:~$sudo mount -a
then go to Places menu>Home for Nautilus file manager.browse to /media/ directory.u can see ur ntfs partns of second hdd is mounted in directories /media/hdc1,/media/hdc5, /media/hdc6
 
Status
Not open for further replies.
Top Bottom