Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-06-2007, 01:06 PM
|
#1
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Rep:
|
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.
|
|
|
03-06-2007, 01:35 PM
|
#2
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
do these commands and post the output
ls -l /mnt/windows
mount
cd /mnt/windows
|
|
|
03-06-2007, 01:48 PM
|
#3
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
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?
|
|
|
03-06-2007, 02:00 PM
|
#4
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
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.
|
|
|
03-06-2007, 02:08 PM
|
#5
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
I always get this when trying to go into root:
ian@pR0BATR0N:~$ su
Password:
su: Authentication failure
Sorry.
ian@pR0BATR0N:~$
|
|
|
03-06-2007, 02:09 PM
|
#6
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
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:~$
|
|
|
03-06-2007, 02:18 PM
|
#7
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
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?
|
|
|
03-06-2007, 02:23 PM
|
#8
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
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...
|
|
|
03-06-2007, 02:33 PM
|
#9
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
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?
|
|
|
03-06-2007, 02:34 PM
|
#10
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
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.
|
|
|
03-06-2007, 02:36 PM
|
#11
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
Its an internal 250 GB SATA drive. Would I be able to read and write to the newly formatted FAT32 drive?
|
|
|
03-06-2007, 06:11 PM
|
#12
|
Member
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770
Rep:
|
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.
|
|
|
03-06-2007, 11:04 PM
|
#13
|
Member
Registered: Mar 2007
Location: Prescott, AZ
Distribution: Fedora 23 Workstation XFCE
Posts: 92
Original Poster
Rep:
|
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?
|
|
|
All times are GMT -5. The time now is 11:08 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|