Find the answer to your Linux question:
Results 1 to 8 of 8
Sorry never cared to do it, but my there are important docs i want to retrieve on windows partition. This is what i tried below. I don't want to mount ...
  1. #1
    Just Joined!
    Join Date
    Dec 2006
    Posts
    36

    Repeat mount

    Sorry never cared to do it, but my there are important docs i want to retrieve on windows partition. This is what i tried below. I don't want to mount c, people would kill me if messed up windows from booting.
    I know I could have done this in installation. I just didn't like the fact it wanted to install Suse over all my empty space, so i configured it manually.
    Code:
     # mount /mnt/windows f
    mount: mount point f does not exist
     # mount /mnt/hda5
    mount: can't find /mnt/hda5 in /etc/fstab or /etc/mtab
    Am i doing this to early or do i need to insert that into that code into my fstab.
    sorry for being a noob and repeating year old questions, but I am happy with all installations and don't want to ruin anything. Is it possible, to do F and not C. Thank you

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    36
    Code:
    /dev/sda2            /                    ext2       acl,user_xattr        1 1
    /dev/sda4            /home                ext2       acl,user_xattr        1 2
    /dev/sda3            swap                 swap       defaults              0 0
    proc                 /proc                proc       defaults              0 0
    sysfs                /sys                 sysfs      noauto                0 0
    debugfs              /sys/kernel/debug    debugfs    noauto                0 0
    usbfs                /proc/bus/usb        usbfs      noauto                0 0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0 0
    I am thinking of adding this
    /dev/hda5 /media/windows ntfs defaults 1 1
    /dev/sda8 /media/windows ntfs defaults 1 1

    How wrong is that. Thanks for the help

  3. #3
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    exact command is
    Code:
    mount -t <file_system> /dev/<partition>  <mount_point>
    check the partitions through output of fdisk -l command. replace <file_system> with ntfs for NTFS and vfat for FAT32 partitions. you have to create mount point manually.
    i assume that F: drive is /dev/hda5 and its in NTFS format.
    Code:
    su -
    mkdir /media/f_drive
    mount -t ntfs /dev/hda5  /media/f_drive
    check /media/f_drive folder after executing this code.
    you can add code this code in /etc/fstab file for automatic mounting at boot up.
    Code:
    /dev/hda5    /media/f_drive    ntfs    defaults,umask=0 0 0
    check manual of 'mount' command. 'man mount'
    if you get any error message, post the output of 'fdisk -l' command.


    Edit:
    Quote Originally Posted by shenberry
    /dev/hda5 /media/windows ntfs defaults 1 1
    /dev/sda8 /media/windows ntfs defaults 1 1
    you are mounting two partitions at same mount point. create new for second partitions.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  4. #4
    Just Joined!
    Join Date
    Dec 2006
    Posts
    36
    Code:
       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1        1146     8663728+   7  HPFS/NTFS
    /dev/hda2            1147        5169    30413880    f  W95 Ext'd (LBA)
    /dev/hda5            1147        2533    10485688+   7  HPFS/NTFS
    /dev/hda6            2534        3227     5246608+   7  HPFS/NTFS
    /dev/hda7            3228        4614    10485688+   7  HPFS/NTFS
    /dev/hda8            4615        4891     2094088+   7  HPFS/NTFS
    /dev/hda9            4892        5169     2101648+   7  HPFS/NTFS
    
    Disk /dev/sda: 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/sda1               2       28468   228661177+   f  W95 Ext'd (LBA)
    /dev/sda2           28469       29121     5245222+  83  Linux
    /dev/sda3           29122       29317     1574370   82  Linux swap / Solaris
    /dev/sda4           29318       31080    14161297+  83  Linux
    /dev/sda5               2        1306    10482381    7  HPFS/NTFS
    /dev/sda6            1307        1920     4931923+   7  HPFS/NTFS
    /dev/sda7            1921        2010      722893+   7  HPFS/NTFS
    /dev/sda8            2011        2624     4931923+   7  HPFS/NTFS
    /dev/sda9            2625        9151    52428096    7  HPFS/NTFS
    /dev/sda10           9152       28468   155163771    6  FAT16
    
    Disk /dev/sdb: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *         554       30400   239746027+   7  HPFS/NTFS
    /dev/sdb2               1         553     4441941    b  W95 FAT32
    wow wasn't expecting all that. But i can maneuver through it.
    I must be tired. When trying to do it without help, i kept typing in fdish -l.
    THANK YOU for breaking down mount -t. I was trying my hardest to get that to execute.
    I have no idea what the points means, but using 0 0 is a safe bet right? Thanks I should be able to live with this. Until next time

  5. #5
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    I have no idea what the points means, but using 0 0 is a safe bet right?
    yes ! first 0 is value for 'dump' command. it is for backup/dump new/edited files. 0 means no backup. second 0 is for 'fsck' command. no need to check filesystem on every boot up hence value is zero.

    according to output of fdisk, 11 partitions are NTFS, 1 FAT32 and 1 FAT16. you have to create mount_point for each partition and add entries in /etc/fstab file.





    Casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  6. #6
    Just Joined!
    Join Date
    Dec 2006
    Posts
    36
    according to output of fdisk, 11 partitions are NTFS, 1 FAT32 and 1 FAT16. you have to create mount_point for each partition and add entries in /etc/fstab file.
    No i just needed two out of the 11 on here. I doubt if i will tell them to boot since it is only partitions that contain .doc .vsd .txt and so on. Once I get a good up and running Suse I'll find some way to ghost it to a machine of it on. That will properly be another month or so, still have to determine if i want to keep it. The more I use it the more spoiled i get of its simplicity. TTYL and thanks

  7. #7
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    SuSe and all other Linux distros doesn't have write access to NTFS partition by default. your data is safe in NTFS partitions even if you mount manually or at boot up coz you will have read only access. there are a few reliable packages that provide NTFS write access too.




    Casper
    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
    Dec 2006
    Posts
    36
    I just don't want all users to be able to see windows partition. If they need a file that was elsewhere, they will have to wait until I transfer it to windows. Now if only root and my user account would be able to view the contents and see them as mounted i might take it into consideration but for now, I have the files document files that are needed. Thanks

Posting Permissions

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