LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 10-08-2008, 06:45 PM   #1
dickgb
Member
 
Registered: Oct 2007
Posts: 30

Rep: Reputation: 15
USB drive won't respond


I had a dual boot system with WinXP on my internal drive and Fedora 7 on a USB drive. I tried Ubuntu and decided to install it on the USB hd, which is partitioned, half for linux and half for XP backups. The system crashed during the installation. I was then left with a Windows system that wouldn't boot because the MBR was looking for grub. To make a long story a little shorter, I got "help" from HP which resulted in me shooting myself in the foot and destroying XP. After long suffering I have a system that works minus a lot of data. Now I would like to restore the USB drive, but it won't respond at all. I don't know how to address the hd and, hopefully, retrieve the backups on it and restore it to pristine condition so I can resume using linux on it. Can some knowledgeable soul please tell me how to do this?
Many thanks in advance.
dickgb@comcast.net
 
Old 10-08-2008, 07:05 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
If you are referring to not being able to view the usb drive from within xp. I suggest you use Ubuntu in Live CD mode to access the drive. As long as the drive is detected, if it doesn't automount then you should be able to manually mount it. You should also be able to mount your xp drive. You can then copy data from the usb drive to your xp drive.
 
Old 10-09-2008, 01:38 PM   #3
dickgb
Member
 
Registered: Oct 2007
Posts: 30

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
If you are referring to not being able to view the usb drive from within xp. I suggest you use Ubuntu in Live CD mode to access the drive. As long as the drive is detected, if it doesn't automount then you should be able to manually mount it. You should also be able to mount your xp drive. You can then copy data from the usb drive to your xp drive.
Fantastic! Works like a charm. Both drives were detected and automounted. It sees WinXP and backups but everything is zipped. I used Handy Backup, which should not have affected the Windows file system but it too seems to be zipped. Strangely, it does not see the linux partition where I have Fedora installed. It does see the Windows network but I can't access it because it wants a security key which I don't know since it isn't ever requested when I use it from my XP machine. Do you know any way I can recursively unzip the files I want? I could do it selectively picking only the important directories, or whatever you might suggest. Handy Backup is not working to restore files and working with the developer is very difficult because he/they is in Russia and, because of the time difference we can only get one exchange per day.
Thanks very much for your insight.
 
Old 10-10-2008, 12:02 AM   #4
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
It might be the backup partition is owned by an administrator. When trying to access it via a Windows machine you'll be denied, in which case you'll have to take ownership of the partition logged in as administrator from a Windows XP Pro machine.
Normally Linux does not have this issue and can access the partition and you can retrieve files, providing the drive can be mounted.
If it cannot be mounted:
You can make a dd image of the drive and mount the partition in a loop specifying an offset as to the start position of the partition on the drive. An example follows, the second command should show all partition positions.
Code:
1: mkdir /mnt/image
2: sfdisk -l -uS image.dd  (or - fdisk -lu image.dd)
3: mount -oloop,offset=32256 image.dd /mnt/image

OFFSET = Sectors offset of beginning sector of partition multiplied by 512, 
in this case the first partition starts at offset 63.
 
Old 10-10-2008, 12:07 AM   #5
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Although I haven't tried it, you should also be able to make a dd image of the partition you want to access instead of the whole drive and mount it this way without an offset value.
 
Old 10-10-2008, 11:27 AM   #6
dickgb
Member
 
Registered: Oct 2007
Posts: 30

Original Poster
Rep: Reputation: 15
One more question, now that I'm on a roll. When I get finished retrieving my data by accessing the usb drive with live ubuntu, how to I remove/replace the grub file so that I can use the the external drive. My ultimate goal is to install linux (probably Ubuntu) on the internal drive and have XP on the usb drive. What I want, in that case is to have dual booting with the internal drive as the primary boot drive. OK, that's more that one question.
 
Old 10-10-2008, 08:17 PM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by dickgb View Post
One more question, now that I'm on a roll. When I get finished retrieving my data by accessing the usb drive with live ubuntu, how to I remove/replace the grub file so that I can use the the external drive. My ultimate goal is to install linux (probably Ubuntu) on the internal drive and have XP on the usb drive. What I want, in that case is to have dual booting with the internal drive as the primary boot drive. OK, that's more that one question.
Request help to do this in a fresh post.
 
  


Reply



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
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 01:46 PM
fedora 7: autofs is not mounting USB flash drive or DVD ROM drive Hewson Linux - General 3 05-12-2008 08:58 AM
cannot delete drive from root desktop - cannot mount usb flash drive - openSuSE 10.2 bluecog6 Linux - General 6 01-29-2007 03:18 PM
My USB mouse does not respond. soner Linux - Hardware 3 10-31-2004 08:40 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 06:36 PM

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

All times are GMT -5. The time now is 05:29 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
Open Source Consulting | Domain Registration