LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices



Reply
 
Search this Thread
Old 10-08-2007, 06:13 AM   #1
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Rep: Reputation: 16
Unable to mount a secondary HD


Hey,

Just been trying to mount a second hard drive in Fedora Core,

I have edited /etc/fstab

I have tried using the mount command,

tried rebooting, tried setting the drive as master and slave.

The second drive contains a copy of Windows XP that I would very much like to be able to mount on my linux system to copy files over,

Does anybody have any suggestions?

Tom
 
Old 10-08-2007, 06:45 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Run the command "fdisk -l" as root and post back the output.
 
Old 10-08-2007, 06:50 AM   #3
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
the output is:

bash: fdisk: command not found

Thanks for the reply
 
Old 10-08-2007, 07:01 AM   #4
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by Tom "Techno" Earl View Post
the output is:

bash: fdisk: command not found

Thanks for the reply
You must run the command as root. If you did not install fdisk, then get the installer CD and install it.
 
Old 10-08-2007, 07:08 AM   #5
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
I have run the command as root, checked that it is installed, and checked for updates, and still nothing :-P
 
Old 10-08-2007, 07:10 AM   #6
ghostdancer
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 266

Rep: Reputation: 30
Quote:
Originally Posted by Tom "Techno" Earl View Post
I have run the command as root, checked that it is installed, and checked for updates, and still nothing :-P
Maybe is the path not set correctly. Try:

Code:
$> /sbin/fdisk -l
 
Old 10-08-2007, 07:13 AM   #7
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by Tom "Techno" Earl View Post
I have run the command as root, checked that it is installed, and checked for updates, and still nothing :-P
You must switch to root using "su -" and not just "su" if you want to inherit roots path.
 
Old 10-08-2007, 07:31 AM   #8
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729Reputation: 729
Fedora "hides" certain system commands (those in /sbin). Annoying......

In addition to solutions already given, you can add /sbin to your PATH variable. To do this permanently, you probably have to edit one of the startup scripts.
 
Old 10-18-2007, 01:51 PM   #9
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Code:
Disk /dev/hdb: 164.6 GB, 164696555520 bytes
255 heads, 63 sectors/track, 20023 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1       20022   160826683+   7  HPFS/NTFS

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          10       80293+  83  Linux
/dev/sda2              11         141     1052257+  82  Linux swap / Solaris
/dev/sda3             142         256      923737+  83  Linux
/dev/sda4             257        9729    76091872+   5  Extended
/dev/sda5             257        7436    57673318+  83  Linux
/dev/sda6            7437        8480     8385898+  83  Linux
/dev/sda7            8481        8741     2096451   83  Linux
/dev/sda8            8742        9002     2096451   83  Linux
/dev/sda9            9003        9104      819283+  83  Linux
That is the output of the command, the path was wrong
 
Old 10-18-2007, 08:56 PM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Edit /etc/fstab and add an entry similar to the one below
Code:
/dev/hdb1 /media/windows ntfs-3g defaults 0 0
 
Old 10-19-2007, 06:04 AM   #11
Tom "Techno" Earl
Member
 
Registered: Sep 2006
Posts: 37

Original Poster
Rep: Reputation: 16
Hi,

Thanks for the reply, the system is now trying to boot the hd, but it is saying that it has an unknown filesystem, I have done some research and it seems that this version of Linux does not have support for NTFS file systems...

Does anybody have any good software that I could use without having to recompile the kernel?

Thanks

Tom
 
Old 10-19-2007, 10:40 AM   #12
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You need to install a package called ntfs-3g. I think this package is automatically installed in Fedora 7, but I am not absolutely positive.
 
Old 10-19-2007, 10:54 AM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
No it doesn't. I have to build it into FC7 and FC6 by command
Code:
yum -y install ntfs-3g
ntfs-3g is not available to FC4 and older. (possibly FC5 too but can't be sure)

If the OP's intention is to copy the files only and the destination is a fat32 partition then there would be no need to install ntfs-3f, which is to assist writing on ntfs partitions. All modern Linux has no problem in reading a ntfs partition.

If this is the case the reddazz's instruction modified to
Code:
/dev/hdb1 /media/windows -t ntfs defaults 0 0
will fire it up.

I mark the modification red.

Last edited by saikee; 10-19-2007 at 10:56 AM.
 
  


Reply

Tags
drive, fc5, hard, hda, mounting, windows


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
Unable to Boot up from Secondary disk k1ll3r_x Linux - Newbie 4 05-29-2007 11:47 AM
Mount secondary HDD cdc5205 Linux - Newbie 11 01-25-2006 10:47 PM
mount secondary hdd martinez9049 Linux - Newbie 13 04-22-2005 10:59 PM
Mount Secondary EXT2 Drive StarSage Fedora 3 02-17-2005 12:17 AM
Can't Seem to Mount Secondary NTFS Drive Shoal Linux - Hardware 4 08-08-2004 08:55 PM


All times are GMT -5. The time now is 05:15 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration