Linux question

SephStormSephStorm Member Posts: 1,731 ■■■■■■■□□□
For you Linux experts,

I have a linux system in which I am trying to mount a 2tb hard disk. the drive has files I want to keep, and is formatted NTFS. The disk shows up in the GUI and I can mount it to a mount point in the file system but I need to get the information needed to add it to /etc/fstab so it will mount on boot. The OS comes with a script called hda-diskmount that should so this automatically, but the disk is not detected using this method.

any advice/ideas?

Comments

  • alan2308alan2308 Member Posts: 1,854 ■■■■■■■■□□
    It's not really that involved to do it yourself. Just identify the NTFS partition by typing this at any shell prompt:

    fdisk -l | grep NTFS

    and then add a line to /etc/fstab:

    Adding a NTFS partition to fstab « CaZaTech

    I had never heard of hda-diskmount before. Google turns up nothing except for posts on forums asking for help and bug reports. icon_rolleyes.gif
  • SephStormSephStorm Member Posts: 1,731 ■■■■■■■□□□
    this is the output from fdisk:
    fdisk -l |grep NTFS
    
    WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
    
    Disk /dev/dm-0 doesn't contain a valid partition table
    Disk /dev/dm-1 doesn't contain a valid partition table
    Disk /dev/dm-2 doesn't contain a valid partition table
    /dev/sdc1   *          63  1953503999   976751968+   7  HPFS/NTFS
    

    so I used the parted command:
    parted -l 
    Model: ATA Hitachi HDS72107 (scsi)
    Disk /dev/sda: 750GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End    Size   Type     File system  Flags
     1      1049kB  525MB  524MB  primary  ext4         boot
     2      525MB   750GB  750GB  primary               lvm
    
    
    Model: ATA WDC WD20EARS-00M (scsi)
    Disk /dev/sdb: 2000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    
    Number  Start   End     Size    File system  Name                          Flags
     1      17.4kB  134MB   134MB                Microsoft reserved partition  msftres
     2      135MB   2000GB  2000GB  ntfs         Basic data partition
    
    
    Model: ATA ST31000528AS (scsi)
    Disk /dev/sdc: 1000GB
    Sector size (logical/physical): 512B/512B
    Partition Table: msdos
    
    Number  Start   End     Size    Type     File system  Flags
     1      32.3kB  1000GB  1000GB  primary  ntfs         boot
    

    The ATA WDC WD20EARS-00M is the one i want to add to etc fstab. I'll try the instructions on the page you linked, and report back.
  • exampasserexampasser Member Posts: 718 ■■■□□□□□□□
    Also be aware that not all distros have ntfs drivers installed by default.
  • SephStormSephStorm Member Posts: 1,731 ■■■■■■■□□□
    I dont know about drivers, but as you can see on the 1TB hdd above, that one is detected as NTFS. As a matter of fact, in /etc/fstab, that drive is listed as ntfs-3g. anyway. My latest attempt was mounting it manually then moving it, when I did that I noticed the name attributed was /dev/sdb2 so I added that to /etc/fstab instead, unfortunately that caused to to disappear from the gui altogether.
  • exampasserexampasser Member Posts: 718 ■■■□□□□□□□
    Could you show us the current configuration of your /etc/fstab file?
  • SephStormSephStorm Member Posts: 1,731 ■■■■■■■□□□
    I could, but I reformatted the drive yesterday to be rid of the issue, and formattd it as suggested by the amahi manual. (i.e via the shell and using the ext3 partition) Ultimatly that drive was just funny all over the place. After the format, hda-diskmount picked it up and everything seems to be working. Next is to test the VPN connectivity, and remote access capabilities. Thanks to everyone for their suggestions. :)
Sign In or Register to comment.