Find the answer to your Linux question:
Results 1 to 8 of 8
Thanks to the help of this forum, I got my second hard drive (hdb1) mounted and usable. I have a question. I made a folder (FileFolder1) and mounted it. Mount ...
  1. #1
    Just Joined!
    Join Date
    Oct 2007
    Posts
    20

    File System Question

    Thanks to the help of this forum, I got my second hard drive (hdb1) mounted and usable.

    I have a question. I made a folder (FileFolder1) and mounted it. Mount is /media/hdb1/FileFolder1.

    During this process I also created a folder called fbdrive1 (/media/hda5/fbdrive1)

    I copied the hard drive from my Mac G5 to /media/hdb1/FileFolder1 (great, that is what I was trying to do from the start)

    Here is the question
    I can see the copyed files at /media/hdb1/FileFolder1 and I can also see them at /media/hda5/fbdrive1

    Why is that?

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    37
    Go into /media and run an ls -lah.

    Where are they pointing? Same location?

  3. #3
    Just Joined!
    Join Date
    Oct 2007
    Posts
    20
    Quote Originally Posted by papetova View Post
    Go into /media and run an ls -lah.

    Where are they pointing? Same location?
    tmayo@FileBoy /media $ ls -lah
    total 512
    drwxr-xr-x 5 haldaemon root 152 Oct 14 20:59 .
    drwxr-xr-x 23 root root 624 Oct 14 20:58 ..
    -rw-r--r-- 1 root root 0 Oct 5 22:46 .keep
    drwxr-xr-x 2 haldaemon haldaemon 48 Oct 14 20:59 cdrecorder
    drwxr-xr-x 2 tmayo users 48 Oct 9 10:27 ext_disk
    drwxr-xr-x 3 root root 72 Oct 21 01:52 fbdrive1

    Being new to this, I am not sure what to look for. This is the result of running ls -lah

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Execute this
    Code:
    df -h
    sudo fdisk -l
    Post output here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Just Joined!
    Join Date
    Oct 2007
    Posts
    20
    tmayo@FileBoy ~ $ df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/hda5 19G 2.5G 17G 14% /
    udev 251M 236K 251M 1% /dev
    /dev/hda1 4.6G 133M 4.3G 3% /boot
    /dev/hda6 42G 68M 42G 1% /home
    /dev/hdb1 184G 18G 157G 10% /fbdrive1
    none 251M 0 251M 0% /dev/shm
    tmayo@FileBoy ~ $ sudo fdisk -l
    Password:

    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 608 4883728+ 83 Linux
    /dev/hda2 609 1824 9767520 82 Linux swap / Solaris
    /dev/hda3 1825 9729 63496912+ 5 Extended
    /dev/hda5 1825 4256 19535008+ 83 Linux
    /dev/hda6 4257 9729 43961841 83 Linux

    Disk /dev/hdb: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hdb1 1 24321 195358401 83 Linux

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    /dev/hdb1 184G 18G 157G 10% /fbdrive1
    hdb1 is mounted at /fbdrive1 folder only. Did you edit /etc/fstab file?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Just Joined!
    Join Date
    Oct 2007
    Posts
    20
    The only time I edited /etc/fstab was back when we where mounting /hdb1

  8. #8
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Everything looks OK now. hdb1 is mounted at one location only. If you added two entries of hdb1 in /etc/fstab file then it would create problems.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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