Results 1 to 8 of 8

Thread: Mounting and creating shortcuts for partitions

  1. #1
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    14

    Mounting and creating shortcuts for partitions

    Hello, just managed to get knoppix to recognise my modem. Now I can't seem to figure out how to mount my NTFS and VFAT partitions. I tried editing fstab and heres the code from it:

    # partitions found by Knoppix
    #/dev/hda1 /mnt/hda1 ntfs noauto, users,exec,ro,uid=knoppix,gid=knoppix 0 0
    #/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    #/dev/hda5 /mnt/hda5 vfat noatime 0 0

    I've tried to remove the noauto at one point and also for hda5 have tried another command suggested by someone else. Am trying to get a shortcut onto the desktop which links to the other two drives. When i right click and select add new hard disc, hda1 and hda5 does not appear. I tried to just type /dev/hda5 and /mnt/hda5 but got and error msg:

    /home/knoppix/Desktop/Hard Disc
    is of type FSDevice but has no Dev=... entry.

    This occurs even after i logon as root and type: mount /dev/hda5 /mnt/hda5.

    Some help wud be appreciated.

    Another thing is I can't seem to change password for the knoppix user, when i do the system hangs. Was wondering what is the non-GUI way of changing passwords.

    Thanks

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933

    Re: Mounting and creating shortcuts for partitions

    Quote Originally Posted by xolstis
    Hello, just managed to get knoppix to recognise my modem. Now I can't seem to figure out how to mount my NTFS and VFAT partitions. I tried editing fstab and heres the code from it:

    # partitions found by Knoppix
    #/dev/hda1 /mnt/hda1 ntfs noauto, users,exec,ro,uid=knoppix,gid=knoppix 0 0
    #/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    #/dev/hda5 /mnt/hda5 vfat noatime 0 0
    I presume you are working from a hard drive installation. The lines above are commented out. You need to uncomment them. That is to say, remove the leading '#' from each line you want read. It is akin to a Rem in DOS. When the file is read any lines with a '#' in front of them are ignored. Very handy for making adjustments- rather than remove and retype lines to try something out just comment it out instead and it won't be read.

    I've tried to remove the noauto at one point and also for hda5 have tried another command suggested by someone else. Am trying to get a shortcut onto the desktop which links to the other two drives. When i right click and select add new hard disc, hda1 and hda5 does not appear. I tried to just type /dev/hda5 and /mnt/hda5 but got and error msg:

    /home/knoppix/Desktop/Hard Disc
    is of type FSDevice but has no Dev=... entry.
    If you uncomment the lines above and have the 'auto' flag in each line that you want auto mounted it should mount them on boot for you. (DO NOT USE 'auto' ON A CDROM)

    You can make desktop icons by right clicking on the desktop itself.

    This occurs even after i logon as root and type: mount /dev/hda5 /mnt/hda5.
    You don't need to log in as root (but you can)- just become root:

    Code:
    su
    <password>
    OR "do as root"

    Code:
    sudo mount -t blah blah blah
    This is under the assumption that your username is part of the sudoers group.

    To mount a drive you need to specify the filesystem type, for example:

    Code:
    #: mount -t vfat /dev/hda5 /mnt/hda5
    Some help wud be appreciated.

    Another thing is I can't seem to change password for the knoppix user, when i do the system hangs. Was wondering what is the non-GUI way of changing passwords.

    Thanks
    passwd

  3. #3
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    14
    Okies I did as suggested just got rid of the # in front of the commands. I presume then fstab is something like autoexec.bat in DOS?

    Problem now is that when i login and out there it says error is line 10 and 12 of /etc/fstab. This would be the corresponding two lines i removed the # from.

    I tried running the code deirectly in KONSOLE (while logged in as root) and it says permission denied. Any ideas?

    Thanks

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Posts
    929
    Quote Originally Posted by xolstis
    Okies I did as suggested just got rid of the # in front of the commands. I presume then fstab is something like autoexec.bat in DOS?

    Problem now is that when i login and out there it says error is line 10 and 12 of /etc/fstab. This would be the corresponding two lines i removed the # from.

    I tried running the code deirectly in KONSOLE (while logged in as root) and it says permission denied. Any ideas?

    Thanks
    No, it's not really like autoexec.bat.


    You can't run it in KONSOLE. The closest you can do is su to root and do

    mount -a

    but that won't work with the error messages.

    Can you post the whole /etc/fstab ?

  5. #5
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    14
    Allrites heres the current fstab

    # /etc/fstab: filesystem table.
    #
    # filesystem mountpoint type options dump pass
    /dev/hda3 / ext3 defaults,errors=remount-ro 0 1
    /dev/hda4 none swap sw 0 0
    proc /proc proc defaults 0 0
    /dev/fd0 /floppy vfat defaults,user,noauto,showexec,umask=022 0 0
    /dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
    # partitions found by Knoppix
    #/dev/hda1 /mnt/hda1 ntfs auto, users,exec,ro,uid=knoppix,gid=knoppix 0 0
    #/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    #/dev/hda5 /mnt/hda5 vfat auto, users,exec,ro,uid=knoppix,gid=knoppix 0 0


    Another thing I tried was just this. Logging in as root i typed this in konsole:

    mount /dev/hda1 /mnt/hda1
    mount de/dev/hda5 /mnt/hda5

    Now I can see the files as root by using konqueror to go to /mnt/hda1 and /mnt/hda5.

    However when i logged out and logged in as another user, hda1 is locked (has a lock symbol over the directory) and I can get into hda5 but am not able to see anything in it at all. hda1 is a NTFS partition and hda5 a VFAT. Whats going on?

    Thanks

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by xolstis
    # partitions found by Knoppix
    #/dev/hda1 /mnt/hda1 ntfs auto, users,exec,ro,uid=knoppix,gid=knoppix 0 0
    #/dev/hda3 /mnt/hda3 ext3 noauto,users,exec 0 0
    #/dev/hda5 /mnt/hda5 vfat auto, users,exec,ro,uid=knoppix,gid=knoppix 0 0


    However when i logged out and logged in as another user, hda1 is locked (has a lock symbol over the directory) and I can get into hda5 but am not able to see anything in it at all. hda1 is a NTFS partition and hda5 a VFAT. Whats going on?

    Thanks
    Edit the hda1 & hda5 lines and remove the # from the beginning of the lines and they will be mounted on boot. When you say another user do you mean a user other than knoppix if so remove the uid & gid=knoppix you will not have permission to access the drives only the user knoppix will. Also if you want to write to the vfat (hda5) partition change the ro to rw.

    My suggestions would result in the lines:

    Code:
    /dev/hda1 /mnt/hda1 ntfs auto,users,exec,ro 0 0
    /dev/hda5 /mnt/hda5 vfat auto,users,exec,rw 0 0
    And you should now be able to access the drives when you boot or make your icons on the desktop.

  7. #7
    Junior Member registered user
    Join Date
    Jun 2003
    Posts
    14
    Okies have done that, now during bootup I can see that it says no uid and gid. Are u saying that if I wanted to mount the two hdd partitions so that user.... say user xolstis could login I would put

    #/dev/hda5 /mnt/hda5 vfat auto, users,exec,ro,uid=xolstis,gid=xolstis 0 0

    while editing the fstab I sometimes get errors in the /etc/fstab msg am wondering if the what I am doing is right, the spaces commas etc.

    Also was wondering how do I rename a user. I created a new user called xolstis but having a whole heap of problems with that user. When logged on as xolstis my sound is having trouble. I can't seem to run kppp tho I have no trouble running kppp as user knoppix or root. Was hoping to just delete user xolstis (I don't know how to remove a user either) and rename user-knoppix to user-xolstis. Can I do that?

    Thanks

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by xolstis
    Okies have done that, now during bootup I can see that it says no uid and gid. Are u saying that if I wanted to mount the two hdd partitions so that user.... say user xolstis could login I would put

    #/dev/hda5 /mnt/hda5 vfat auto, users,exec,ro,uid=xolstis,gid=xolstis 0 0
    You have a users option already in the line so any user will be able to access there is no need for the uid & gid.
    while editing the fstab I sometimes get errors in the /etc/fstab msg am wondering if the what I am doing is right, the spaces commas etc.
    Knoppix does a poor job of putting the fstab in a proper format it should be:
    Code:
    filesystem       mountpoint        type       options                dump    pass
    /dev/hda1       /mnt/hda1          ext3       auto,user,rw,exec      0       0
    Also was wondering how do I rename a user. I created a new user called xolstis but having a whole heap of problems with that user. When logged on as xolstis my sound is having trouble. I can't seem to run kppp tho I have no trouble running kppp as user knoppix or root. Was hoping to just delete user xolstis (I don't know how to remove a user either) and rename user-knoppix to user-xolstis. Can I do that?

    Thanks
    You would have to hack the install script to change the user knoppix to yours how-to is here you have to be real careful with it or you will screw up the install.

    The problem are most likely with the groups you belong too login as user knoppix and open a console and groups or id will tell you which groups the knoppix user belongs too copy them down. Now su and enter your root password then enter and adduser xolstis audio to add your user to the group audio repeat until you belong to the same groups as the user knoppix. You would normally have to logout and back in for the changes to take effect but you would be user knoppix while you are doing this so you will have to logout anyway to login in to your user account.

    If it comes to the point where you feel you would like to delete the user and start clean then as root from a console login (choose from the menu option on the login screen) deluser --remove-home username which will remove the user and the home directory of the user.

Similar Threads

  1. Mounting /var /tmp /home etc on different partitions..?
    By Chefren in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 01-29-2005, 02:30 AM
  2. Help mounting and unmounting partitions on desktop
    By LinuxCrusader in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 01-26-2005, 08:29 PM
  3. ped_disk_next error creating partitions ?
    By rcs in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 01-19-2005, 03:21 AM
  4. Mounting Existing Linux Partitions
    By lilpaul in forum General Support
    Replies: 2
    Last Post: 09-17-2004, 11:41 AM
  5. Installing .debs & creating shortcuts
    By Drago in forum General Support
    Replies: 3
    Last Post: 10-13-2003, 09:59 PM

Posting Permissions

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


Cisco Catalyst 8500 C8500L-8S4X 4x SFP+ 8x SFP 4x10GE 8x1GE Router-Fast Ship picture

Cisco Catalyst 8500 C8500L-8S4X 4x SFP+ 8x SFP 4x10GE 8x1GE Router-Fast Ship

$6299.99



Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module picture

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module

$699.99



Qty 20 New Cisco QSFP-100G-FR-W2 10-3659-01 Module Hologram Brand New 20 Pack picture

Qty 20 New Cisco QSFP-100G-FR-W2 10-3659-01 Module Hologram Brand New 20 Pack

$260.00



Cisco C9300-48UXM-A Switch 9300 Series 48-port UPoE Network picture

Cisco C9300-48UXM-A Switch 9300 Series 48-port UPoE Network

$874.99



Cisco ASR-9904 w/ 2x A9K-RSP5-TR, 1x A9K-24X10GE-1G-TR , & 2x AC Power picture

Cisco ASR-9904 w/ 2x A9K-RSP5-TR, 1x A9K-24X10GE-1G-TR , & 2x AC Power

$24995.00



Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850 picture

Cisco C3850-NM-2-10G 2 Port Network Exp.Module for 3850

$18.90



Cisco Catalyst C9200L-24P-4G-E Catalyst 24-Port Switch picture

Cisco Catalyst C9200L-24P-4G-E Catalyst 24-Port Switch

$949.99



Cisco ISR4331 Intergrated Service Router K9 4300series picture

Cisco ISR4331 Intergrated Service Router K9 4300series

$45.99



Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New picture

Cisco Catalyst C9130AXI-B WiFi 6 802.11ax Wireless Access Point Brand New

$101.99



Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch picture

Cisco Catalyst 2960-48TT-L 48-Port Fast Ethernet Managed Rackmount Switch

$46.99