LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-25-2005, 12:17 PM   #1
Steve Riley
Member
 
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Rep: Reputation: 15
fdisk and mke2fs with Sony memory stick


I'm trying to create partitions and file systems on a little 32 meg Sony memory stick that is connected through a USB port.

I used fdisk to create two partitions on /dev/sda1:

/dev/sda1p1
/dev/sda1p2

fdisk does show that these partitions have been created. I assume that this only creates partitions, not file systems.

When I try

mke2fs /dev/sda1p1

I get the response "no such file or directory".

I can

mount /dev/sda1 /mnt/usb1

but I want to mount each partition to separate mount points. (How can I mount /mnt/usb1 when I thought there was no file system there?)

How do I create file systems on each of these 2 partitions and then mount them?

Thanks,

Steve
 
Old 01-25-2005, 12:30 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Are you sure you fdisk'd them? It doesn't appear that you did a successful fdisk. Why?

1. Like you just said, you were able to mount
2. You should not be able to mount /mnt/sda1 but only sda1p1/sda1p2.

Use fdisk again and look at the partitions you created. Do you see them there?


-twantrd
 
Old 01-25-2005, 01:53 PM   #3
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Quote:
I used fdisk to create two partitions on /dev/sda1:

/dev/sda1p1
/dev/sda1p2
The p1 and p2 would seem to be a problem. Try it with :
mke2fs /dev/sda1 and mke2fs /dev/sda2
 
Old 01-25-2005, 01:58 PM   #4
Steve Riley
Member
 
Registered: Jan 2005
Location: Dallas
Distribution: Suse
Posts: 94

Original Poster
Rep: Reputation: 15
You are right. This was a problem I had yesterday. I looked at it again today and did not see the partitions I thought I created yesterday.

I did fdisk again and it worked. The only difference this time is that I first deleted a FAT partition that was already there - that I didn't notice yesterday. Then everything worked.

Thanks again,

Ed
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
basic fdisk and mke2fs with Sony memory stick Steve Riley Suse/Novell 0 01-24-2005 02:31 PM
Read a Sony Memory Stick? jago25_98 Linux - Hardware 2 11-23-2004 05:32 AM
Sony Memory Stick Duo redroach Linux - Hardware 1 10-14-2004 05:50 AM
Built-In Sony Memory Stick DWebb82 Linux - Hardware 7 10-05-2004 03:37 PM
Memory Stick on Sony kkempter Linux - Laptop and Netbook 1 07-12-2003 04:51 PM


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