Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
Hello, I would like to request for some help on how to mount the other partitions of my system in my debian OS please I need this particularly for my ...
  1. #1
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225

    [SOLVED] Mounting Other Partitions

    Hello,

    I would like to request for some help on how to mount the other partitions of my system in my debian OS please I need this particularly for my storage bin sd5 but also I might need to transfer some files from one place to another in the future. Konsole commands are preferred but gui also fine.

    Thanks in advance!

    Code:
    debian:~# fdisk -l
    
    Disk /dev/sda: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Disk identifier: 0xc5e3f820
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1               1        1913    15366141    7  HPFS/NTFS
    /dev/sda2   *        1914       30260   227697277+   f  W95 Ext'd (LBA)
    /dev/sda3           30261       30401     1132582+  12  Compaq diagnostics
    /dev/sda5            1914       23313   171895468+   7  HPFS/NTFS
    /dev/sda6           23314       23563     2008093+  82  Linux swap / Solaris
    /dev/sda7           23564       25093    12289693+  83  Linux
    /dev/sda8           25094       26552    11719386   83  Linux
    /dev/sda9           26553       28104    12466408+  83  Linux
    /dev/sda10          28105       29182     8659003+  83  Linux
    /dev/sda11          29183       30260     8659003+  83  Linux
    debian:~#

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    What happens if you type

    Code:
    mount /dev/sda5 /mnt
    as root?
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Quote Originally Posted by GNU-Fan View Post
    What happens if you type

    Code:
    mount /dev/sda5 /mnt
    as root?
    Hello

    Code:
    mount point mnt does not exist

  4. #4
    Linux Newbie the bassinvader's Avatar
    Join Date
    Jun 2006
    Location
    Europe
    Posts
    168

    Use the man pages!!

    It might be a good idea to take a look at the mount man page. That'll give you all the information you'll need to mount whatever partition you want.

    I have a store partition on my system which I mount to a folder called store in my Home folder so I would type in

    Code:
    mount /dev/sda5 /home/me/store
    THats just a simple little example which might help, however you've got a few different file systems on your box so you might want to read about the mount command.

    If you want a partition to always be available it can be mounted automatically at boot by using the fstab file in /etc. THere's a manual page for that too.
    " I didn't know it was a picture of his wife! I thought it was a publicity shot form Planet Of the Apes."

  5. #5
    Just Joined! mrrangerman's Avatar
    Join Date
    Jul 2008
    Posts
    34
    Make a mount point like the bassinvader has shown maybe in /mnt

    as root
    Code:
    mkdir /mnt/name
    Then as root
    Code:
    mount /dev/sd5 /mnt/name
    It should mount but it will mount read only, if you want to write to it you will need to install ntfs-3g do that through the package manager or from a terminal as root apt-get install ntfs-3g

  6. #6
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    You have to allow read/write access to Regular User too.
    Execute this in Terminal :

    Code:
    su -
    mkdir /media/sda5
    mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    /dev/sda5 will be available in /media/sda5 and all users will have full privileges.

    If you want to mount this partition permanently then add this code in /etc/fstab file :
    Code:
    /dev/sda5    /media/sda5    ntfs-3g   defaults,umask=0  0  0
    Save file and execute mount -a command. You won't have to execute mount command again on reboot.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  7. #7
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Quote Originally Posted by mrrangerman View Post
    Make a mount point like the bassinvader has shown maybe in /mnt

    as root
    Code:
    mkdir /mnt/name
    Then as root
    Code:
    mount /dev/sd5 /mnt/name
    It should mount but it will mount read only, if you want to write to it you will need to install ntfs-3g do that through the package manager or from a terminal as root apt-get install ntfs-3g
    Hi,

    I mkdir /home/jun/storage and an arrow appear at the icon which usually means that the media is mounted. However, when I click on it it gies me an error message as bellow.

    Code:
    Could not enter folder /home/jun/storage.
    Code:
    jun@debian:~$ su -
    Password:
    debian:~# mount /dev/sda5 /home/me/store
    mount: mount point /home/me/store does not exist
    debian:~# mkdir /home/jun/storage
    debian:~# ls
    debian:~# mount /dev/sda5 /home/jun/storage
    debian:~# ls
    debian:~#
    Thanks

  8. #8
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Quote Originally Posted by mrrangerman View Post
    Make a mount point like the bassinvader has shown maybe in /mnt

    as root
    Code:
    mkdir /mnt/name
    Then as root
    Code:
    mount /dev/sd5 /mnt/name
    It should mount but it will mount read only, if you want to write to it you will need to install ntfs-3g do that through the package manager or from a terminal as root apt-get install ntfs-3g
    I installed ntfs-3g and here is the output:

    Code:
    debian:~# apt-get install ntfs-3g
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following extra packages will be installed:
      libntfs-3g31
    The following NEW packages will be installed:
      libntfs-3g31 ntfs-3g
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 168kB of archives.
    After this operation, 467kB of additional disk space will be used.
    Do you want to continue [Y/n]? y
    Get:1 http://ftp.us.debian.org lenny/main libntfs-3g31 1:1.2531-1.1 [141kB]
    Get:2 http://ftp.us.debian.org lenny/main ntfs-3g 1:1.2531-1.1 [27.0kB]
    Fetched 168kB in 6s (24.3kB/s)
    Selecting previously deselected package libntfs-3g31.
    (Reading database ... 100584 files and directories currently installed.)
    Unpacking libntfs-3g31 (from .../libntfs-3g31_1%3a1.2531-1.1_i386.deb) ...
    Selecting previously deselected package ntfs-3g.
    Unpacking ntfs-3g (from .../ntfs-3g_1%3a1.2531-1.1_i386.deb) ...
    Processing triggers for man-db ...
    Processing triggers for hal ...
    Regenerating hal fdi cache ...
    Restarting Hardware abstraction layer: hald.
    Setting up libntfs-3g31 (1:1.2531-1.1) ...
    Setting up ntfs-3g (1:1.2531-1.1) ...
    debian:~#

    EDIT: Still cannot mount and gives me the same error message.
    Last edited by nujinini; 09-15-2009 at 11:13 PM.

  9. #9
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Code:
    su -
    mkdir /media/sda5
    mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    /dev/sda5 will be available in /media/sda5 and all users will have full privileges.


    Hello Casper,

    I tried the below and it seems I am doing it wrongly. Can you please point it out my mistake? Thanks
    Code:
    jun@debian:~$ su -
    Password:
    debian:~# mount /dev/sda5 /home/jun/storage
    debian:~# apt-get install ntfs-3g
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    ntfs-3g is already the newest version.
    0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
    debian:~# mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    ntfs-3g-mount: failed to access mountpoint /media/sda5: No such file or directory
    debian:~# mount -t ntfs-3g /dev/sda5  /home/jun/storage -o defaults,umask=0
    ntfs-3g-mount: mount failed: Device or resource busy
    debian:~# mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    ntfs-3g-mount: failed to access mountpoint /media/sda5: No such file or directory
    debian:~#
    Last edited by nujinini; 09-15-2009 at 11:40 PM.

  10. #10
    Linux Engineer nujinini's Avatar
    Join Date
    Apr 2009
    Location
    An Island in the Pacific!
    Posts
    1,225
    Code:
    su -
    mkdir /media/sda5
    mount -t ntfs-3g /dev/sda5  /media/sda5 -o defaults,umask=0
    I did the above and was able to make the sda5 open, at last )

    Code:
    jun@debian:~$ su -
    Password:
    debian:~# mkdir /media/sda5
    debian:~# mount -t ntfs-3g /dev/sda5 /media/sda5 -o defaults,umask=0

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
  •