LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-24-2013, 06:19 PM   #1
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Rep: Reputation: Disabled
External hard drive not mounting


Hi,
I want to simply mount a 2TB HPFS/NTFS. I havve created a mount point and here is what I've tried unsuccessfully:

sudo mount -t ntfs-3g /dev/sdc1 /media/external

I am using ubuntu and have ntfs-3g. Sudo fdisk -l and blkid show the device ID and partition but it does not show up in mount.
Thanks for the help
 
Old 07-24-2013, 06:41 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Which release of whatever distribution of Linux are you using and why not post the output of those commands so we can see that?
 
Old 07-24-2013, 06:46 PM   #3
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
I'm using ubuntu 10.04 and I want to backup and upgrade to 12.04. Here are the output of the commands:
sudo mount -t ... command does not give any error.

sudo fdisk -l gives:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00076f09

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 96256 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 2444 19530752 83 Linux
/dev/sda3 2444 3417 7812096 82 Linux swap / Solaris
/dev/sda4 3417 121602 949320705 5 Extended
/dev/sda5 3417 121602 949320704 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e28c3

Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976762583+ 83 Linux

Disk /dev/sdc: 2000.4 GB, 2000365289472 bytes
255 heads, 63 sectors/track, 243197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005f107

Device Boot Start End Blocks Id System
/dev/sdc1 1 243198 1953480704 7 HPFS/NTFS

blkid gives:
/dev/sda1: UUID="8199cd84-dcf3-4338-864c-f1ba66a3c3de" TYPE="ext2"
/dev/sda2: UUID="94d9ccc1-50d6-48e9-9bf4-4acab99b6ccc" TYPE="ext4"
/dev/sda3: UUID="0f69fa5e-df8b-42d1-acc1-a2d34d5ad970" TYPE="swap"
/dev/sda5: UUID="ce86a791-abf4-434c-913b-3a4170bae21f" TYPE="ext3"
/dev/sdb1: LABEL="DATA0" UUID="cfc07750-dbbf-4ac7-a77f-e269cced401c" TYPE="ext3"
/dev/sdc1: LABEL="My Passport" UUID="F474B7AA74B76DCC" TYPE="ntfs"
 
Old 07-25-2013, 06:55 AM   #4
CodeFreaker
LQ Newbie
 
Registered: Feb 2010
Posts: 27

Rep: Reputation: 12
Smile

Quote:
Originally Posted by NTH View Post
I'm using ubuntu 10.04 and I want to backup and upgrade to 12.04. Here are the output of the commands:
sudo mount -t ... command does not give any error.

sudo fdisk -l gives:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00076f09

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 96256 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 13 2444 19530752 83 Linux
/dev/sda3 2444 3417 7812096 82 Linux swap / Solaris
/dev/sda4 3417 121602 949320705 5 Extended
/dev/sda5 3417 121602 949320704 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000e28c3

Device Boot Start End Blocks Id System
/dev/sdb1 1 121602 976762583+ 83 Linux

Disk /dev/sdc: 2000.4 GB, 2000365289472 bytes
255 heads, 63 sectors/track, 243197 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005f107

Device Boot Start End Blocks Id System
/dev/sdc1 1 243198 1953480704 7 HPFS/NTFS

blkid gives:
/dev/sda1: UUID="8199cd84-dcf3-4338-864c-f1ba66a3c3de" TYPE="ext2"
/dev/sda2: UUID="94d9ccc1-50d6-48e9-9bf4-4acab99b6ccc" TYPE="ext4"
/dev/sda3: UUID="0f69fa5e-df8b-42d1-acc1-a2d34d5ad970" TYPE="swap"
/dev/sda5: UUID="ce86a791-abf4-434c-913b-3a4170bae21f" TYPE="ext3"
/dev/sdb1: LABEL="DATA0" UUID="cfc07750-dbbf-4ac7-a77f-e269cced401c" TYPE="ext3"
/dev/sdc1: LABEL="My Passport" UUID="F474B7AA74B76DCC" TYPE="ntfs"


can you give the result of /proc/partitions result?

/dev/sdc1: LABEL="My Passport" UUID="F474B7AA74B76DCC" TYPE="ntfs"

this seems like mounted anyway try with mount -a and /proc/mounts see if sdc1 will show there?

Last edited by CodeFreaker; 07-25-2013 at 07:07 AM.
 
Old 07-25-2013, 09:12 AM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
On my system, I get output on all partitions of attached drives with the 'blkid' command. The mount command itself only shows partitions mounted with an entry in /etc/fstab.


Since you indicate you have Ubuntu installed and want to upgrade Ubuntu and all the filesystems on your first two drives are Linux filesystems, it would be a good idea to use gparted to create partitions on the externa and format them to the appropriate filesystems, ext2, ext3, ext4 before trying to save your data. I'm not sure why the mount command you are using for the ntfs partition doesn't work.
 
Old 07-25-2013, 12:16 PM   #6
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by CodeFreaker View Post
can you give the result of /proc/partitions result?

/dev/sdc1: LABEL="My Passport" UUID="F474B7AA74B76DCC" TYPE="ntfs"

this seems like mounted anyway try with mount -a and /proc/mounts see if sdc1 will show there?
Here is the /proc/partitions:

major minor #blocks name

8 0 976762584 sda
8 1 96256 sda1
8 2 19530752 sda2
8 3 7812096 sda3
8 4 1 sda4
8 5 949320704 sda5
8 16 976762584 sdb
8 17 976762583 sdb1
8 32 1953481728 sdc
8 33 1953480704 sdc1

And this is /proc/mounts:

rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /dev devtmpfs rw,relatime,size=12362424k,nr_inodes=3090606,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
/dev/disk/by-uuid/94d9ccc1-50d6-48e9-9bf4-4acab99b6ccc / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
none /sys/kernel/security securityfs rw,relatime 0 0
none /dev/shm tmpfs rw,nosuid,nodev,relatime 0 0
none /var/run tmpfs rw,nosuid,relatime,mode=755 0 0
none /var/lock tmpfs rw,nosuid,nodev,noexec,relatime 0 0
none /lib/init/rw tmpfs rw,nosuid,relatime,mode=755 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue 0 0
/dev/sda5 /home ext3 rw,relatime,errors=continue,user_xattr,data=ordered 0 0
/dev/sdb1 /mnt/data0 ext3 rw,relatime,errors=continue,data=ordered 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
gvfs-fuse-daemon /home/navidt/.gvfs fuse.gvfs-fuse-daemon rw,nosuid,nodev,relatime,user_id=1001,group_id=1001 0 0



I can see sdc1 in /proc/partitions but not in /proc/mounts. I added these lines in /etc/fstab:
#Entry for /dev/sdc1 :
UUID=F474B7AA74B76DCC /media/external ntfs defaults 0 2

and then used mount -a but /dev/sdc1 doesn't get mounted.
 
Old 07-25-2013, 12:39 PM   #7
#root
Member
 
Registered: Mar 2013
Location: in my house
Distribution: Ubuntu,Backtrack,Fedora
Posts: 38

Rep: Reputation: 5
consider changing the filesystem
 
Old 07-25-2013, 12:59 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Quote:
I have created a mount point and here is what I've tried unsuccessfully:

sudo mount -t ntfs-3g /dev/sdc1 /media/external
Please tell us why it was not successful. What were the error messages?
 
Old 07-25-2013, 01:27 PM   #9
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Please tell us why it was not successful. What were the error messages?
I do not get any error when I use mount -t .... command but I cannot see the partition /dev/sdc1 in the list of mounted partitions in /proc/mounts. I noticed that it is not probably mounted when I started backing up to the mount point /media/external using sbackup and my root drive filled up.
 
Old 07-25-2013, 01:54 PM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Look at the output of the dmesg command. There could be some error messages.
Hmm... no errors messages, nothing but a new command line prompt?
 
Old 07-25-2013, 02:09 PM   #11
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
after running your mount command run a df -Th and post the output of both the mount and the df -Th in a single block of code. thank you.
 
Old 07-25-2013, 02:10 PM   #12
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by michaelk View Post
Look at the output of the dmesg command. There could be some error messages.
Hmm... no errors messages, nothing but a new command line prompt?
There is no error message and it goes to a new command line.
Here is the tail of the dmesg output which is relevant to the external hard drive:

[160615.380170] usb-storage: device scan complete
[160615.380697] scsi 10:0:0:0: Direct-Access WD My Passport 0748 1019 PQ: 0 ANSI: 6
[160615.381288] scsi 10:0:0:1: Enclosure WD SES Device 1019 PQ: 0 ANSI: 6
[160615.382383] sd 10:0:0:0: Attached scsi generic sg3 type 0
[160615.382465] ses 10:0:0:1: Attached Enclosure device
[160615.382518] ses 10:0:0:1: Attached scsi generic sg4 type 13
[160616.689920] sd 10:0:0:0: [sdc] 3906963456 512-byte logical blocks: (2.00 TB/1.81 TiB)
[160616.691451] sd 10:0:0:0: [sdc] Write Protect is off
[160616.691455] sd 10:0:0:0: [sdc] Mode Sense: 47 00 10 08
[160616.691458] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[160616.694272] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[160616.694278] sdc: sdc1
[160616.707486] sd 10:0:0:0: [sdc] Assuming drive cache: write through
[160616.707490] sd 10:0:0:0: [sdc] Attached SCSI disk
 
Old 07-25-2013, 02:16 PM   #13
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by lleb View Post
after running your mount command run a df -Th and post the output of both the mount and the df -Th in a single block of code. thank you.
df -Th gives:
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 19G 12G 5.9G 67% /
none devtmpfs 12G 328K 12G 1% /dev
none tmpfs 12G 12K 12G 1% /dev/shm
none tmpfs 12G 96K 12G 1% /var/run
none tmpfs 12G 0 12G 0% /var/lock
none tmpfs 12G 0 12G 0% /lib/init/rw
/dev/sda1 ext2 89M 34M 50M 41% /boot
/dev/sda5 ext3 892G 524G 323G 62% /home
/dev/sdb1 ext3 917G 598G 273G 69% /mnt/data0

and this is the output of mount:
/dev/sda2 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/dev/sda1 on /boot type ext2 (rw)
/dev/sda5 on /home type ext3 (rw,user_xattr)
/dev/sdb1 on /mnt/data0 type ext3 (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/*****/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=*****)
 
Old 07-25-2013, 02:22 PM   #14
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
sorry this is what i meant. please use code flags. much easier to read:

Code:
[root@centos ~]# mount -t vfat /dev/sdc1 /mnt/usb
[root@centos ~]# df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/mapper/vg_centos-lv_root
              ext4     50G  4.7G   43G  11% /
tmpfs        tmpfs    939M     0  939M   0% /dev/shm
/dev/sda1     ext4    485M  144M  317M  32% /boot
/dev/mapper/vg_centos-lv_home
              ext4    1.8T  1.5T  243G  86% /exports/centos
/dev/sdb1     ext4    1.4T  1.1T  239G  82% /exports/NFS_TV_Shows
/dev/sdc1     vfat     16G 1009M   15G   7% /mnt/usb
so mount your device via your command, then run the df -Th command. you can clearly see that i mounted a vfat (FAT32) type usb flash drive to /mnt/usb you can see its size, type, and amount of space free.
 
Old 07-25-2013, 02:40 PM   #15
NTH
LQ Newbie
 
Registered: Jul 2013
Posts: 23

Original Poster
Rep: Reputation: Disabled
Quote:

so mount your device via your command, then run the df -Th command. you can clearly see that i mounted a vfat (FAT32) type usb flash drive to /mnt/usb you can see its size, type, and amount of space free.
Here it is:

code:

root@ubuntu:~# sudo mount -t ntfs-3g /dev/sdc1 /media/external
root@ubuntu:~# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda2 ext4 19G 12G 5.9G 67% /
none devtmpfs 12G 328K 12G 1% /dev
none tmpfs 12G 12K 12G 1% /dev/shm
none tmpfs 12G 96K 12G 1% /var/run
none tmpfs 12G 0 12G 0% /var/lock
none tmpfs 12G 0 12G 0% /lib/init/rw
/dev/sda1 ext2 89M 34M 50M 41% /boot
/dev/sda5 ext3 892G 524G 323G 62% /home
/dev/sdb1 ext3 917G 598G 273G 69% /mnt/data0
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
External Hard Drive not Mounting beetleman64 Linux - Hardware 1 05-15-2010 10:02 AM
mounting external hard drive perrywillis@cox.net SUSE / openSUSE 5 10-16-2006 01:22 AM
mounting an external hard drive adin Linux - Hardware 1 01-04-2005 04:18 AM
external hard drive mounting. gonus Debian 5 08-27-2004 02:51 PM
external hard drive mounting blahJake Debian 3 04-02-2004 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration