Computer ForumsComputers  

Go Back   Computer Forums > PC Technology Zone > Linux, BSD, other *nixes & Open Source Software

Reply
 
LinkBack Thread Tools Display Modes
Old 01-12-2006, 05:40 PM   #1 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 354
Default linux (ubuntu) and ntfs (on seperate hard drive in same machine)

just wondering how to go about mounting a windows ntfs partition that is connected to the same computer on a seperate hard drive.. i tried mounting it but it just comes up witha red cross meaning i cant have access or sumthing.. i used the terminal to write.. sudo mount /dev/hda1 /mnt/winxp and it didnt work that well it just said it was mounted but i couldnt have access.. i dont think there is a ntfs driver for mounting?? i can access ntfs partitions across a network so is there any chance i can access it via smb? samba?
__________________


Aries A+ Hardware and Software Certified
BlkShdw88 is offline   Reply With Quote
Old 01-12-2006, 05:46 PM   #2 (permalink)
Master Techie
 
Join Date: Apr 2004
Posts: 2,532
Default

read only
horndude is offline   Reply With Quote
Old 01-12-2006, 06:05 PM   #3 (permalink)
Junior Techie
 
Join Date: Nov 2005
Posts: 74
Default

You can only use it read only as said before, your problem is probably permissions, and the ntfs partition can only be read by the user that mounted it. This can be fixed, just post the contents of /etc/fstab and I'll show you where to edit it
__________________
www.pdgaskell.co.uk
philg is offline   Reply With Quote
Old 01-12-2006, 09:36 PM   #4 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 354
Default

hey i cant go on linux until later on but all i want to do is be able to access my partition for reading files not for changing anything. i would like to be able to access my music and videos etc on my ntfs partition. but later i may post the /etc/fstab thing .. do u mean whats in the folder or there is a file called fstab? sorry i only just got ubuntu and im not too familiar with linux yet
__________________


Aries A+ Hardware and Software Certified
BlkShdw88 is offline   Reply With Quote
Old 01-12-2006, 11:16 PM   #5 (permalink)
Indeed.
 
Greg's Avatar
 
Join Date: Dec 2004
Posts: 1,530
Default

fstab is a configuration/text file in the folder /etc. It should look something like this:
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/hda1       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda5       none            swap    sw              0       0
/dev/hdd        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/hdc        /media/cdrom1   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0

__________________
Greg is offline   Reply With Quote
Old 01-18-2006, 01:44 AM   #6 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 354
Default

sorry for late reply but im not sure what happend with my other hard drive but it wont boot now lol and it will take me a while before i reinstall linux on it or figure out what is going on (i don't urgently need linux) but i will remember what has been said here and thanks again .. if i have any troubles i will reply
__________________


Aries A+ Hardware and Software Certified
BlkShdw88 is offline   Reply With Quote
Old 01-22-2006, 07:00 AM   #7 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 354
Default

ok ive reinstalled it and ive found the fstab file here is the contents:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/hdb4 / ext3 defaults,errors=remount-ro 0 1
/dev/hdb2 /boot ext3 defaults 0 2
/dev/hda1 /media/hda1 ntfs defaults 0 0
/dev/hda5 /media/hda5 ntfs defaults 0 0
/dev/hda6 /media/hda6 ntfs defaults 0 0
/dev/hdb1 /media/hdb1 ntfs defaults 0 0
/dev/hdb5 none swap sw 0 0
/dev/hdd /media/cdrom0 udf,iso9660 user,noauto 0 0


just so you know i found out i am able to mount the ntfs partition through Disks off the administration menu and can explore it through there but i cannot access it by just using the default file explorer thing. does this fstab file make it mounted at all times?
__________________


Aries A+ Hardware and Software Certified
BlkShdw88 is offline   Reply With Quote
Old 01-22-2006, 08:27 AM   #8 (permalink)
Junior Techie
 
Join Date: Nov 2005
Posts: 74
Default

Yes it does

In a terminal execute this code `ls -l /media` and `mount`. Post the output of both commands here
__________________
www.pdgaskell.co.uk
philg is offline   Reply With Quote
Old 01-22-2006, 09:33 PM   #9 (permalink)
Super Techie
 
Join Date: May 2005
Posts: 354
Default

here is the output of ls -l /media command:

total 4
lrwxrwxrwx 1 root root 6 2006-01-21 21:55 cdrom -> cdrom0
drwxr-xr-x 2 root root 4096 2006-01-21 21:55 cdrom0



here is the ouput of mount command:

/dev/hdb2 on / type ext3 (rw,errors=remount -ro)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid = 5, mode = 620)
tmpfs on /dev/shm type tmpfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
tmpfs on /lib/modules/2.6.12-10-386/volatile type tmpfs (rw,mode= 0755)
tmpfs on /dev type tmpfs (rw,size = 10M, mode = 0755)



what am i supposed to do to be able to mount it which file do i edit?
__________________


Aries A+ Hardware and Software Certified
BlkShdw88 is offline   Reply With Quote
Old 01-23-2006, 03:06 AM   #10 (permalink)
Junior Techie
 
Join Date: Nov 2005
Posts: 74
Default

The mount points don't exist for some reason, try these commands:
Code:
# mkdir /media/{hda1,hda5,hda6,hdb1}
# mount /media/hda1
# mount /media/hda5
# ...
Instead of manually mounting all the partitions after creating the mount points you could just reboot your system
__________________
www.pdgaskell.co.uk
philg is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 03:52 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0