LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-14-2003, 08:53 PM   #1
uneffected
LQ Newbie
 
Registered: Dec 2003
Location: Alberta, Canada
Distribution: Mandrake 9.2
Posts: 12

Rep: Reputation: 0
Linux equivlent of D:\


Hey, i have a 120gb drive on IDE2, with NTFS and linux partitions.. want to mount it so i can get ahold of the Windows files.. what would be the equivelent of D:\

/dev/hdXX /mnt/X ntfs users,owner,ro,umask=000 0 0

I do believe that my linux partitions are after my NTFS.
What would be X's be?

TIA.
 
Old 12-14-2003, 08:54 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Post the output of
fdisk -l /dev/hda



Cheers,
Tink
 
Old 12-14-2003, 09:14 PM   #3
uneffected
LQ Newbie
 
Registered: Dec 2003
Location: Alberta, Canada
Distribution: Mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
sorry Tink, coulden't get the output .. i assume you ment the DOS command fdisk, and the switch letter "L" as in Larry.. diden't work..
but i have this output, hope it helps.

C:\ 1- Primary Fat32 (windows)
D:\ 1- Non-Dos -15000mb -linux partition (don't know which one though)
2- Non-Dos -500mb - Again Linux, don't know.
3- NTFS - 30000mb - The partition i want to mount.

Thus, my linux partitions are BEFORE my NTFS on D:\

Hope this helps solve it.
 
Old 12-14-2003, 09:31 PM   #4
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 746

Rep: Reputation: 31
Typically, hda is the first hard drive, hdb is the second, hdc the third, etc.

Partitions are numbers following the letters. hda1 is your first partition on your first drive, hda2 is the second on the first drive, hdb3 is the third partition on the second drive. Pretty simple once you get used to the idea that drives and partitions are folders. Also avoids the old windows problem of "moving" drives...if you add another cdrom drive or similar.

As for the /mnt/X portion, the 'X' is up to you. All you have to do is make sure there is a directory in /mnt that matches /mnt/X. This is a nice feature, as it allows you flexibility in your naming scheme. In fact, it offers more than that, as you don't even have to mount it in the /mnt directory. It's not always a good idea, for security reasons, but you could mount a drive in your /home directory, or (like debian does) in the / directory.
 
Old 12-14-2003, 10:28 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I meant the output of the linux fdisk command.



Cheers,
Tink
 
Old 12-15-2003, 01:28 AM   #6
krussell
Member
 
Registered: Jul 2003
Location: dhaka
Distribution: Slackware 11 (fixed), MEPIS
Posts: 241

Rep: Reputation: 30
C:\ 1- Primary Fat32 (windows) : SHOULD BE hda1
D:\ 1- Non-Dos -15000mb -linux partition (don't know which one though): SHOULD BE hda5
2- Non-Dos -500mb - Again Linux, don't know.: hda6
3- NTFS - 30000mb - The partition i want to mount. : hda7

/dev/hda7 /mnt/ntfs ntfs noauto,owner,user,ro 0 1
this should do the trick

BUT NEVER TRY TO WRITE ANYTHING IN THE NTFS PARTITION.
 
Old 12-15-2003, 09:56 AM   #7
BrianNJ
Member
 
Registered: Jul 2003
Distribution: Gentoo 2004.0
Posts: 157

Rep: Reputation: 30
.... and if you want to write to hda7, you should reformat it to FAT32. it's the easiest way to have it be readable by both windows and linux. of course formatting only works if there's no data on it you want to keep.
 
Old 12-15-2003, 07:31 PM   #8
uneffected
LQ Newbie
 
Registered: Dec 2003
Location: Alberta, Canada
Distribution: Mandrake 9.2
Posts: 12

Original Poster
Rep: Reputation: 0
woulden't the partition I want to mount be "hdb3" not "hdb7", since i only have a total of 4 partitions on both drives.. if my logic is correct the 3rd partition on the second drive should be "hdb3", as indicated by scott_R... please correct me if i am wrong.
 
Old 12-15-2003, 08:51 PM   #9
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Only if you didn't have a extended partition.
As soon as one of those pops in the numbering
changes.
Code:
Primary1: hda1
Primary2: hda2
Extended: hda4
Logical1: hda5

Cheers,
Tink
 
  


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
What is the equivlent of this directory in suse? /etc/rc.d/init.d abefroman SUSE / openSUSE 1 05-08-2005 04:56 PM
What is the equivlent of locate and updatedb in suse? abefroman SUSE / openSUSE 2 05-07-2005 07:13 PM
$$var Equivlent in JavaScript HappyDude Programming 2 01-02-2005 02:05 AM
whats the "chkdsk /f" equivlent on linux ? perry Linux - Software 1 05-27-2004 07:59 PM
What is the linux equivlent of terminal services smurf Linux - Networking 5 04-15-2003 01:51 PM


All times are GMT -5. The time now is 02:36 PM.

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