LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-08-2013, 07:17 AM   #1
littlebigman
Member
 
Registered: Aug 2008
Location: France
Posts: 658

Rep: Reputation: 35
Question Mkntfs : 160GB disk, but 500MB partition?


Hello

I have a 160GB SATA drive available that I'd like to use with a single NTFS partition to back up 44GB of data from another disk.

fdisk let me create a single 160GB partition, but for some reason, after running mkntfs, the partition is only 497MB.

Here's the infos:
Code:
/mnt/sdc5# du -h --max-depth=1 .
...
44G     ./Documents
...

/mnt/sdc5# fdisk -l

#NOTE : sdc = SOURCE
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976 773 168 sectors (* 512 = 500GB)
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x836e6fed

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1           16065   390716864   195350400    f  W95 Ext'd (LBA)
Partition 1 does not start on physical sector boundary.
/dev/sdc5           16128   390716864   195350368+   7  HPFS/NTFS/exFAT

#NOTE : sdb = TARGET
Disk /dev/sdb: 160.0 GB, 160041885696 bytes
81 heads, 63 sectors/track, 61254 cylinders, total 312581808 sectors (* 512 = 160GB)
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xddadddad

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048   312581807   156289880    7  HPFS/NTFS/exFAT

/mnt# mkntfs -f /dev/sdb1 -L "Backup Disk E"
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.

root@slax:/mnt# df -h /dev/sdb1
Filesystem      Size  Used Avail Use% Mounted on
-               497M     0  497M   0% /dev
Why is the new partition only 497MB?

Thanks for any help.

Edit: Found it. "df" only works on mounted drive.

Last edited by littlebigman; 10-08-2013 at 07:23 AM.
 
Old 10-08-2013, 07:23 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,792

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
fdisk prints the size of the partition, df will print the size of the filesystem. Probably you need to reformat it using all the available space. Or just please show us how did you use mkntfs
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
in fedora trying to format ntfs partition using ntfsprogs mkntfs mrj Linux - Software 4 12-15-2007 08:44 PM
Installing a new disk drive - 500MB SATA Greebstreebling Linux - Hardware 7 11-09-2007 04:44 PM
syslog > 500mb daily - hdb: No disk in drive jsurles Linux - General 4 03-28-2007 08:56 AM
Fatal error when cfdisk reads partition table on 160GB disk glasisch Linux - Newbie 1 05-22-2005 10:44 AM
External USB disk 160GB frieslinux Linux - Hardware 1 02-06-2004 04:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:34 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