LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-06-2007, 01:06 PM   #1
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Rep: Reputation: 15
Need help mounting/accessing NTFS drive...


I have a secondary SATA 250 GB Hard disk with NTFS (yuk) which has all of my music, ISO's, videos, porn, software, etc... and I really need to be able to read, write, and make changes to the disk. Im using Ubuntu which I just installed today.

I followed the instructions at this URL:

http://www.justlinux.com/nhf/Filesys...lesystems.html

Im having a little trouble:

ian@pR0BATR0N:~$ sudo mount /dev/sda5 /mnt/windows -t ntfs -o,ro
mount: /dev/sda5 already mounted or /mnt/windows busy
mount: according to mtab, /dev/sda5 is already mounted on /mnt/windows
ian@pR0BATR0N:~$ /dev/sda5 /windows ntfs ro,user,noauto,umask=0007,gid=1000 0 0
bash: /dev/sda5: Permission denied
ian@pR0BATR0N:~$ sudo /dev/sda5 /windows ntfs ro,user,noauto,umask=0007,gid=1000 0 0
sudo: /dev/sda5: command not found
ian@pR0BATR0N:~$

This is only my 3rd or 4th day with linux, so Im a bit of a . It would be cool if you guys could give me some troubleshooting commands or whatever, explain why you used them, and what they do. The Linux community's help is very appriciated! Thanks.
 
Old 03-06-2007, 01:35 PM   #2
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
do these commands and post the output

ls -l /mnt/windows

mount

cd /mnt/windows
 
Old 03-06-2007, 01:48 PM   #3
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
sudo ls -l /mnt/windows
total 5228
dr-x------ 1 root root 0 2007-01-22 03:00 1d01035546256990de6cada51021
dr-x------ 1 root root 4096 2007-02-20 03:50 Disk Images
dr-x------ 1 root root 0 2007-02-18 12:30 Documents
dr-x------ 1 root root 0 2007-02-18 17:14 Games
dr-x------ 1 root root 0 2007-01-05 22:22 Guitar Stuff
dr-x------ 1 root root 8192 2007-03-02 15:50 Ians Photos
dr-x------ 1 root root 12288 2007-03-02 21:51 Incomplete
dr-x------ 1 root root 36864 2007-03-02 21:45 Limewire
dr-x------ 1 root root 4096 2007-03-02 21:39 Movie
dr-x------ 1 root root 8192 2007-02-15 19:24 Music
dr-x------ 1 root root 4096 2007-01-05 21:47 PC Game Patches and Files
dr-x------ 1 root root 0 2007-02-08 18:04 Rapidshare
dr-x------ 1 root root 4096 2007-02-19 18:53 $RECYCLE.BIN
dr-x------ 1 root root 0 2007-01-08 23:19 RECYCLER
dr-x------ 1 root root 4096 2007-01-05 22:05 ROM
-r-------- 2 root root 5241719 2007-01-23 21:55 rusty-sevens.mov
dr-x------ 1 root root 12288 2007-03-02 16:48 Software
dr-x------ 1 root root 4096 2007-01-08 16:14 System Volume Information
dr-x------ 1 root root 8192 2007-01-05 21:54 Tabs
ian@pR0BATR0N:~/Desktop$ mount /dev/hda1 /mnt/windows -t ntfs -o,ro
mount: only root can do that
ian@pR0BATR0N:~/Desktop$ sudo mount /dev/hda1 /mnt/windows -t ntfs -o,ro
mount: /dev/hda1 already mounted or /mnt/windows busy
mount: according to mtab, /dev/sda5 is already mounted on /mnt/windows
ian@pR0BATR0N:~/Desktop$ cd /mnt/windows
bash: cd: /mnt/windows: Permission denied
ian@pR0BATR0N:~/Desktop$ cd /mnt/windows
bash: cd: /mnt/windows: Permission denied
ian@pR0BATR0N:~/Desktop$ sudo cd /mnt/windows
sudo: cd: command not found
ian@pR0BATR0N:~/Desktop$

am I doing the cd /mnt/windows command wrong?
 
Old 03-06-2007, 02:00 PM   #4
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
su -

(su to root) put in the root password THEN

cd /mnt/windows

you've got the drive mounted it appears to have root permissions.

also just run mount by itself

mount

with nothing else


I accidently reported this thread as spam, I meant to click reply
hopefully it wont get deleted.
 
Old 03-06-2007, 02:08 PM   #5
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
I always get this when trying to go into root:

ian@pR0BATR0N:~$ su
Password:
su: Authentication failure
Sorry.
ian@pR0BATR0N:~$
 
Old 03-06-2007, 02:09 PM   #6
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
I almost forgot, the mount command:

ian@pR0BATR0N:~$ mount
/dev/hda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
procbususb on /proc/bus/usb type usbfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.17-10-generic/volatile type tmpfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda5 on /mnt/windows type ntfs (ro)
ian@pR0BATR0N:~$
 
Old 03-06-2007, 02:18 PM   #7
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
ok this tells you your windows drive is mounted

/dev/sda5 on /mnt/windows type ntfs (ro)

as ro(read only) so you can't edit the files on the drive, you can copy them to your linux drive if you have another drive.


you've got bigger problems if you don't know root's password. Is this a box you set up?
 
Old 03-06-2007, 02:23 PM   #8
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
I am the admin and know the root password. I type the correct password when trying su, I just get that stupid authentication thing, sorry massage. But when doing a sudo <command>, I type the root password and everything works fine.

So my secondary drive is read only? It wasnt in Windblows...
 
Old 03-06-2007, 02:33 PM   #9
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
Yeah, mabey I can copy everything I want from my secondary drive into a dir in my other drive (which has my linux OS on it) . Then format my sda5 into an ext3 filesystem. What do you guys think?
 
Old 03-06-2007, 02:34 PM   #10
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
Is your windows drive a USB drive or SCSI drive?

You can copy everything over to your linux harddrive and reformat it as fat32 if you want to be able to use it in windows and linux. Linux write to NTFS is still a bit buggy.
 
Old 03-06-2007, 02:36 PM   #11
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
Its an internal 250 GB SATA drive. Would I be able to read and write to the newly formatted FAT32 drive?
 
Old 03-06-2007, 06:11 PM   #12
ncsuapex
Member
 
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
correct. If you plan on only using this drive for linux you can format it to ext3, but if you want to be able to read/write it in windows as well then format it in fat32.
 
Old 03-06-2007, 11:04 PM   #13
EYEdROP
Member
 
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92

Original Poster
Rep: Reputation: 15
What would be the commands be to move the files to my other hard drive, as well as the size of the files on the hard drive. Would I still be able to move the files if I cant access an NTFS file system?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
accessing ntfs drive ntisoldtech Linux - Newbie 3 04-26-2005 08:49 PM
Accessing a NTFS Raid-0 drive ShakyJake Slackware 2 10-19-2004 10:16 PM
getting ntfs support for accessing windows drive lokizen Linux - Newbie 25 08-25-2004 02:58 PM
Accessing a NTFS drive through wine? bassline Linux - Newbie 3 03-15-2004 03:45 PM
accessing c and d drive ntfs partitions from rh9.0 mani singh Linux - Software 5 02-27-2004 02:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 11:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration