LinuxQuestions.org
Help answer threads with 0 replies.
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 09-15-2003, 06:09 PM   #1
DDR extreme
LQ Newbie
 
Registered: Sep 2003
Distribution: Gentoo livecd for i686
Posts: 19

Rep: Reputation: 0
want to see my second ntfs harddrive in linux


I just started using Mandrake linux 9.1 just yesterday.
Well i want to be able to use my second harddrive which has all my back up files on it. Used to be winxp ntfs how do i mount it and see it to move over files. thanks2
I linux alot better than windows for stability
thankz in advance

Last edited by DDR extreme; 09-15-2003 at 06:29 PM.
 
Old 09-15-2003, 07:54 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"how do i mount it and see it to move over files. thanks2"

First decide what file system type you want on the drive. If you don't know I recommend that you use ext2.

Log in as root

Create a directory called /backup
mkdir /backup

Note: This next step will wipe everything off of your second drive. Either save your backups temporarily somewhere else or recreate the backups after you finish setting up the drive.
Then format the hard drive without mounting it. To format drive hdc as ext2 use this command:
mke2fs /dev/hdc1

You can then mount the drive with this command:
mount -t ext2 /dev/hdc1 /backup

At the point the drive is completely useable for Linux.

If you want to mount /dev/hdc1 automatically every time you boot then put an entry in /etc/fstab for /dev/hdc1.

see:
man mount
man fstab
man mke2fs
man mkdir


Last edited by jailbait; 09-15-2003 at 08:09 PM.
 
Old 09-15-2003, 07:59 PM   #3
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Assuming you use IDE...
mount /dev/hdxy /mnt/hd -t ntfs -o ro
x is a letter, a denotes Primary Master, b denotes Primary Slave, c denotes Secondary Master...ex: hda for Pri Master
y is the partition number, 1-4 denote primary/extended partitions. ex: hda1 (the windows C
5+denote logical partitions. ex: hda5
 
Old 09-15-2003, 08:09 PM   #4
DDR extreme
LQ Newbie
 
Registered: Sep 2003
Distribution: Gentoo livecd for i686
Posts: 19

Original Poster
Rep: Reputation: 0
thanks I have data on the drive but linux can't mount it so i want to know how to mount to transfer the data over to the first harddrive. then maybe i well reformat it to be used in linux easier.
the dive is formated with a ntfs file system on it and data I want to get off it
thanks
 
Old 09-15-2003, 08:17 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,751

Rep: Reputation: 272Reputation: 272Reputation: 272
"the dive is formated with a ntfs file system on it and data I want to get off it"

I answered your question backwards. I though you wanted to use the drive for backing up Linux. aaa gave the correct answer for what you want to do. I would create a directory called /backup and then use aaa's command:

mount /dev/hdc1 /backup -t ntfs -o ro
 
Old 09-15-2003, 11:15 PM   #6
DDR extreme
LQ Newbie
 
Registered: Sep 2003
Distribution: Gentoo livecd for i686
Posts: 19

Original Poster
Rep: Reputation: 0
i try what aaa said but it says no such file or directory. This is what i typed "mount/dev/hdb1 /mnt/hd -t ntfs -o ro". Also on my desktop there is hdb1 not mounted which i figure to be the second harddrive in the computer when I click on it. It trys to mount it buts says
"mount: wrong fs type, bad option, bad superblock on /dev/hdb1,
or too many mounted file systems"
 
Old 09-15-2003, 11:34 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
normally, your windows partitions are mounted automatically in mandrake under /mnt/win_c or something like that. See if there is anything in /mnt that looks like your windows drive.

Also, you can use mandrake control center ->mount point to have mandrake mount a drive for you. Make sure it is recognizing the file system type correctly.
 
Old 09-16-2003, 08:02 AM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
The folder /mnt/hd has to exist before you can mount. This command will create a /mnt/hd folder:
"mkdir /mnt/hd"
 
Old 09-16-2003, 08:12 AM   #9
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Also, if Mandrake hasn't done so already, you can add a line for your drive in the /etc/fstab file. This lets you mount the drive automatically on startup and makes mounting easier by a)allowing you to shorten the mount command, ex: mount /dev/hdb1 instead of the longer version, and b)lets you use gui tools to mount. Add a lnie like this to your fstab:

#device mount-point fs-type options dump pass
/dev/hdb1 /mnt/hd ntfs ro,umask=0 0 0

The umask=0 sets permissions to rwxrwxrwx (since it's a windows drive that doesn't support linux permissions, you have to specify them this way)
 
  


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
Installing linux on 2nd harddrive(dual boot) windows on seperate harddrive lysol Linux - Software 25 08-03-2004 10:33 AM
Copying Linux to another harddrive GameboyHippo Linux - General 7 06-24-2004 06:12 PM
Old board / new harddrive - can Linux do it ? Cyrus XIII Linux - Hardware 1 03-19-2004 12:41 PM
Need to replace full harddrive with new, larger harddrive pearlr Linux - Newbie 1 01-02-2004 01:59 PM
What should you know before ordering another harddrive for Linux? Mackan Linux - Hardware 6 11-26-2003 12:18 AM


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