Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-20-2004, 01:17 AM
|
#1
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Rep:
|
slave hdd
i have redhat installed on primery master other hdd with some other linuxe system instaled
on it is connected to primery slave it is deucted in bios and in hardware brawser as /dev/hdb
and i want to edit some of its files from my redhat did any one help me for this
thanks
|
|
|
05-20-2004, 07:34 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
Re: slave hdd
Quote:
Originally posted by tomamodi
i have redhat installed on primery master other hdd with some other linuxe system instaled
on it is connected to primery slave it is deucted in bios and in hardware brawser as /dev/hdb
and i want to edit some of its files from my redhat did any one help me for this
thanks
|
What?
If I'm understanding you correctly, just mount the other drive you have Linux installed on in Redhat and edit the files that way.
man mount for more details.
And just to let you know:
primery = primary
deucted = detected
brawser = browser
And if your asking for help, don't use "did" when asking for help... use "can" ; Your "did any one help me for this" should read like "can any one help me for this" 
|
|
|
05-20-2004, 07:47 AM
|
#3
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
thanks for all
English is not my Language very sorry but happy i convey what i want please understand
the redhat 9 already installed and working at prim master
i have other hdd some other linux operating system and i want to open this in redhat is it possible thank you and great full for your kindness that you read my unreadable lang
thank you again and help me if you can
|
|
|
05-20-2004, 07:58 AM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,540
|
Do you know how the slave drive is partitioned? Log in as root and use the following command
fdisk -l /dev/hdb (that is a small L)
Do you know how the drive is formatted? i.e ext2, ext3, reiserfs?
Using the information from fdisk
mount -t auto /dev/hdbx /mnt/disk
Where x = partition ID using data from output of fdisk command
Be sure to create /mnt/disk directory. If you know how the drive is formatted replace auto with filesystem type i.e. ext2 etc..
|
|
|
05-20-2004, 08:02 AM
|
#5
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
thank you i will try and inform you
please clear one thing that said hdd second one is very importent do you think fdisk didnt harm the contents of that hdd
|
|
|
05-20-2004, 10:08 AM
|
#6
|
Moderator
Registered: Aug 2002
Posts: 26,540
|
The fdisk -l option will only display the partition information and then exit. It will not harm the contents of the drive
|
|
|
05-20-2004, 02:38 PM
|
#7
|
Member
Registered: Dec 2002
Distribution: Slackware
Posts: 927
Rep:
|
yes, just mount the partitions of the second drive as described above, then you will be able to access them as you would any other directory.

|
|
|
05-21-2004, 12:26 AM
|
#8
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
Disk /dev/hdb: 10.2 GB, 10204766208 bytes
255 heads, 63 sectors/track, 1240 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 * 1 25 200781 83 Linux
/dev/hdb2 26 1240 9759487+ f Win95 Ext'd (LBA)
/dev/hdb5 26 1224 9630936 83 Linux
/dev/hdb6 1225 1240 128488+ 82 Linux swap
Command (m for help): q
[root@tomamodi root]# mount -t ext2 /dev/hdb1 /backup
mount: mount point /backup does not exist
[root@tomamodi root]# mount -t ext2 /dev/hdb1 /mnt/disk
mount: mount point /mnt/disk does not exist
[root@tomamodi root]# mount -t auto /dev/hdb1 /mnt/disk
mount: mount point /mnt/disk does not exist
here i am still need help
|
|
|
05-21-2004, 02:19 AM
|
#9
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
i find it thanks another Q drwxr-xr-x 19 root root 4096 Oct 24 2003 .
drwxr-xr-x 4 root root 4096 May 21 07:38 ..
drwxr-xr-x 3 root root 4096 Dec 9 2002 bariq
drwxrwxr-x 14 root man 4096 Dec 2 23:02 catman
drwxr-xr-x 2 root root 4096 Dec 8 2002 db
drwxr-xr-x 2 root root 4096 Dec 8 2002 dhcpd
drwxr-xr-x 4 root root 4096 Dec 8 2002 lib
drwxr-xr-x 2 root root 4096 Dec 8 2002 local
drwxrwxr-x 3 root uucp 4096 May 17 03:08 lock
drwxr-xr-x 3 root root 4096 Dec 8 2002 log
drwxr-xr-x 2 root root 4096 Dec 8 2002 lost+found
drwxr-xr-x 2 root root 4096 Nov 2 2003 named
drwxr-xr-x 2 root root 4096 Dec 8 2002 nis
drwxr-xr-x 2 root root 4096 Dec 8 2002 preserve
drwxr-xr-x 3 root root 4096 May 20 09:43 run
drwxr-xr-x 10 root root 4096 Dec 1 2002 spool
drwxrwxrwt 2 root root 4096 May 20 10:01 tmp
drwx------ 2 root bin 4096 Dec 8 2002 webmin
drwxr-xr-x 3 root root 4096 Dec 8 2002 yp
this all where i find the mac address normally in witch file it could be hope you help for this
and i want to edit this webmin what command i use
thanks
|
|
|
05-21-2004, 07:33 AM
|
#10
|
Moderator
Registered: Aug 2002
Posts: 26,540
|
You need to create the directories for each filesystem you want to mount.
i.e.
mkdir /mnt/disk
The output of ifconfig will display the MAC address
/sbin/ifconfig
webmin is a directory. What do you want to edit?
|
|
|
05-21-2004, 10:24 AM
|
#11
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
this is cache box with registered mac address and my lan card is broken i bring the same make and model witch i try but failed to login so i want to edit the mac address this will come on screen at boot
i buy this from third party with no backup
still i am using old one but the connector pins are finished now i solder it several times so i want to change new
|
|
|
05-21-2004, 10:30 AM
|
#12
|
Member
Registered: Jul 2003
Location: saudi arabia
Posts: 31
Original Poster
Rep:
|
oh (which) this is typing mistake
|
|
|
All times are GMT -5. The time now is 06:55 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|