Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
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?


  Search this Thread
Old 06-08-2006, 11:59 AM   #1
LQ Newbie
Registered: Jun 2006
Posts: 2

Rep: Reputation: 0
Mounting a preformated drive between distro's

I have never tried to do this before. I am mounting a drive [on slackware] that is already formatted, and is the primary drive from a fedora box that blowed up. The drive is fine, and is an ext3 partition. Though, when I boot my good Slackware box, and mount the drive then go into the directory - all i see are a few folders and files such as: grub/ lost+found/ cpnfig.. etcetra

I just want to peel off old data from that drive. Then I would feel find formatting it. Is the approach that I am taking sensible, seeing as there is no way to boot from the Fedora HDD.

Thank you


Using Slackware 10.2 2.4 kernel (standard install)

Basically. Drive ripped out of a fedora box. I need to get info off while having the drive hooked into new Slackware box. Slack has box mounted on hdb1, but the directory structure just shows [ grub/ ] [ lostand found/] [ ] [ ] [] ]

I guess I am wondering where they file structure is?

Last edited by Visiter; 06-08-2006 at 01:49 PM.
Old 06-08-2006, 03:34 PM   #2
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Looking at your file listing you probably only mounted the /boot partition.
Here's some code that might help you:
fdisk -l|grep /dev/hdb..*83..*Linux$|awk '{print $1}'|while read p; do p=${p:5:6}
if [ ! -d "/mnt/rescue_${p}" ]; then mkdir "/mnt/rescue_${p}"; fi
mount "/dev/$p" -t auto "/mnt/rescue_${p}" -o ro; done
What this does is examine /dev/hdb for Linux ext* partitions, makes a recognisable named mountpoint
and mount the partition read-only for perusal. When rescueing data always mount read-only.

Old 06-12-2006, 09:42 AM   #3
LQ Newbie
Registered: Jun 2006
Posts: 2

Original Poster
Rep: Reputation: 0
After succesfully running the names script, the boot sector was once again mounted in rescue_hdb#1. No other directories were available. I can see the directories if I boot from the fedora rescue disk though, so the allocation table should still be in tact.


Last edited by Visiter; 06-12-2006 at 10:14 AM.


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
changed distro's, having trouble with mounting old partition icepack Linux - Newbie 3 10-12-2005 04:33 AM
Original distro's and distro's based on the originals? Moloko Linux - General 7 08-19-2005 05:37 PM
Partitioning a drive for multiple distro's Ravager Linux - Newbie 23 11-02-2004 01:27 PM
Installing two distro's on the same drive Junior41180 Linux - Distributions 5 10-20-2004 07:21 PM
Flash Drive Distro's nrunge Linux - Software 1 08-24-2004 01:35 AM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 04:45 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration