LinuxQuestions.org
Review your favorite Linux distribution.
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 01-28-2009, 02:19 PM   #1
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Rep: Reputation: 0
Mounting Windows partition problem


I am two weeks into this, did a lot of searching and coming up empty handed.

IBM Thinkpad T43, 160 gb Seagate hard drive
Running Mandriva 2009 One

I want to mount the windows XP partition (hda1) so I can get at those documents.

In terminal I put "mkdir /mnt/win" <enter>

Then I typed "mount -t ntfs /dev/hda1 /mnt/win"

I get message :special device /dev/hda1 does not exist"

The hda1 partition does exist, this installation was done on the same disk as Windows and previously had a Fedora 8 installation (briefly).

Any help would be gratefully appreciated,

shrinkwrap
 
Old 01-28-2009, 02:24 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
Check your partition structure by using the fdisk command. Could you post the results of the fdisk command?

sudo fdisk -l

--------------------
Steve Stites
 
Old 01-28-2009, 03:59 PM   #3
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Here is the results as requested!!

I hope this tells you something, it does look a mess to my untrained Linux eyes!

shrinkwrap


240 heads, 63 sectors/track, 20673 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0xd911541d

Device Boot Start End Blocks Id System
/dev/sda1 * 1 15605 117973768+ 7 HPFS/NTFS
/dev/sda2 20128 20673 4127760 c W95 FAT32 (LBA)
/dev/sda3 15606 20127 34186320 5 Extended
/dev/sda5 15606 16688 8187448+ 83 Linux
/dev/sda6 16689 17229 4089928+ 82 Linux swap / Solaris
/dev/sda7 17230 20127 21908848+ 83 Linux

Partition table entries are not in disk order

Disk /dev/sdb: 1006 MB, 1006632960 bytes
65 heads, 32 sectors/track, 945 cylinders
Units = cylinders of 2080 * 512 = 1064960 bytes
Disk identifier: 0xc3072e18

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 946 983024 6 FAT16
Partition 1 has different physical/logical endings:
phys=(960, 64, 32) logical=(945, 14, 32)
[root@localhost stuart]#
 
Old 01-28-2009, 04:38 PM   #4
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
It is /dev/sda1 not /dev/hda1. There was a change in the kernel that causes some hard disks to be sda that used to be hda.

This is confirmed by
Quote:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 15605 117973768+ 7 HPFS/NTFS
If you're going to be accessing your windows partition a lot, you can set it up to be mounted automatically at boot by adding the line
Code:
/dev/sda1	/media/windows	ntfs-3g	     defaults	       0       0
to /etc/fstab. You need to be root (sudo) to do this. That would mount in /media/windows as opposed to /mnt/win, which I prefer personally.

ntfs-3g is the filesystem. If you're still getting errors, make sure you have that driver installed.

Last edited by digerati1338; 01-28-2009 at 04:42 PM.
 
Old 01-28-2009, 05:31 PM   #5
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Some progress

I do apologize for my incredible newbiness...

anyway, I did as suggested, see that things are now there (I did a cd /mnt/win and a ls -all) but I still cannot seem to access the documents. When I seek to open it up I am told "cannot mount preload IBM c".

How exactly am I supposed to access these docs.

I am on the very early, steep part of this learning curve on Linux, sometday I will pay back this forums kindnessess!!

shrinkwrap
 
Old 01-28-2009, 07:47 PM   #6
pentode
Member
 
Registered: Dec 2005
Location: Oregon
Distribution: Debian Testing
Posts: 488

Rep: Reputation: 38
It depends on the type of document. Just as in Windows, you need an application that can open that file. What type of file are you trying to open?
 
Old 01-28-2009, 11:05 PM   #7
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Acessing Windows

I am tryin to open MS Word docs, using Open Office. But when I go to the C drive it says "Can Not mount".

Perhaps my needs are too basic, I have tried to read a number of primers, completed an course that HP had online, but I suspect there is something very basic I am missing.

shrinkwrap
 
Old 01-28-2009, 11:32 PM   #8
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
Did you make sure you have the correct driver? Try:
Code:
#sudo aptitude install ntfs-3g

#sudo mount -t ntfs-3g /dev/sda1 /mnt/win
This will (as root) install the ntfs-3g drivers (or tell you they are already installed), and then mount an NTFS-3g filesystem at /dev/sda1 on /mnt/win.

If that doesn't work, post any errors the second command returns.
 
Old 01-29-2009, 05:49 PM   #9
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
I wasn't sure whether to do this as ROOT, tried it both ways with the following results:

[stuart@localhost ~]$ #sudo aptitude install ntfs-3g
[stuart@localhost ~]$ #sudo mount -t ntfs-3g /dev/sda1 /mnt/win
[stuart@localhost ~]$ su
Password:
[root@localhost stuart]# sudo aptitude install ntfs-3g
sudo: aptitude: command not found

When I searched for "aptitude" in software I was told that:

Sorry, the following package cannot be selected:
- aptitude-0.4.4-3mdv2008.1.i586 (due to unsatisfied libapt-pkg-libc6.7-6.so.2)[/COLOR]

I don't even know if this is what is needed

Still can't get to the windows portion; Is there some tutorial that will help me leap this barrier??

shrinkwrap
 
Old 01-29-2009, 06:54 PM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,871

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
You're using Mandriva, right? You created a directory /mnt/win to access your windows files. When you are in a terminal/konsole and run the commands:

cd /mnt/win/
ls -l

do you see file names?

If you do, then just open konqueror and navigate to the files, if you put an entry in fstab for /mnt/win this should work.

Quote:
anyway, I did as suggested, see that things are now there (I did a cd /mnt/win and a ls -all) but I still cannot seem to access the documents. When I seek to open it up I am told "cannot mount preload IBM c"
How exactly are you trying to access these documents?

Quote:
But when I go to the C drive it says "Can Not mount".
What does that mean? Go to the C drive.
 
Old 01-29-2009, 08:02 PM   #11
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
My bad, I didn't notice you were on Mandriva. The aptitude command is for debian based package systems. I believe Mandriva is RPM based, so you need something along the lines of yum. Any package manager you have will do. The other instructions still apply though, you just need to use the correct package system.

As a side note, the # is not part of the command. That is the symbol for the prompt. And if you use the su command, there is no need for sudo. sudo makes you a super user for just that command.

Last edited by digerati1338; 01-29-2009 at 08:03 PM.
 
Old 01-29-2009, 10:44 PM   #12
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Konqueror?

Ah, I know this is goin to get better, but...

Anyway, "Konqueror?", isn't that in the KDE package, I am using Gnome. When I look at "Places" I have choice of:

Computer
CD/DVD Creator
IBM Pre-load
8.4 ggb Media (Linux partition
CDRW/DVD Drive
HP v100W (USB jump drive).

How do I access files, where is my Windows Explorer equivalent? Send me the link to the book?

Thanks for all your perseverance

shrinkwrap
 
Old 01-29-2009, 10:58 PM   #13
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Can't mount in MCC

So I found the Contrl Center option for managing disk partitions and see that the windows partition is labelled as /mnt/windows. But when I ask to mount it ia am told "mounting partition UUID=76B87FF7B87FB469 in directory /mnt/windows failed". Then the dialogue box freezes and can only close it with the X.

shrinkwrap
 
Old 01-29-2009, 11:15 PM   #14
digerati1338
Member
 
Registered: May 2007
Location: CO
Distribution: Ubuntu
Posts: 152
Blog Entries: 1

Rep: Reputation: 18
The "places computer" you just listed are the equivalent of windows explorer. If you go to the address bar in that program and type /mnt it will take you there. In KDE this is called konqueror. In Gnome, it might be nautilus or something like that.

Quote:
when I ask to mount it ia am told "mounting partition UUID=76B87FF7B87FB469 in directory /mnt/windows failed". Then the dialogue box freezes and can only close it with the X.
To diagnose problems like this, the best way is to provide the terminal output as this should probide more error information than the window. Try running this as root and post the output:
Code:
# mount /mnt/windows
While you're at it, it might be useful to post the contents of your /etc/fstab.
 
Old 01-30-2009, 11:01 AM   #15
shrinkwrap
LQ Newbie
 
Registered: Jan 2009
Posts: 8

Original Poster
Rep: Reputation: 0
<To diagnose problems like this, the best way is to provide the terminal output as this should probide more error information than the <window. Try running this as root and post the output:


[[COLOR="DarkRed"]root@localhost stuart]# mount /mnt/windows
$LogFile indicates unclean shutdown (0, 0)
Failed to mount '/dev/sda1': Operation not supported
Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by
clicking on the 'Safely Remove Hardware' icon in the Windows
taskbar then shutdown Windows cleanly.

Choice 2: If you don't have Windows then you can use the 'force' option for
your own responsibility. For example type on the command line:

mount -t ntfs-3g /dev/sda1 /mnt/windows -o force

Or add the option to the relevant row in the /etc/fstab file:

/dev/sda1 /mnt/windows ntfs-3g force 0 0

<While you're at it, it might be useful to post the contents of your /etc/fstab.

# Entry for /dev/sda7 :
UUID=5ff961d4-dfd9-11dd-bbeb-0fc6484a3a80 / ext3 noatime 1 1
/dev/cdrom /media/cdrom auto umask=0,users,iocharset=utf8,noauto,ro,exec 0 0
# Entry for /dev/sda1 :
UUID=76B87FF7B87FB469 /mnt/windows ntfs-3g user,dev,suid,exec,"Give\040write\040access\040to\040ordinary\040users" 0 0
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
UUID=b026da18-dfd6-11dd-aa6a-d5326494f245 swap swap defaults 0 0

And then there is an /etc/fstab.old file and when I tryt o read it it says that no application is availabe to read it, presumably I need to rename it to get rid of the suffix, but rename is not an option on right clicking. This "old" file was created yesterday afternoon when I was on task.

Again, I appreciate the guidance!

shrinkwrap
 
  


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
Problem in mounting windows partition in linux fedora core 4 mamtasahai1 Linux - Hardware 1 01-24-2007 01:09 PM
Mounting windows partition drguitarum2005 Linux - General 15 02-28-2005 04:53 AM
Problem with mounting windows partition vinayachandra Linux - Newbie 4 01-12-2005 03:43 PM
problem mounting windows partition r.stiltskin Debian 5 10-21-2004 03:59 AM
mounting a windows partition? codename000 Linux - Newbie 1 04-15-2003 10:27 PM


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