-1

I bought a brand new 3TB external drive for my birthday coming up, It's a WD My Book, it came as NTFS, and I'm trying to make it mount using a simple script on boot. (Not /etc/fstab, I ruined my comp. using that by accident and had to re-install).

I'm instead having a script run in /etc/init.d. The thing is, it's under /dev/sdf and I want it to mount in /exhd, the script seems to run, but it doesn't mount it.

Any help here, please?

v2r
  • 9,547
user245115
  • 1,163
  • 3
  • 17
  • 33
  • Could you post the contents of the script? Just to make sure you're aware, /dev/sdf refers to the device - partitions on the device will have numbers after them (e.g. /dev/sdf1, /dev/sdf2). It's those numbered devices you need to mount. – rocketman10404 Jun 09 '14 at 14:56
  • Can you see the disk in the program 'disks'? – Charles Green Jun 09 '14 at 14:57
  • try following this – 842Mono Jun 09 '14 at 15:47
  • I suspect a permissions error somewhere (mount point or script), does it mount through the commandline? You should really just try using fstab properly https://help.ubuntu.com/community/InstallingANewHardDrive – crasic Jun 09 '14 at 18:31
  • @crasic It appears I was looking in the wrong place, the disk did appear in disks, but I was looking at /dev/sdf, not /dev/sdf1, so the system was trying to mount whatever /dev/sdf is instead of my drive. – user245115 Jun 10 '14 at 16:06
  • @user245115 /dev/sdf refers to the entire disk as a single file. It will fail to mount because it does not point to the beginning of a partition with FS information. The OS automatically reads the partition table of /dev/sdf to determine the number/location of partitions and populates them as /dev/sdfX. More Info – crasic Jun 10 '14 at 16:10
  • Happy Birthday, Wish you the Best, You Should be Happy! – OverCoder Jun 10 '14 at 16:38
  • @Yousef's Thanks, even though it's in 2 days, I bought it for my early birthday. – user245115 Jun 10 '14 at 17:45

1 Answers1

1

Oops, I made a mistake, when I went to the disks partition, I was looking at /dev/sdf, not /dev/sdf1, and since that happened it was trying to mount /dev/sdf instead of my external drive at /dev/sdf1, in other words, I was looking in the wrong place. It works now. My research was found here: http://www.pendrivelinux.com/mounting-a-windows-xp-ntfs-partition-in-linux/

user245115
  • 1,163
  • 3
  • 17
  • 33