OT: Linux



 Religions > Atheism > OT: Linux

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: Religions > Atheism
User: "stoney"
Date: 12 Oct 2004 12:07:12 PM
Object: OT: Linux
Two HD's with Linux on it. One HD is unreliable. I can subordiante
the unreliable one and the OS sees it-it shows up on the booting
sequencing screens. But how do I find the slave drive and copy
selected files to the master?
Mandrake 9.2
--
Contempt of Congress meter reading-offscale.
Vote for Bush. Why vote for the lesser of two evils?
No matter the candidates the superstition industry wins.
'Jesus' is a sock-puppet Christians utilize to add 'authority' to
whatever action they intend on taking. -Stoney
.

User: "Mark K. Bilbo"

Title: Re: OT: Linux 12 Oct 2004 05:27:03 PM
On Tue, 12 Oct 2004 10:07:12 -0700 in episode
<nj3om0lg1e0ei5uic6djugskf9m8qj8jkr@4ax.com> we saw our hero stoney
<stoney@the.net>:


Two HD's with Linux on it. One HD is unreliable. I can subordiante the
unreliable one and the OS sees it-it shows up on the booting sequencing
screens. But how do I find the slave drive and copy selected files to the
master?

On Drake 9.2, you can:
Go to the Mandrake Control Center.
Select Mount Points.
Click DiskDrake.
(And then click OK in the little dialog that yells at you to be sure to
back up your data)
DiskDrake will show you the partitions on the drives in a graphical
display. You can click on a partition then the button that lets you set a
mount point and assign the partition to a location to be mounted.
Be *careful* with this thing though. You can really muck things up with
DiskDrake. The partition display, by the way, is tabbed. The *first thing
you'll see are the partitions for your main drive "hda" and you do *not
wanna mess with those. Be sure to click the little tab so you see the
second drive "hdb" (which would be the second drive on IDE0... your master
drive on the IDE0 is "hda," the slave is "hdb," the drives on IDE1 are
"hdc" then "hdd").
After you assign mount points (I'd suggest something like /mnt/disk1 and
so on), you can mount them from within DiskDrake (you can also format them
and delete them and do other nasty things to them so be careful). If
DiskDrake squawks about the drive, you may have more serious problems than
it can handle and should exit immediately (and if it asks if you want to
save anything to fstab, tell it NO).
--
This sig closed for repairs.
.
User: "stoney"

Title: Re: OT: Linux 14 Oct 2004 01:17:00 PM
On Tue, 12 Oct 2004 17:27:03 -0500, "Mark K. Bilbo"
<alt-atheism@org.webmaster> wrote:

On Tue, 12 Oct 2004 10:07:12 -0700 in episode
<nj3om0lg1e0ei5uic6djugskf9m8qj8jkr@4ax.com> we saw our hero stoney
<stoney@the.net>:


Two HD's with Linux on it. One HD is unreliable. I can subordiante the
unreliable one and the OS sees it-it shows up on the booting sequencing
screens. But how do I find the slave drive and copy selected files to the
master?


On Drake 9.2, you can:

Thank you. I printed out yours and Spaaka's replies for when the
computer is next in a Linux configuration.
[]
--
Contempt of Congress meter reading-offscale.
Vote for Bush. Why vote for the lesser of two evils?
No matter the candidates the superstition industry wins.
'Jesus' is a sock-puppet Christians utilize to add 'authority' to
whatever action they intend on taking. -Stoney
.
User: "Mark K. Bilbo"

Title: Re: OT: Linux 14 Oct 2004 03:35:08 PM
On Thu, 14 Oct 2004 11:17:00 -0700, stoney wrote:

On Tue, 12 Oct 2004 17:27:03 -0500, "Mark K. Bilbo"
<alt-atheism@org.webmaster> wrote:

On Tue, 12 Oct 2004 10:07:12 -0700 in episode
<nj3om0lg1e0ei5uic6djugskf9m8qj8jkr@4ax.com> we saw our hero stoney
<stoney@the.net>:


Two HD's with Linux on it. One HD is unreliable. I can subordiante
the unreliable one and the OS sees it-it shows up on the booting
sequencing screens. But how do I find the slave drive and copy
selected files to the master?


On Drake 9.2, you can:


Thank you. I printed out yours and Spaaka's replies for when the computer
is next in a Linux configuration.

He's talking about doing essentially the same thing but doing it from the
command line. Which is fine if you know the partition numbers. Which if
you do this from the command line, you can find fdisk. Like if the drive
is the slave on IDE0, you would start:
fdisk /dev/hdb
You get a bunch of crap:
-------
The number of cylinders for this disk is set to 2434.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help):
-------
Ignore the gibberish about "number of cylinders." At the line "Command (m
for help):" type "p" and hit return. That prints your partition table.
You get something along these lines:
-------
Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 * 1 267 2144646 82 Linux swap
/dev/hdd2 268 2434 17406427+ 5 Extended
/dev/hdd5 268 792 4217031 83 Linux
/dev/hdd6 793 1316 4208998+ 83 Linux
/dev/hdd7 1317 2434 8980303+ 83 Linux
Command (m for help):
-------
Now this is from the slave drive on IDE1 on my system. Yours would be
/dev/hdb (I'm assuming that it's the slave on IDE0). The point is you see
the partition list.
Write down the list under "Device" then type "q" and hit return to exit
(be careful using fdisk, it's meant to delete and create and otherwise
screw with partitions).
Ignore the "Extended" partition. Ignore any "swap" on the drive (your
data's not in there). In the case of the one above, the interesting
partitions are:
/dev/hdd5
/dev/hdd6
/dev/hdd7
Then you can follow spaaka's procedure with the partitions you found.
You'll want to do this one:
# mkdir /tmp/disk
Only once to create a mount point. Doesn't really matter (much) where you
do it but I'd suggest /mnt.
# mkdir /mnt/disk
instead of /tmp
(but it's not going to hurt anything to do it in /tmp)
Anyway, for each partition you're interested in, mount with
# mount /dev/hdd5 /mnt/disk
Then you should be able to cd to /mnt/disk and muck about for the files.
To look at the next partition and work with it, first:
# umount /mnt/disk
Then mount the next one:
# mount /dev/hdd6 /mnt/disk
Etc.
Oh and you have to be root to do any of this...
--
Mark K. Bilbo - a.a. #1423
EAC Department of Linguistic Subversion
Alt-atheism website at: http://www.alt-atheism.org
-----------------------------------------------------------
"Being surprised at the fact that the universe
is fine tuned for life is akin to a puddle being
surprised at how well it fits its hole"
-- Douglas Adams
.
User: "stoney"

Title: Re: OT: Linux 16 Oct 2004 09:02:35 PM
On Thu, 14 Oct 2004 15:35:08 -0500, "Mark K. Bilbo"
<alt-atheism@org.webmaster> wrote:

On Thu, 14 Oct 2004 11:17:00 -0700, stoney wrote:

On Tue, 12 Oct 2004 17:27:03 -0500, "Mark K. Bilbo"
<alt-atheism@org.webmaster> wrote:

On Tue, 12 Oct 2004 10:07:12 -0700 in episode
<nj3om0lg1e0ei5uic6djugskf9m8qj8jkr@4ax.com> we saw our hero stoney
<stoney@the.net>:


Two HD's with Linux on it. One HD is unreliable. I can subordiante
the unreliable one and the OS sees it-it shows up on the booting
sequencing screens. But how do I find the slave drive and copy
selected files to the master?


On Drake 9.2, you can:


Thank you. I printed out yours and Spaaka's replies for when the computer
is next in a Linux configuration.


He's talking about doing essentially the same thing but doing it from the
command line.

Yes. I utilized the Control Centre and found the first drive was pure
winblowz.
Hooked it up by itself and found the registry was hosed. Slaved it
into another winblowz drive and am able to access data on the other
partion. :D

Which is fine if you know the partition numbers. Which if
you do this from the command line, you can find fdisk. Like if the drive
is the slave on IDE0, you would start:

fdisk /dev/hdb

You get a bunch of crap:

-------
The number of cylinders for this disk is set to 2434.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help):
-------

Ignore the gibberish about "number of cylinders." At the line "Command (m
for help):" type "p" and hit return. That prints your partition table.

You get something along these lines:

-------
Disk /dev/hdd: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdd1 * 1 267 2144646 82 Linux swap
/dev/hdd2 268 2434 17406427+ 5 Extended
/dev/hdd5 268 792 4217031 83 Linux
/dev/hdd6 793 1316 4208998+ 83 Linux
/dev/hdd7 1317 2434 8980303+ 83 Linux

Command (m for help):
-------

Now this is from the slave drive on IDE1 on my system. Yours would be
/dev/hdb (I'm assuming that it's the slave on IDE0). The point is you see
the partition list.

Write down the list under "Device" then type "q" and hit return to exit
(be careful using fdisk, it's meant to delete and create and otherwise
screw with partitions).

Ignore the "Extended" partition. Ignore any "swap" on the drive (your
data's not in there). In the case of the one above, the interesting
partitions are:

/dev/hdd5
/dev/hdd6
/dev/hdd7

Then you can follow spaaka's procedure with the partitions you found.

You'll want to do this one:

# mkdir /tmp/disk

Only once to create a mount point. Doesn't really matter (much) where you
do it but I'd suggest /mnt.

# mkdir /mnt/disk

instead of /tmp

(but it's not going to hurt anything to do it in /tmp)

Anyway, for each partition you're interested in, mount with

# mount /dev/hdd5 /mnt/disk

Then you should be able to cd to /mnt/disk and muck about for the files.
To look at the next partition and work with it, first:

# umount /mnt/disk

Then mount the next one:

# mount /dev/hdd6 /mnt/disk

Etc.


Oh and you have to be root to do any of this...

Yes.
Archived. Thank you.
--
Contempt of Congress meter reading-offscale.
Vote for Bush. Why vote for the lesser of two evils?
No matter the candidates the superstition industry wins.
'Jesus' is a sock-puppet Christians utilize to add 'authority' to
whatever action they intend on taking. -Stoney
.

User: "spakka"

Title: Re: OT: Linux 15 Oct 2004 03:02:54 AM
On Thu, 14 Oct 2004 15:35:08 -0500, Mark K. Bilbo wrote:
<snip good advice>
To stoney:
I'm guessing that you expect disk failure soon and want to back up asap.
Create directories to hold each partition you identify from fdisk.
e.g. to put them in your home directory
mkdir ~/copy_hdb1 ~/copy_hdb2 <and so on>
When you've got a partition mounted, say /dev/hdb1 mounted at /mnt/disk,
cp -a /mnt/disk ~/copy_hdb1
is a pretty good try to copy the filesystem. (I believe it can behave
oddly on weirdies like hard links - I've never had a problem with it).

To look at the next partition and work with it, first:

# umount /mnt/disk

Then mount the next one:

Of course, there's nothing stopping you mounting them all at once to
different mount points
# mkdir /mnt/disk1 /mnt/disk2 <and so on>
# mount /dev/hdb1 /mnt/disk1
# mount /dev/hdb2 /mnt/disk2
<and so on>
<copy your stuff>
# mount
on its own will tell you what's mounted where if you get lost.
Oops - got to go to work.
Good luck.
.
User: "stoney"

Title: Re: OT: Linux 16 Oct 2004 11:15:30 PM
On Fri, 15 Oct 2004 08:02:54 GMT, spakka <usenet_spam@mail.invalid>
wrote:

On Thu, 14 Oct 2004 15:35:08 -0500, Mark K. Bilbo wrote:

<snip good advice>

To stoney:

I'm guessing that you expect disk failure soon and want to back up asap.
Create directories to hold each partition you identify from fdisk.

A couple drives 'freaked' and I couldn't access them. Until I knew
what caused it I wasn't going to monkey with anything. Turns out the
video card was on the toasted side. Rest of the system checked out
fine and stable after twenty four hour on, shut down and power off.
Cold start and run for another twenty-four with no problem.
I now suspect the monitor blew out the video card. So I put in a
spare monitor and have no trouble. The old monitor will get checked
out in a couple of weeks.
What I wanted to do was to be able to access the data on /usr for
Linux and turns out the second drive was Winblowz. I'm dealing with
the data on that drive now.

e.g. to put them in your home directory

mkdir ~/copy_hdb1 ~/copy_hdb2 <and so on>

When you've got a partition mounted, say /dev/hdb1 mounted at /mnt/disk,

cp -a /mnt/disk ~/copy_hdb1

is a pretty good try to copy the filesystem. (I believe it can behave
oddly on weirdies like hard links - I've never had a problem with it).


To look at the next partition and work with it, first:

# umount /mnt/disk

Then mount the next one:



Of course, there's nothing stopping you mounting them all at once to
different mount points

# mkdir /mnt/disk1 /mnt/disk2 <and so on>
# mount /dev/hdb1 /mnt/disk1
# mount /dev/hdb2 /mnt/disk2
<and so on>
<copy your stuff>


# mount

on its own will tell you what's mounted where if you get lost.

Oops - got to go to work.

Good luck.

Thank you.
Archived.
--
Contempt of Congress meter reading-offscale.
Vote for Bush. Why vote for the lesser of two evils?
No matter the candidates the superstition industry wins.
'Jesus' is a sock-puppet Christians utilize to add 'authority' to
whatever action they intend on taking. -Stoney
.





User: "spakka"

Title: Re: OT: Linux 12 Oct 2004 01:25:53 PM
On Tue, 12 Oct 2004 10:07:12 -0700, stoney wrote:


Two HD's with Linux on it. One HD is unreliable. I can subordiante
the unreliable one and the OS sees it-it shows up on the booting
sequencing screens. But how do I find the slave drive and copy
selected files to the master?

# mkdir /tmp/disk
# mount /dev/hdb1 /tmp/disk
.
User: "stoney"

Title: Re: OT: Linux 14 Oct 2004 01:16:08 PM
On Tue, 12 Oct 2004 18:25:53 GMT, spakka <usenet_spam@mail.invalid>
wrote:

On Tue, 12 Oct 2004 10:07:12 -0700, stoney wrote:


Two HD's with Linux on it. One HD is unreliable. I can subordiante
the unreliable one and the OS sees it-it shows up on the booting
sequencing screens. But how do I find the slave drive and copy
selected files to the master?


# mkdir /tmp/disk
# mount /dev/hdb1 /tmp/disk

Thank you. I printed out yours and Mark's replies for reference when
I'm next in the Linux configuration.
--
Contempt of Congress meter reading-offscale.
Vote for Bush. Why vote for the lesser of two evils?
No matter the candidates the superstition industry wins.
'Jesus' is a sock-puppet Christians utilize to add 'authority' to
whatever action they intend on taking. -Stoney
.



  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.3585     pg.2749     pg.2106     pg.1612     pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER