LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-29-2004, 12:17 AM   #1
Keyser Sose
Member
 
Registered: Feb 2004
Distribution: Slackware 10
Posts: 46

Rep: Reputation: 15
Mounting Windows HD?


I can not get my win32 based harddrive to mount on Slackware 10

Heres my fdisk -l
Code:
root@j0sh:~# fdisk -l

Disk /dev/hda: 81.9 GB, 81964302336 bytes
240 heads, 63 sectors/track, 10587 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1         813     6146248+  83  Linux
/dev/hda2             814       10429    72696960   83  Linux
/dev/hda3           10430       10587     1194480   82  Linux swap

Disk /dev/hdb: 120.0 GB, 120000000000 bytes
240 heads, 63 sectors/track, 15500 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1               1       15500   117179968+   c  W95 FAT32 (LBA)
root@j0sh:~# mount /dev/hdb1 /mnt/windows
mount: mount point /mnt/windows does not exist
Am I doing anything wrong? Because /dev/hda2 will not show up either for /home/


And What CFDISK looks like


Code:
cfdisk 2.12a

                                         Disk Drive: /dev/hda
                                   Size: 81964302336 bytes, 81.9 GB
                        Heads: 240   Sectors per Track: 63   Cylinders: 10587

     Name           Flags         Part Type     FS Type              [Label]            Size (MB)
 ----------------------------------------------------------------------------------------------------
     hda1           Boot           Primary      Linux ext3                                6293.80
     hda2                          Primary      Linux                                    74441.69
     hda3                          Primary      Linux swap                                1223.15

Thanks In advance.
 
Old 06-29-2004, 04:28 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
You have to make the directory "/mnt/windows" first.

John
 
Old 06-29-2004, 11:04 AM   #3
Keyser Sose
Member
 
Registered: Feb 2004
Distribution: Slackware 10
Posts: 46

Original Poster
Rep: Reputation: 15
hehe nice, what about the /dev/hda2 though?

That will not mount.

Somehow i need to change the FS from linux to linux ext3?

But How?

Last edited by Keyser Sose; 06-29-2004 at 11:08 AM.
 
Old 06-29-2004, 11:16 AM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
The fact that your system actually starts (which I inferr it does as you were able to type the mount instructions) means that hda2 is actually mounted. My guess is that you fstab (type "cat /etc/fstab" to see it) looks something like:

/dev/hda2 /
/dev/hda1 /boot
/dev/hda3 swap

only startup (boot) information is on hda1, your linux system is on hda2. You cannot mount it because it is already mounted, and you cannot unmount it because it is necessary for the system to function.

If you want your windows and other partitions to mout automatically you should add them to fstab.
 
Old 06-29-2004, 11:25 AM   #5
Keyser Sose
Member
 
Registered: Feb 2004
Distribution: Slackware 10
Posts: 46

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by linmix
The fact that your system actually starts (which I inferr it does as you were able to type the mount instructions) means that hda2 is actually mounted. My guess is that you fstab (type "cat /etc/fstab" to see it) looks something like:

/dev/hda2 /
/dev/hda1 /boot
/dev/hda3 swap

only startup (boot) information is on hda1, your linux system is on hda2. You cannot mount it because it is already mounted, and you cannot unmount it because it is necessary for the system to function.

If you want your windows and other partitions to mout automatically you should add them to fstab.

But my /dev/hda2 is suppose to be /home/ which is 74gb??

So your pretty much saying i lost it?

When I try to mount it I get

trying to say wrong FS and/or bad superblock?



that command

root@j0sh:~# cat /etc/fstab
/dev/hda5 swap swap defaults 0 0
/dev/hda1 / ext3 defaults 1 1
/dev/hda6 /home/ ext3 defaults 1 2
/dev/hdb1 /mnt/windows vfat defaults 1 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
 
Old 06-29-2004, 11:26 AM   #6
Keyser Sose
Member
 
Registered: Feb 2004
Distribution: Slackware 10
Posts: 46

Original Poster
Rep: Reputation: 15
so why did it go from /dev/hda2/ to /dev/hda6?
 
Old 06-29-2004, 01:05 PM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Sorry, messed up there, but when I tried to edit my post I got a BSOD (yes, I was working under Windows) and everything started to crash.

BAck now, though on a stabler machine to answer your questions.

The reason for the shift from hda2 to hda6 is the partition type that has been created. Hda1-4 are primary partitions, hda5 and further extended partitions. Your system has been installed on one promary (hda1) and 2 extended partitions (hda5, hada6) and all these partitions are automatically mounted at startup. As /home is available to you (it is, isn't it?) you cannot mount it again: it is already mounted.

(Just in case you wondered, you don't have hda2-4 'cos you didn't create any more primary partitions since you didn't need any)

BTW, your windows partition is also mounted and accessible through /mnt/windows
 
Old 06-29-2004, 01:17 PM   #8
Keyser Sose
Member
 
Registered: Feb 2004
Distribution: Slackware 10
Posts: 46

Original Poster
Rep: Reputation: 15
Yes I see that, but i was also wondering why it was not showing up in Sysinfo (the /home/)

Thanks
 
Old 06-29-2004, 01:22 PM   #9
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Hmm, got me there. I'll try running it on my machine and see what it does. I'm puzzled at the fact that "cat /etc/fdisk" and "fdisk -l" should give different information.
 
  


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
mounting windows paul62 Debian 3 11-25-2005 09:20 PM
mounting windows HD afrm Linux - Software 4 02-11-2005 02:54 PM
Mounting windows lgarcia3 Linux - Newbie 2 01-11-2005 10:56 AM
mounting windows andym Linux - Newbie 7 05-28-2003 12:13 PM
Mounting under windows (XP) CobraMagic Linux - General 3 09-17-2002 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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