Reading Windows Files/drives In Ubuntu
Tweet
#1
Posted 01 April 2008 - 07:26 AM
I'm a complete linux noob i'm afraid.
I need to back things up (again) before I can wipe my hard drive completely and start again so any help in mounting and accessing those drives would be appreciated.
I'm not sure if they're NTFS or FAT, I have the feeling that for some reason the partition is fat and the other is default ntfs but i'm not 100% certain. When I go into browser I can see what it claims is a 200gb hard drive (sounds about right) but it tells me when I click on it that it isn't able to access it, it isn't mounted properly.
Help!
thanks!
#2
Posted 01 April 2008 - 08:44 AM
if its an IDE drive
sudo - su
enter your password (live cd ?? it may not ask)
type mkdir /mnt/windows1
mount /dev/hda1 /mnt/window1
if its a sata drive (or SCSI)
do the same but the mount command is
mount /dev/sda1 /mnt/window1
post any error that pop up and we can go from there... with out more information its hard to say... also that live cd may not have ntfs3g and in that case will not be able to mount the NTFS partition...
#3
Posted 01 April 2008 - 09:32 AM
iccaros, on Apr 1 2008, 02:44 PM, said:
if its an IDE drive
sudo - su
enter your password (live cd ?? it may not ask)
type mkdir /mnt/windows1
mount /dev/hda1 /mnt/window1
if its a sata drive (or SCSI)
do the same but the mount command is
mount /dev/sda1 /mnt/window1
post any error that pop up and we can go from there... with out more information its hard to say... also that live cd may not have ntfs3g and in that case will not be able to mount the NTFS partition...
Ok,
Hda1 - Special device hda1 does not exist
Same for sda1
Either they have different names or it's unable to read/detect ntfs.
Suggestions?
#4
Posted 01 April 2008 - 09:36 AM
purple monkfish, on Apr 1 2008, 07:32 AM, said:
iccaros, on Apr 1 2008, 02:44 PM, said:
if its an IDE drive
sudo - su
enter your password (live cd ?? it may not ask)
type mkdir /mnt/windows1
mount /dev/hda1 /mnt/window1
if its a sata drive (or SCSI)
do the same but the mount command is
mount /dev/sda1 /mnt/window1
post any error that pop up and we can go from there... with out more information its hard to say... also that live cd may not have ntfs3g and in that case will not be able to mount the NTFS partition...
Ok,
Hda1 - Special device hda1 does not exist
Same for sda1
Either they have different names or it's unable to read/detect ntfs.
Suggestions?
After you have root access try typing fdisk -l
That may show what your HD label is.
#5
Posted 01 April 2008 - 09:45 AM
It's told me: dev/hda is write protected, mounting read only
Progress? maybe...
Trying to mount SDA (which is what it claims my large file system is it says: Cannot read superblock.
This post has been edited by purple monkfish: 01 April 2008 - 09:49 AM
#6
Posted 01 April 2008 - 04:26 PM
This means that hda is your cdrom/dvd what ever
and sda is your harddrive, but NTFS has not unmounted it or has damaged it
can you as root type ntfs and hit tab twice and post what ntfs tools are showing up on your system.. we may be able to fix this..
superblocks are were the drive markes sections in a partition.. you can normally fix superbloc issues in a UNIX FS, but I am not soure about NTFS
#7
Posted 02 April 2008 - 04:44 AM
ntfscat ntfscmp ntfsfix ntfsls ntfsundelete
ntfsclone ntfscp ntfsinfo ntfsmount
Ahh, partition thing makes sense, as I said, my harddrive was partitioned into two parts because my father in his infinite wisdow decided it was better than having two independent drives (bah, bah I say. I would have prefered two drives so I could access at least one of the damned things)
#8
Posted 02 April 2008 - 08:47 AM
please run fdisk -l /dev/sda
and see what partitions are listed
then run ntfsfix /dev/sda and see what it tells your, please post the output (a simple way of doing this is
ntfsfix /dev/sda > /tmp/fixntfs.txt and post the contents of that file....
some light reading.. ntfsfix
#9
Posted 02 April 2008 - 02:02 PM
root@ubuntu:/home/ubuntu# ntfsfix /dev/sda
Mounting volume... Failed to startup volume : Invalid argument
FAILED
Attempting to correct errors... FAILED
Failed to startup volume : Invalid argument
Volume is corrupt. You should run chkdsk.
That, doesn't look good.
#10
Posted 02 April 2008 - 08:42 PM
so as soon as I get that done I'll test these command on my NTFS partition
#11
Posted 02 April 2008 - 10:03 PM
stevelinux ~ # fdisk -l /dev/hda
Disk /dev/hda: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 10 80293+ 83 Linux
/dev/hda2 11 141 1052257+ 82 Linux swap / Solaris
/dev/hda3 142 3738 28892902+ 83 Linux
stevelinux ~ #
but yours would be sda not hda
#12
Posted 03 April 2008 - 01:17 AM
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x69737369
This doesn't look like a partition table
Probably you selected the wrong device.
Device Boot Start End Blocks Id System
/dev/sda1 ? 116388 126889 84344761 69 Unknown
Partition 1 does not end on cylinder boundary.
/dev/sda2 ? 105915 222310 934940732+ 73 Unknown
Partition 2 does not end on cylinder boundary.
/dev/sda3 ? 1 1 0 74 Unknown
Partition 3 does not end on cylinder boundary.
/dev/sda4 1 213826 1717556736 0 Empty
Partition 4 does not end on cylinder boundary.
Partition table entries are not in disk order
Hmm..
#13
Posted 03 April 2008 - 04:53 PM
the bad news is that you need to chkdisk from a windows (same version that formated)
this is because NTFS is not documented from microsoft and all of the Linux drivers are created by hacking the drive..
now you can use vmware or virtual box to host the windows and tell it that its disk is a real partition..
you can for fun run ntfsfix on /dev/sda1 and on /dev/sda2
#14
Posted 04 April 2008 - 07:03 AM
So, step by step.. i'd need to access windows and run chkdsk, then run virtualbox? What is that? remember, i'm a noob lol.
Both sda1 and sda2 give me the same response, run chkdsk, drive corrupt.
#15
Posted 05 April 2008 - 02:50 PM
ok..
forget the Virtual machine part, on latter look it seams that only VMware workstation lets you mount a real drive...
so if you have another windows box, then a great tool all computer people need is a IDE or sata to usb adaptor
since you have sata drives this is my favourite http://www.crazypc.c...lacx-95470.html
plug in the adaptor into the other machine, and plug in the hardrive. windows should see the drive if not.. then you how important is the data on the drive?
Note: you do not need to worry about virus on a second drive if you do not run any software from the drive..
right click on the drive and run check disk for errors..
this should fix the issues..
now assuming all is good with the drive then you can try to run WinClam to look for viruses..
if the harddrive is 2 or more years old, it may just be a bad harddrive and not a virus..

Sign In »
Register Now!
Help

Back to top
MultiQuote