Hansen Loke wrote:

>I'm a newbie! and still have trouble with the Linux installation, where I still
>can't read my other hard drive partitions
>
To examin the set-up of your partitions you use the fdisk utility in 
list mode.
Be sure to append the -l to the fdisk command, or you will have fdisk in 
partition table edit mode.
You DON'T want that!!!

Here is the fdisk command in list mode and its output on my machine:

[chris@berty chris]$ su
Password:
[root@berty chris]# /sbin/fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 255 heads, 63 sectors, 1099 
cylinders
Units = cylinders of 16065 * 512 bytes

                                 Device Boot    Start       End    
Blocks   Id  System
/dev/scsi/host0/bus0/target0/lun0/part1   *         1         2     
16033+  83  Linux
/dev/scsi/host0/bus0/target0/lun0/part4             3      1099   
8811652+   5  Extended
/dev/scsi/host0/bus0/target0/lun0/part5             3        27    
200781   83  Linux
/dev/scsi/host0/bus0/target0/lun0/part6            28        55    
224878+  82  Linux swap
/dev/scsi/host0/bus0/target0/lun0/part7            56       758   
5646816   83  Linux
/dev/scsi/host0/bus0/target0/lun0/part8           759       947   
1518111   83  Linux
/dev/scsi/host0/bus0/target0/lun0/part9           948      1099   
1220908+  83  Linux

Disk /dev/scsi/host0/bus0/target1/lun0/disc: 64 heads, 32 sectors, 1002 
cylinders
Units = cylinders of 2048 * 512 bytes

                                 Device Boot    Start       End    
Blocks   Id  System
/dev/scsi/host0/bus0/target1/lun0/part1             1      1002   
1026032   83  Linux

Disk /dev/ide/host0/bus0/target0/lun0/disc: 15 heads, 63 sectors, 8960 
cylinders
Units = cylinders of 945 * 512 bytes

                                Device Boot    Start       End    
Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1             1      8960   
4233568+  83  Linux

Disk /dev/ide/host0/bus1/target0/lun0/disc: 15 heads, 63 sectors, 8960 
cylinders
Units = cylinders of 945 * 512 bytes

                                Device Boot    Start       End    
Blocks   Id  System
/dev/ide/host0/bus1/target0/lun0/part1   *         1      8960   
4233568+  83  Linux
[root@berty chris]#

What happens on your machine if you do that?

You will then have to mount the partitions to which you wish to have 
access.
Once again here is the mount command and its output on my machine:

[root@berty chris]# mount
/dev/sda5 on / type ext2 (rw)
none on /proc type proc (rw)
devfs on /dev type devfs (rw)
/dev/sda1 on /boot type ext2 (rw)
none on /dev/pts type devpts (rw,mode=0620)
none on /dev/shm type tmpfs (rw)
/dev/sda8 on /home type ext3 (rw)
/dev/sda7 on /usr type ext3 (rw)
/dev/sda9 on /var type ext3 (rw)
/dev/sdb1 on /home2 type ext2 (rw)
/dev/hda1 on /mnt/disk1 type ext2 (rw)
/dev/hdc1 on /mnt/disk2 type ext2 (rw)
[root@berty chris]#

As you can see from the above mount list I have two disks which are not 
in the normal run of things, namely:

/dev/hda1 on /mnt/disk1 type ext2 (rw)
/dev/hdc1 on /mnt/disk2 type ext2 (rw)

In order to do this I created two new directories in the /mnt directory:-

# mkdir /mnt/disk1
# mkdir /mnt/disk2

and then mounted the disks.

# mount -t ext2 /dev/hda1 /mnt/disk1
# mount -t ext2 /dev/hda2 /mnt/disk2

the '-t ext2' tells the mount command that it is to mount an ext2 type 
of linux file-system,
you will need to substitute the correct flag for the types of 
file-systems you wish to mount.

you should have access to the file-systems now. See:-

[root@berty chris]# exit
exit
[chris@berty chris]$ ls /mnt/disk1/isos/
debian/  Mandrake/           OpenOffice/  slackware/  VALinux/
gentoo/  Mandrake82updated/  peanut/      smalltalk/  winlinux/
[chris@berty chris]$

You can get the whole story about these commands by using the man command:-

$ man fdisk
$ man mkdir
$ man mount

Clear as mud now?

>after weeks of corresponding with this newsgroup.
>
For a plea for help from a mail list, or news group, to be effective you 
need to tell us the basic info about your machine and the distribution. 
This really is a big, big help, especially if we are trying to get 
something like a video or sound card to work. For generic stuff like the 
above it's not quite so important.

>Anyone wouldn't mind performing a site visit to help me set it up?
>
One of the really useful features of unix and its offspring is that all 
this command line stuff can be done remotely over the Internet, or for 
that matter a direct connection via the phone. I installed and set up a 
database system for a fellow in California not so long ago doing it this 
way.

>I live close to the Cant. Uni. I envisage the setup should not take too long, 
>
All of 5 mins at the most I should think.

>unless a re-installation is required. Email me and we can set up a time.
>
Please feel free to 'phone. Number's correct in the latest 'phone book.

Here endeth the Lesson. :-)

--
Christopher Sawtell.





Reply via email to