Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
I have booted Knoppix 5.1 from a USB stick Here is fdisk -l Disk /dev/sda: 163.9 GB, 163927522816 bytes 255 heads, 63 sectors/track, 19929 cylinders Units = cylinders of 16065 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    3

    Multiple mounts


    I have booted Knoppix 5.1 from a USB stick

    Here is fdisk -l

    Disk /dev/sda: 163.9 GB, 163927522816 bytes
    255 heads, 63 sectors/track, 19929 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sda1 * 5 19929 160047562+ 7 HPFS/NTFS

    Disk /dev/sdb: 320.0 GB, 320072933376 bytes
    255 heads, 63 sectors/track, 38913 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 38913 312568641 7 HPFS/NTFS

    Disk /dev/sdc: 1014 MB, 1014497280 bytes
    65 heads, 32 sectors/track, 952 cylinders
    Units = cylinders of 2080 * 512 = 1064960 bytes

    Device Boot Start End Blocks Id System
    /dev/sdc1 * 1 953 990704 b W95 FAT32
    Partition 1 has different physical/logical endings:
    phys=(967, 64, 32) logical=(952, 39, 32)


    There are links for /dev/sda1 and /dev/sdb1 on the desktop, but if I open them up they always show the USB key /dev/sdc1

    here is /etc/mtab
    /dev/root / ext2 rw 0 0
    /dev/sda1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    /dev/sdb1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    /ramdisk /ramdisk tmpfs rw,size=411948k,mode=755 0 0
    /UNIONFS /UNIONFS aufs rw,br:/ramdisk:/KNOPPIX 0 0
    /dev/sdc1 /cdrom vfat ro,nodev,fmask=0022,dmask=0022,codepage=cp437,ioch arset=iso8859-1 0 0
    /dev/cloop /KNOPPIX iso9660 ro 0 0
    /proc/bus/usb /proc/bus/usb usbfs rw,devmode=0666 0 0
    /dev/pts /dev/pts devpts rw 0 0

    As far as I can make out, there are multiple mount on /cdrom.

    How do I correct this?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Post the contents of /etc/fstab file here.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    I had exactly the same problem with my USB Knoppix. I installed Knoppix 5.1 on a USB stick and able to boot with this image, but after some playing around i started to realise it mounts the USB stick to multiple points. I tried to unmount this drive but it would not let me and told me it has mounted multiple times.

    after that, i tried to boot with a CD copy of knoppix and this time it works correctly as /dev/sda1 is now my harddrive and i can mount and unmount it.

    anybody has an idea how to fix this? I really liked to use the USB booting as it works a lot faster than the CD.

    regards,
    SkY

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Hi and Welcome !

    Boot up from USB stick again and execute df -h command. Post output here.
    Code:
    df -h
    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
    Mar 2009
    Posts
    6
    Code:
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/root             3.4M   23K  3.4M   1% /
    /dev/sda1             1.9G  712M  1.2G  37% /cdrom
    /ramdisk             1012M  5.3M 1007M   1% /ramdisk
    /UNIONFS             1012M  5.3M 1007M   1% /UNIONFS
    /dev/sdb1             1.9G  712M  1.2G  37% /cdrom
    /dev/cloop            2.0G  2.0G     0 100% /KNOPPIX
    the above was the df -h result from USB boot.

    i tried to unmount both sda1 and sdb1, the error is "/cdroom is mounted multiple times" and cannot be unmount

    regards,
    sKy

  6. #6
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    anyone can give assistant to the above problem?

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    Put # sign before /dev/sda1 and /dev/sdb1 lines in /etc/fstab file.
    Code:
    #/dev/sda1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    #/dev/sdb1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    Execute this to unmount partitions.
    Code:
    umount /dev/sda1
    umount /dev/sdb1
    Try to mount both manually again.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  8. #8
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    here's the result after I tried. It doesnt work.

    knoppix@Knoppix:~$ #/dev/sda1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    knoppix@Knoppix:~$ #/dev/sdb1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    knoppix@Knoppix:~$ umount /dev/sda1
    umount: /dev/sda1 mount disagrees with the fstab
    knoppix@Knoppix:~$ umount /dev/sdb1
    umount: /dev/sdb1 mount disagrees with the fstab
    knoppix@Knoppix:~$

  9. #9
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    knoppix@Knoppix:~$ #/dev/sda1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    knoppix@Knoppix:~$ #/dev/sdb1 /cdrom fuseblk ro,nosuid,nodev,noatime,allow_other,blksize=4096 0 0
    Do not execute those commands at prompt. Open /etc/fstab file and put # sign before those lines.
    Code:
    su -
    nano /etc/fstab
    Press Ctrl+X, Y and hit Enter key to save file.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  10. #10
    Just Joined!
    Join Date
    Mar 2009
    Posts
    6
    here's what I did:

    1. opened terminal and typed su -, then I saw shell prompt become root@knoppix:~#
    2. typed nano /etc/fstab and entered into editor. found the lines as below:
    Code:
    /proc /proc proc rw,nosuid,nodev,noexec 0 0 /sys /sys sysfs
    rw,nosuid,nodev,noexec 0 0 /dev/shm /dev/shm tmpfs
    rw,nosuid,nodev,noexec 0 0 /dev/pts /dev/pts devpts mode=0622 0 0
    /dev/fd0 /media/fd0 auto user,noauto,exec,umask=000 0 0 /dev/cdrom
    /media/cdrom auto user,noauto,exec,ro 0 0 /dev/hdc /media/hdc auto
    users,noauto,exec,ro 0 0
    # Added by KNOPPIX
    /dev/sda1 /media/sda1 ntfs noauto,users,exec,umask=000,uid=knoppix,gid=knoppix$
    # Added by KNOPPIX
    /dev/sdb1 /media/sdb1 vfat noauto,users,exec,umask=000,shortname=winnt,uid=knoppix id=knoppix,gid=knoppix 0 0
    3. tried putting # sign infront of /dev/sdb1 and /dev/sda1, then save and umount but it says device is busy and cannot unmount.

    regards
    sky

Page 1 of 2 1 2 LastLast

Posting Permissions

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