LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2006, 11:39 AM   #1
schitzo1978
LQ Newbie
 
Registered: Dec 2005
Location: Montreal, Canada
Distribution: Fedora Core 4
Posts: 27

Rep: Reputation: 15
2 part question (ntfs and fdisk)


question:
1- when i run fdisk as root i get an error, fdisk doesnt exist ? yet i can use the gui hardware manager tool in Fedora Core 4 to see all the harddrives in the system.
what do u have to do to run fdisk? (also i log into shell as root).

2- i can mount my ntfs drive and run videos that i have on it from the command line using
vlc filename

but if open the application and then try to browse to the location where i have my files /mnt/windows , i do not see anything or get an error (yet i can still run them manually).
I have tried using the gui tool to log into the system as root (meaning i am logged in as my user, then i seelct that option and the root password box pops up). but that doesnt seem to work even though the little ion in the systray indicates that i am logged into the system as root temporarily.

thanks,
Schitzo1978
 
Old 02-22-2006, 11:54 AM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
1- when i run fdisk as root i get an error, fdisk doesnt exist ? yet i can use the gui hardware manager tool in Fedora Core 4 to see all the harddrives in the system.
what do u have to do to run fdisk? (also i log into shell as root).
By GUI hardware manager tool, do you mean qtparted or gparted? Because GUI hardware manager does not mean Disk partitioning tool (I've not used Fedora for a long time so I may be wrong).

Try running (as root)
Code:
/sbin/fdisk -l
Quote:
2- i can mount my ntfs drive and run videos that i have on it from the command line using
vlc filename
That may be because you are mounting the ntfs partition as root and the ordinary user (you) may not have enough permissions. You can mount ntfs drive via /etc/fstab file automatically (as user) during boot time and then run vlc player for any media files.

Tux,
 
Old 02-22-2006, 04:03 PM   #3
schitzo1978
LQ Newbie
 
Registered: Dec 2005
Location: Montreal, Canada
Distribution: Fedora Core 4
Posts: 27

Original Poster
Rep: Reputation: 15
can u please specify how to have the ntfs disk mounted automatically at boot time so that my regular user account can access it anytime ?

also can this be done for multiple ntfs partitions or only one at a time, please specify.
schitzo1978
 
Old 02-22-2006, 07:37 PM   #4
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by schitzo1978
can u please specify how to have the ntfs disk mounted automatically at boot time so that my regular user account can access it anytime ?
Well, you would need to do some text editing. I suggest you first make a directory anywhere you like...I generally do it in /mnt directory...Here's what I would do

Code:
mkdir /mnt/windows
Code:
chown <user>.<group> /mnt/windows
Replace <user>, <group> with appropriate user & group you have.

Code:
chmod -R 755 /mnt/windows
Open up your favorite text editor (if you don't have one yet, use gedit. remember you have to open gedit as root user.
Code:
gedit /etc/fstab
fstab file is the file that is read at boot time to mount any partitions listed there. You would have to know your device name (e.g /dev/hda1 or /dev/hdb1 or whatever). Since Linux has only experimental ntfs write support, my advice would be mount ntfs as read-only. Add the following line to /etc/fstab accordingly.

Code:
/dev/hdXY /mnt/windows ntfs auto,users,ro,umask=000 0 0
Then just open up your terminal and
Code:
mount /mnt/windows
You'll have your hard drive mounted, next time you restart, it will be mounted automatically.

Quote:
also can this be done for multiple ntfs partitions or only one at a time, please specify.
schitzo1978
Yes can be done for as many partitions as you have.

My advice,
Read up on Linux...about filesystems, how it is laid out, what goes where? Also get to use man pages and search (google, LQ) for answers. Read the postings here. The above commands that I've used all have man (manual) page where you can learn more options. Get a decent book on Linux and immerse yourself.

e.g
man mount
man chmod
man chown
man mkdir
man man

Good luck,
Tux,
 
Old 02-23-2006, 08:26 AM   #5
schitzo1978
LQ Newbie
 
Registered: Dec 2005
Location: Montreal, Canada
Distribution: Fedora Core 4
Posts: 27

Original Poster
Rep: Reputation: 15
ok thanks, tried it and it works great.
i am guess that if you want to have another ntfs disk or partition mounted you need a seperate mount mpoint for each one.

so
/mnt/windows
/mnt/windows1 ?

i tried mounting a second disk from the same mount point, but it jsut seems to forget about the first mount. It works well with the 2 mount points.
Is there a way to have mulitple ntfs disks mounted into 1 mount point?
thanks,
Eric.
 
Old 02-23-2006, 08:34 AM   #6
ethics
Senior Member
 
Registered: Apr 2005
Location: London
Distribution: Arch - Latest
Posts: 1,522

Rep: Reputation: 45
No, i don't think it's possible for 2 devices to share a mount point.

Like you tried, 2 mount points is the way to do it, it's really not that inconvienient.
 
Old 02-23-2006, 08:36 AM   #7
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Quote:
Originally Posted by schitzo1978
ok thanks
Not a problem...

Quote:
i am guess that if you want to have another ntfs disk or partition mounted you need a seperate mount mpoint for each one.
Yep you need separate mount points.
Quote:
so
/mnt/windows
/mnt/windows1 ?
Yes

Quote:
Is there a way to have mulitple ntfs disks mounted into 1 mount point?
No. You need separate mount points. If you want to mount everything in one place then you would have to delete the existing nfts partitions...combine the data and then mount it...I am sure you don't want to do that or do you?

Tux,
 
Old 02-26-2006, 03:13 PM   #8
schitzo1978
LQ Newbie
 
Registered: Dec 2005
Location: Montreal, Canada
Distribution: Fedora Core 4
Posts: 27

Original Poster
Rep: Reputation: 15
NTFS no longer recognized after kernel update using YUM, how to resolve ?

i updated my kernel using yum and my system doesnt seem to recognize ntfs anymore.
I originally setup the system to automatically mount 2 ntfs partitions (one drive and one partition) and this would give me access immediately to my media files on another drive.
After updating the kernel it seems that my Fedore Core 4 doesnt recognize NTFS anymore even it i try to run mount /dev/hdc1 /mnt/windows manually, it tells me that it doesnt recognize ntfs.

I have tried using yum to update the kernel module but it doesnt seem to work.
i use the comand (same command i used originally), but get the following!!!!

[root@localhost ~]# yum install kernel-module-ntfs-$(uname -r)
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: kernel-module-ntfs-2.6.15-1.1831_FC4
Nothing to do

can anyone point me to the right direction???
also i used yumex to see if i could install this package, i found it i installed it but it didnt change, so i went beck into yumex after a reboot and removed the package, now when i update in yumex i dont see that package listed anymore !!???
Schitzo1978
Montreal
 
Old 02-26-2006, 10:19 PM   #9
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,158

Rep: Reputation: 62
Well, since you updated your kernel, you also need to install the ntfs module for your upgraded kernel. Once you do that, system would mount the partitions automatically as before.

Look at the link below,

http://www.linux-ntfs.org/content/view/129/65/

You can download the rpm from there and install it. Make sure you pick one with a right kernel version.

Tux,
 
  


Reply



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
Problem with iptables, and a simple question about a NTFS part. Jorek Linux - Newbie 2 12-30-2005 02:05 PM
Mandraje 9.1 (?) with windows XP., Manadrake9.1 has tool 2 resize NTFS part inq_ah Mandriva 7 07-06-2005 05:02 PM
Dual HDD Interface Problem, Linux on SATA, NTFS Part on IDE HDD LILO Not Loading Blade44 Linux - Hardware 2 02-01-2005 06:56 PM
2 part question: Speeding up MDK9.1/GNOME question wardialer Linux - Newbie 6 10-14-2004 03:16 PM
cant use ntfs part as other than root keep Slackware 14 07-03-2003 12:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:35 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