LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-15-2007, 06:12 AM   #1
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
usb hard disk - unformatted


Hi people,

I have a 500Gb USB hard disk which is brand new and unformatted.

I am trying to learn how to format it.

I can use
Code:
sudo fdisk /dev/sda
and from there set up a partition and then I can press 'w' to write the information.

I then quit fdisk and use the following:

Code:
mkfs.ext3 -j dev/sda -L parition_name
But I get an error "Could not stat dev/sda --- No such file or directory"

I can try
Code:
mkfs.ext3 -j dev/sda1 -L parition_name
But I also get an error "Could not stat dev/sda --- No such file or directory"


any ideas folks?

Kind regards,
Greenie
 
Old 05-15-2007, 06:30 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,096

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
Missing the leading slash - try
Code:
mkfs.ext3 -j /dev/sda1 -L parition_name
 
Old 05-15-2007, 06:41 AM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
I use
Code:
mke2fs -j /dev/sda1
 
Old 05-15-2007, 06:47 AM   #4
kees-jan
Member
 
Registered: Sep 2004
Distribution: Debian, Ubuntu, BeatrIX, OpenWRT
Posts: 273

Rep: Reputation: 30
Well then, type
Code:
ls -l /dev/sda*
Groetjes,

Kees-Jan
 
Old 05-15-2007, 07:15 AM   #5
greengrocer
Member
 
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Original Poster
Rep: Reputation: 37
Hey thanks guys,

One more question.

I managed to format the drive, but I had created 2 partitions using fdisk and I was able to view them with the 'p' command in the fdisk utility.

Following formatting with mkfs, I think I can only see 1 partition.

I actually wanted to create one ext3 partition on partition 1, which I did.

But how can I format NTFS on the second partition?

Interestingly, even after unmounting /dev/sda2 (sda2 is the drive as it turns out), I can no longer use "fdisk /dev/sda2"

Regards,
Greenie
 
Old 05-15-2007, 07:21 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,096

Rep: Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978Reputation: 978
"man mkntfs"
fdisk works with devices, not partitions - lose the digit.
 
  


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
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 10:55 AM
w2k recognises my fedora C4 partition as local disk d: unformatted!!? rchaves Fedora 2 01-06-2006 10:45 AM
grub won't load fedora 4, rescue disk says partition is unformatted! bean.art Linux - Software 29 12-01-2005 06:33 AM
viewing an unformatted hard drive nitaish Linux - General 8 10-16-2004 11:40 PM
installing linux on unformatted hard drive with no operating system gjhowar Linux - Newbie 4 08-18-2004 04:29 PM


All times are GMT -5. The time now is 05:40 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration