Results 1 to 3 of 3
  1. #1

    Restore from Slave

    I was reading the post http://www.webhostingtalk.com/showth...ht=mount+drive which discusses how to restore from a slave drive. I was wondering if any could assist me with the following dialoge. after doing fdisk -| i get:

    [email protected] [~]# fdisk -l

    Disk /dev/hda: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 13 104391 83 Linux
    /dev/hda2 14 268 2048287+ 82 Linux swap
    /dev/hda3 269 399 1052257+ 83 Linux
    /dev/hda4 400 9729 74943225 f Win95 Ext'd (LBA)
    /dev/hda5 400 9729 74943193+ 83 Linux

    Disk /dev/hdb: 80.0 GB, 80026361856 bytes
    255 heads, 63 sectors/track, 9729 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 * 1 13 104391 83 Linux
    /dev/hdb2 14 270 2064352+ 82 Linux swap
    /dev/hdb3 271 9729 75979417+ 83 Linux
    --------------------------------------------------------------------
    So i know there is hda and hdb, and i know hdb needs to be mounted:
    [email protected] [~]# df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda5 71G 3.0G 64G 5% /
    /dev/hda1 99M 15M 80M 16% /boot
    /dev/hda3 1012M 33M 928M 4% /tmp
    none 501M 0 501M 0% /dev/shm
    --------------------------------------------------------------------

    Accourding to the above link it says to do "mount /dev/hdb /directory" but doing so shell tells me I need the filesystem type, so i do "mount /dev/hdb /directory ext3" and I get the following output:


    Usage: mount -V : print version
    mount -h : print this help
    mount : list mounted filesystems
    mount -l : idem, including volume labels
    So far the informational part. Next the mounting.
    The command is `mount [-t fstype] something somewhere'.
    Details found in /etc/fstab may be omitted.
    mount -a [-t|-O] ... : mount all stuff from /etc/fstab
    mount device : mount device at the known place
    mount directory : mount known device here
    mount -t type dev dir : ordinary mount command
    Note that one does not really mount a device, one mounts
    a filesystem (of the given type) found on the device.
    One can also mount an already visible directory tree elsewhere:
    mount --bind olddir newdir
    or move a subtree:
    mount --move olddir newdir
    A device can be given by name, say /dev/hda1 or /dev/cdrom,
    or by label, using -L label or by uuid, using -U uuid .
    Other options: [-nfFrsvw] [-o options].
    For many more details, say man 8 mount
    -----------------------------------------------------------------------------------
    I have tried serveral variations of the command that I have found on other forums such as ev1 forums yet I get the same output.

    Please advise, and thank you.

  2. #2
    Join Date
    Mar 2004
    Location
    Los Angeles
    Posts
    617
    dmesg | grep hd
    mount -t filesystem type /dev/device /path

  3. #3
    Join Date
    Jun 2005
    Posts
    697
    You can't use hdb, you have to use the right patition or slice. So you need to "mount /dev/hdbX /directory", where hdbX is the partition you want to mount. In your case that should be hdb3, I think.

    You should also list hdbX in /etc/fstab (not hbdX but hbd+correct number), then its just:
    mount /dev/hdbX /directory (again, not hbdX but hbd+correct number)
    ReflexNetworks means Happy Clients!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •