Jump to content

Trying to read Drives


ted_zas
 Share

Recommended Posts

I know I should of backed up the files. Lets say dumb and not as wise.

 

Recently my PC blew a cap on the motherboard of an older PC that had two hard drives in it. The drives had Win 98 and Linux (Mandrake) partitions. Somehow in my trials I installed Linux on both drives. They worked and it worked well (for me anyhow - someone that knows what they are doing may have other opinions).

 

Since I am sure the hard drives are good I purchased another (not as old) PC that had a drive with XP in it.

 

So I took the two hard drives from my blown unit and attempted to try running the new PC with them in it. I had removed the HD that came with it and installed my HDs one at a time in it. I did check (and switch and reswitch) the jumpers on the drives. All to have No Luck with reading the drives.

 

I then put the XP drive back into the new PC and installed one of the old hard drives as a slave. No Luck. The MANAGE - DISK MANAGEMENT window would see the drive as being partitioned but not assign a letter to it or allow me to assign a letter to it. I did the same with the other drive with the same results.

 

Then got the bight idea of trying to do this with a USB AUX drive by removing the USB HD and replacing it with one of my old HDs. XP saw it but same results. NONE.

 

Now I did not want to mess up the XP and its NTFS (?) so I purchased a brand new hard drive, installed it in my new PC as a secondary and loaded Mandrake. I knew that this would see the files because in my old system it saw all the files on my HDs. It saw what I had on the USB Aux.

 

Since I have two HDs in the new PC. One with XP and the secondary one with Mandrake I planned on using the USB to read the old HDs.

 

So I am attempting to use the USB method / connection to get to the files with Mandrake.

 

However now I feel a lot dumber than before this entire mess started. For some reason I am not able to read any of the disks. I go to what I think are the appropiate areas to see the drives and all I can see are the files for the user. I am signed on as the administrator.

 

Mandrake comes up great. In fact it works faster and better in start up / shut down than the XP. So I am fairly sure that the problem lies with the person typing this request for help.

 

I am sure there is a simple way to get to the files on the old HDs I'm just not there yet.

 

Any and all advice is sure appreciated.

 

Thanks for all the help.

 

ted

 

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Some information for you.

Windows refuses to read partition information that is not native to it: that means only fat and nt partitions. Linux, unix, and others, on the other hand, do read partition information, whether they use those native or not. So there was nothing wrong with your drives, just windows.

 

With 2006, usb devices show live when attached. You should be able to open the device in a file manager and move whatever you want. But, you have not told us what your original partition formation was. Having an installation span across 2 hard drives is not all that unusual if the drives are the older smaller ones. You may have / and /usr on a drive and /home on the other. I don't know, and you need to remember. When you say the user files, do you mean /home or /usr? Let's try to talk in linux and not windows. There is no such thing as a "c" drive, only drives located by the bios: hda, hdb, hdc, hdd, or sda, sdb, etc. Your data is there, you just are not sure where to look. Why not post what you see, and we can sort thru it.

Link to comment
Share on other sites

Hello,

 

If I do this right the sanpshot should show that on my new PC the Primary drive is Windows. The second drive I partitioned to be Windows and Linux (Mandrake 2006). The boot window from the mnadrake software is on the first drive.

 

I have one of the old drives (from my blown PC) inserted in an USB hard drive storage box. I have tried both old hard drives in the box. Linux apparently does not see either of them. I am sure they are good and the data is there. I am just as sure that Mandrake has the ways to read the files it is the operator that ahs the problem. I sure do apprecaite the help. ted

 

just in case it does not show

DEVICE DIRECTORY TYPE TOTAL FREE USED

dev/hdb6/ ext3 5.8 3,5 2.3

dev/hdb8 /home ext3 23.7 23.5 148.7 m

dev/hda1 /mnt/win_c 19

dev/hdb1 /mnt/win_c 37.9

dev/hdb5 /mnt/win_d vfat

 

I do not appear able to see the USB drive that has the hard drive?

 

I hope this goes thru. thanks.

Link to comment
Share on other sites

Whats the contents of your /etc/fstab? Also, make sure the harddrake service is running, because this is what detects USB disks. Normally it should be under something like /mnt/removable so check what directories exist in /mnt in case one is there, but it's not automatically being mounted at boot.

Link to comment
Share on other sites

Hi,

 

As you can tell a calling me a newbie would be a boost to my status. I finally got to the file. Here is a list of its contents

 

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/hdb6 / ext3 defaults 1 1

/dev/hdb8 /home ext3 defaults 1 2

/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0

/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0

none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

/dev/hdb1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0

/dev/hdb5 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

none /proc proc defaults 0 0

/dev/hdb7 swap swap defaults 0 0

 

I'm not sure of if anythig like a '/dev/xxx/' should be in front of the '/mnt/removable

 

Thanks for your patience and help.

ted

Link to comment
Share on other sites

What version of Mandrake/Mandriva are you running? I would expect that when you plug the USB drive in, it will add an entry to the bottom of the /etc/fstab file. Something like:

 

/dev/sda1 /mnt/removable...........

 

the dots symbolising the rest of the mount line and various settings. Check this, if not, we need to make sure all relevant services are running. So, please post the output from this command:

 

su (enter root password when prompted)
chkconfig --list

 

then we can see what services are enabled/disabled.

Link to comment
Share on other sites

Hi,

 

As you can tell a calling me a newbie would be a boost to my status. I finally got to the file. Here is a list of its contents

 

# This file is edited by fstab-sync - see 'man fstab-sync' for details

/dev/hdb6 / ext3 defaults 1 1

/dev/hdb8 /home ext3 defaults 1 2

/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0

/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0

none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0

/dev/hda1 /mnt/win_c vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

/dev/hdb1 /mnt/win_c2 ntfs umask=0,nls=iso8859-1,ro 0 0

/dev/hdb5 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850 0 0

none /proc proc defaults 0 0

/dev/hdb7 swap swap defaults 0 0

 

I'm not sure of if anythig like a '/dev/xxx/' should be in front of the '/mnt/removable

 

Thanks for your patience and help.

ted

 

 

Hello, I am not that confident at what is going to happen when I do this so I will attempt to post the data in steps.

I am running Mandrake 2006 DE. I think it means the December edition from the linux shop I gotthe disks from. Before my PC blew this did see the USB drive Ihad connected. When I looked it showed all the files in a manner that windows does. After I reload it into a different computer it does not even show the drives it see as icon (folders) just as hda1 etc.

 

The data / services are

[ted@localhost Desktop]$ su

Password:

[root@localhost Desktop]# ls /mnt/

cdrom/ cdrom2/ floppy/ win_c/ win_c2/ win_d/

[root@localhost Desktop]# chkconfig --list

acpi 0:off 1:off 2:on 3:on 4:on 5:on 6:off

acpid 0:off 1:off 2:off 3:on 4:on 5:on 6:off

alsa 0:off 1:off 2:on 3:on 4:on 5:on 6:off

atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off

cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off

dm 0:off 1:off 2:off 3:off 4:off 5:on 6:off

haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off

harddrake 0:off 1:off 2:off 3:on 4:on 5:on 6:off

hplip 0:off 1:off 2:on 3:on 4:on 5:on 6:off

iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off

keytable 0:off 1:off 2:on 3:on 4:on 5:on 6:off

kheader 0:off 1:off 2:on 3:on 4:off 5:on 6:off

mDNSResponder 0:off 1:off 2:off 3:on 4:on 5:on 6:off

mandi 0:off 1:off 2:on 3:on 4:on 5:on 6:off

messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off

netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off

netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

network 0:off 1:off 2:on 3:on 4:on 5:on 6:off

nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off

nifd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

ntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

numlock 0:off 1:off 2:off 3:on 4:on 5:on 6:off

oki4daemon 0:off 1:off 2:off 3:off 4:off 5:off 6:off

partmon 0:off 1:off 2:off 3:on 4:on 5:on 6:off

portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off

rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off

shorewall 0:off 1:off 2:on 3:on 4:on 5:on 6:off

sound 0:off 1:off 2:on 3:on 4:on 5:on 6:off

syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off

xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off

xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off

 

xinetd based services:

cups-lpd: off

cvs: off

rsync: off

[root@localhost Desktop]#

 

I hope this helps. I will attempt the changes you suggested then hopefully add to this. I am sending this now so I do not lose it.

 

Thanks for all the help. ted

Link to comment
Share on other sites

OK, you're services are running so that's good. What I would do is boot the machine with the USB disk disconnected. Then, when the machine is booted, connect the drive to the system, and then check /var/log/messages to see what it says when this device was connected to the system.

 

It will help as it might show an important error.

Link to comment
Share on other sites

Hello, I attempted the /var/log/messages and since I did not get any type of log statement I am sure I am missing some steps. I then followed the 'lsmod' suggestion and receieved the following. I would of deleted most of it and only copied what I think is important but that is why I am in trouble. If I knew what is important I would know how to get what I am looking for. So what follows is what popped up on the screen. Sorry for all the unnecessary data.

 

I did power the PC up with the USB disconnected and then connected it after everything was running.

 

[ted@localhost Desktop]$ su
Password:
[root@localhost Desktop]# ls
Screenshot-1.png  yelp.desktop
[root@localhost Desktop]# /var/log/messages
bash: /var/log/messages: Permission denied
[root@localhost Desktop]# ls /mnt/
cdrom/  cdrom2/  floppy/  win_c/  win_c2/  win_d/
[root@localhost Desktop]# ls /var/log/messages
/var/log/messages
[root@localhost Desktop]# ls /var/log/messages
/var/log/messages
[root@localhost Desktop]# /var/log/messages
bash: /var/log/messages: Permission denied
[root@localhost Desktop]# /mnt/
bash: /mnt/: is a directory
[root@localhost Desktop]# /etc/fstab
bash: /etc/fstab: Permission denied
[root@localhost Desktop]# /s /etc/fstab
bash: /s: No such file or directory
[root@localhost Desktop]# ls /etc/fstab
/etc/fstab
[root@localhost Desktop]# lsmod
[root@localhost Desktop]# lsmod
Module				  Size  Used by
sg					 34044  0
raw					 6592  1
md5					 3584  1
ipv6				  234016  8
snd_seq_dummy		   2532  0
snd_seq_oss			31136  0
snd_seq_midi_event	  5696  1 snd_seq_oss
snd_seq				46960  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss			48960  0
snd_mixer_oss		  16896  1 snd_pcm_oss
snd_ens1371			20224  0
gameport			   11112  1 snd_ens1371
snd_rawmidi			19616  1 snd_ens1371
snd_seq_device		  6828  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd_ac97_codec		 83900  1 snd_ens1371
snd_pcm				79784  3 snd_pcm_oss,snd_ens1371,snd_ac97_codec
snd_timer			  20548  2 snd_seq,snd_pcm
snd_page_alloc		  8392  1 snd_pcm
snd					46116  10 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_ens1371,snd_rawmidi,snd_seq_de
vice,snd_ac97_codec,snd_pcm,snd_timer
soundcore			   7008  1 snd
ppdev				   7364  0
lp					 10024  0
parport_pc			 32612  1
parport				31976  3 ppdev,lp,parport_pc
ipt_IFWLOG			  2788  1
ipt_psd				43428  1
ip_set_iptree		   5544  2
ipt_REJECT			  4256  4
ipt_LOG				 6272  7
ipt_state			   1312  7
ipt_pkttype			 1184  4
ipt_set				 1920  2
ipt_CONNMARK			1696  0
ipt_MARK				1984  0
ipt_ROUTE			   4260  0
ipt_connmark			1216  0
ipt_owner			   2432  0
ipt_recent			  9292  0
ipt_iprange			 1312  0
ipt_physdev			 1744  0
ipt_multiport		   2112  0
ipt_conntrack		   1792  0
iptable_mangle		  2016  0
ip_set_portmap		  3840  0
ip_set_macipmap		 3780  0
ip_set_ipmap			3872  0
ip_set_iphash		   5924  0
ip_set				 18876  11 ip_set_iptree,ipt_set,ip_set_portmap,ip_set_macipmap,ip_set_ipmap,ip_set_iphash
ip_nat_irc			  1824  0
ip_nat_tftp			 1216  0
ip_nat_ftp			  2560  0
iptable_nat			20212  3 ip_nat_irc,ip_nat_tftp,ip_nat_ftp
ip_conntrack_irc	   70352  1 ip_nat_irc
ip_conntrack_tftp	   3088  1 ip_nat_tftp
ip_conntrack_ftp	   71408  1 ip_nat_ftp
ip_conntrack		   40824  9 ipt_state,ipt_conntrack,ip_nat_irc,ip_nat_tftp,ip_nat_ftp,iptable_nat,ip_conntra
ck_irc,ip_conntrack_tftp,ip_conntrack_ftp
iptable_filter		  2080  1
ip_tables			  20416  20 ipt_IFWLOG,ipt_psd,ipt_REJECT,ipt_LOG,ipt_state,ipt_pkttype,ipt_set,ipt_CONNMARK
,ipt_MARK,ipt_ROUTE,ipt_connmark,ipt_owner,ipt_recent,ipt_iprange,ipt_physdev,ip
t
_multiport,ipt_conntrack,iptable_mangle,iptable_nat,iptable_filter
tulip				  47936  0
af_packet			  16392  2
floppy				 55444  0
video				  14052  0
thermal				10920  0
tc1100_wmi			  5092  0
processor			  17876  1 thermal
fan					 3172  0
container			   3008  0
button				  4848  0
battery				 7460  0
ac					  3268  0
ide_cd				 37988  0
sd_mod				 16240  0
loop				   14504  0
ntfs				  212792  1
nls_iso8859_1		   3680  3
nls_cp850			   4480  2
vfat				   10592  2
fat					45980  1 vfat
supermount			 31956  1
intel_agp			  20636  1
agpgart				29032  1 intel_agp
hw_random			   4244  0
usbmouse				4160  0
usblp				  10976  0
usbhid				 44544  0
usb_storage			82020  0
scsi_mod			  121064  3 sg,sd_mod,usb_storage
tsdev				   5984  0
uhci_hcd			   29136  0
usbcore			   108348  6 usbmouse,usblp,usbhid,usb_storage,uhci_hcd
evdev				   7648  0
ext3				  124744  2
jbd					48568  1 ext3

 

 

When I go into Hardrake I see the following information which I did not get before. There is now an 'sdb' in the harddrive section with the following data.

 

Identification
Vendor: ?LaCie

Description: ?LaCie Hard Drive USB
Disk identifier: ?Maxtor 36147H8
Media class: ?hd (Mass Storage|SCSI|Bulk (Zip))
Bus identification
Vendor ID: ?1439
Device ID: ?849
Connection
Bus: ?SCSI (USB) (1)
Channel: ?0
Logical unit number: ?0
Device
Old device file: ?/dev/sdb
New devfs device: ?/dev/scsi/host4/bus0/target0/lun0/disc
Partitions
Primary partitions: ?2 (sdb1, sdb2)

 

I cannot find out how to get into the files on the drive? I know that before all this it was possible to look at all the drives and files which were displayed as folders,

 

I know we are getting closer and I sure appreciate all the help.

 

Thanks, ted

Link to comment
Share on other sites

Type this at the prompt, does it show /dev/sdb?

 

fdisk -l

 

Hello ianw1974

I sure appreciate the help

I ran it twice - ech time after I swaped out a harddrive in the USB to verify that it was being seen.

 

(MY NOTE - THIS IS FROM THE FIRST DRIVE FROM THE PC THAT THE MB BLEW ON)

Disk /dev/sdb: 60.0 GB, 60022480896 bytes

64 heads, 32 sectors/track, 57241 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

 

Device Boot Start End Blocks Id System

/dev/sdb1 1 10563 10816132 1c Hidden W95 FAT32 (LBA)

Partition 1 does not end on cylinder boundary.

/dev/sdb2 * 2375 10579 8401413 3 XENIX usr

Partition 2 does not end on cylinder boundary.

/dev/sdb3 1 1 0 10 OPUS

Partition 3 does not end on cylinder boundary.

 

Partition table entries are not in disk order

[root@localhost Desktop]#

 

(MY NOTE - THIS IS FROM THE SECOND DRIVE FROM THE PC THAT THE MB BLEW ON)

Disk /dev/sdb: 20.8 GB, 20847697920 bytes

64 heads, 32 sectors/track, 19881 cylinders

Units = cylinders of 2048 * 512 = 1048576 bytes

 

Device Boot Start End Blocks Id System

/dev/sdb1 1 10563 10816132 1c Hidden W95 FAT32 (LBA)

Partition 1 does not end on cylinder boundary.

/dev/sdb2 * 2375 10579 8401413 3 XENIX usr

Partition 2 does not end on cylinder boundary.

/dev/sdb3 1 1 0 10 OPUS

Partition 3 does not end on cylinder boundary.

 

I know we are getting close. I keep remembering on how before I could see all the files in a tree structure. I still does not bring the drives up when I try to read all the drives on the system.

 

Thanks for your patience and taking the time. ted

Link to comment
Share on other sites

OK, I take it you have two drives you're trying to connect to your computer?

 

I think what you might need to do is this:

 

fdisk /dev/sdb

 

and then press "x" for advanced features, and then I think "v" for verify partition info, since it seems to think it's got problems with them as above (does not end on cylinder boundary message). And then see what it says.

 

To mount manually, try this:

 

mkdir /mnt/portable
mount /dev/sdb1 -t vfat /mnt/portable

 

and then see if you can see anything in /mnt/portable?

Link to comment
Share on other sites

OK, I take it you have two drives you're trying to connect to your computer?

 

I think what you might need to do is this:

 

fdisk /dev/sdb

 

and then press "x" for advanced features, and then I think "v" for verify partition info, since it seems to think it's got problems with them as above (does not end on cylinder boundary message). And then see what it says.

 

To mount manually, try this:

 

mkdir /mnt/portable
mount /dev/sdb1 -t vfat /mnt/portable

 

and then see if you can see anything in /mnt/portable?

 

Hello ianw, I really need to apologize. It sounds like I was not clear. To start with yes I have two drives. Let me explain and then maybe it will be clearer. My old PC I had win 98 and then also loaded mandrake 2006 on it. I had two drives in that PC. The second drive I believe had only win programs but with the way things loaded and went they worked and I am trying to become familiar with linux. I know that went I went to the file manager I could see all the files. Linux did not care if they were windows or linux. That was great. The mother board went out on that computer. I went an got a different PC (not brand new but better). It has/ had one drive with XP on it. I installed a second drive on the new PC and loaded Mandrake 2006 on the second drive of the new PC. I then proceeded to try and talk with / look at the files on the drives from my old / broken PC. I know the drives are good the motherbaord went bad. I have installed the old drives into a USB hard drive attachment thinking that with linux I would see the drive and files separate from the PC. Before you started to help me I could not see the aux USB drive. It now sees it as /sdb but will not let me see any of the files.

 

When I say I tried the second drive I am saying that I took the drive out of teh USB aux and installed the other drive in it and then tried to see the files in that drive. I could not. The system did and does see the /sdb drive but will not read the files.

 

At no time have I had or do I have two separate USB hard drives attached attached at the same time. I have tried them one at a time. I just wanted to see it one could be read where it was not reading the other file.

 

I did not mean to cinfud\se the issue. If I knew how to draw a daigram I would.

 

I do appreciate the help. I did try your suggestions and appear to have misunderstood them as they were not accepted. I have attached a copy if the window.

 

[root@localhost Desktop]# mkdir /mnt/portabel

[root@localhost Desktop]# mount /dev/sdb1 -t vfat /mnt/portable

mount: mount point /mnt/portable does not exist

[root@localhost Desktop]# /mnt/portable

bash: /mnt/portable: No such file or directory

[root@localhost Desktop]#

 

I have added the suggested line to the fstab as

/dev/sda1 /mnt/removable

mount /dev/sdb -t vfat /mnt/portable

 

When I type /mnt/portable it comes up nothing exists.

 

I apologize for the confusion. I will only (have been) work with only one ofthe hard drives at a time. It is installed in a USB device,

I just thought that if it is not seeing one when I switched to the other it might see it.

 

I also do not understand why I cannot see the files on the hda in the system. Maybe solving that will lead to what the problem is with the other,

 

Thank you, ted

Link to comment
Share on other sites

mkdir /mnt/portabel

 

You typed the above, and then:

 

mount /dev/sdb1 -t vfat /mnt/portable

 

the slight difference being the spelling of "portable" which is why it didn't work. Make sure /mnt/portable exists, or even /mnt/portabel as it was originally created as:

 

ls -l /mnt

 

and then change accordingly to the spelling of portable, or create portable. You should find that once it's created, the mount point will be accessible, and hopefully you should see your files.

 

Try again let us know how you get on.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...