LinuxQuestions.org
Review your favorite Linux distribution.
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 01-18-2012, 03:51 AM   #1
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Rep: Reputation: Disabled
Partitions in dd commmand


i am trying to create a partition on my cf card

and get the following error

anesh@Linda-PC:~$ fdisk /dev/sdb

Unable to open /dev/sdb


Why is it unable to open?
 
Old 01-18-2012, 04:09 AM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by LindaVermeulen View Post
i am trying to create a partition on my cf card and get the following error
Code:
anesh@Linda-PC:~$ fdisk /dev/sdb

Unable to open /dev/sdb
you need root privileges to use fdisk. So either log into a console as root, or use sudo.
By the way, what distro or what kind of computer are you using? Do you have a chance to use gparted instead of fdisk? It's a lot friendlier and easier to use for less experienced users.

[X] Doc CPU
 
Old 01-18-2012, 04:21 AM   #3
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Thank you I did that and created four partitions

Now I need to load the syslinux on one of the partitions, but when I do so the following occurs


anesh@Linda-PC:~$ sudo syslinux -s /dev/sdb1
syslinux: invalid media signature (not a FAT filesystem?)
anesh@Linda-PC:~$


Any suggestions?
 
Old 01-18-2012, 04:28 AM   #4
kishore_ari
LQ Newbie
 
Registered: Apr 2011
Posts: 12

Rep: Reputation: 5
LindaVermeulen, did you create file system on top of that partition if not please use the below command and create the file system.

mkfs.vfat /dev/sdb1

then you can use syslinux --stupid /dev/sdb1 to install syslinux on that.

I hope that helps.
 
Old 01-18-2012, 04:28 AM   #5
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by LindaVermeulen View Post
Now I need to load the syslinux on one of the partitions, but when I do so the following occurs
Code:
anesh@Linda-PC:~$ sudo syslinux -s /dev/sdb1
syslinux: invalid media signature (not a FAT filesystem?)
anesh@Linda-PC:~$
and did you issue 'mkdosfs' to create a file system on the partition? AFAIR fdisk doesn't do that automatically, while gparted does.

[X] Doc CPU
 
Old 01-18-2012, 04:30 AM   #6
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
I think it did work

It went as follows


anesh@Linda-PC:~$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
anesh@Linda-PC:~$ sudo syslinux --stupid /dev/sdb1
Usage: syslinux [-sfr][-d directory][-o offset] device


That is right Uh?
 
Old 01-18-2012, 04:38 AM   #7
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
Can someone also tell me how to mount the boot partition as all I am getting is:

anesh@Linda-PC:~$ sudo mount /dev/sdb1/mnt
mount: can't find /dev/sdb1/mnt in /etc/fstab or /etc/mtab
 
Old 01-18-2012, 04:46 AM   #8
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
I mean no disrespect, but I think you are attempting to do something that is beyond your current capabilities.
Quote:
anesh@Linda-PC:~$ sudo syslinux --stupid /dev/sdb1
Usage: syslinux [-sfr][-d directory][-o offset] device


That is right Uh?
No, your syslinux command is not correct, as indicated by the "Usage" output. I would suggest you read the manual on syslinux.
Quote:
anesh@Linda-PC:~$ sudo mount /dev/sdb1/mnt
mount: can't find /dev/sdb1/mnt in /etc/fstab or /etc/mtab
Again your mount command is not correct, not even remotely. Read the man pages, and perhaps try to find a tutorial to achieve your goal.

LQ isn't the place for step by step guides, We're not going to debug every command you make, when it is clear you have made no attempt of your own to understand what commands you are using.
 
Old 01-18-2012, 04:54 AM   #9
kishore_ari
LQ Newbie
 
Registered: Apr 2011
Posts: 12

Rep: Reputation: 5
I think it did work

It went as follows


anesh@Linda-PC:~$ sudo mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.9 (31 Jan 2010)
anesh@Linda-PC:~$ sudo syslinux --stupid /dev/sdb1
Usage: syslinux [-sfr][-d directory][-o offset] device


That is right Uh?

LindaVermeulen, so the file system was created fine but syslinux wasn't installed so please do this below and see if that helps.

sudo syslinux -s /dev/sdb1.
 
Old 01-18-2012, 04:57 AM   #10
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
DOn't worry I know this is beyond my capabilities. What I am trying to do is put this image file onto a cf card. The cf card must then go into this NACBox which then, when you plug it in the computer it must be like Whala and it works. Now I went to this website: http://darkdust.net/writings/diskimagesminihowto and here they explained how to do it. so I have just been following these instructions. Do I even need to use the syslinux for what I am attempting to do?
 
Old 01-18-2012, 05:01 AM   #11
LindaVermeulen
LQ Newbie
 
Registered: Jan 2012
Posts: 9

Original Poster
Rep: Reputation: Disabled
fukawi1: B.T.W. who are you to say that I have made no attempt on my own, I have been sitting in front of this computer trying to find info on dd commands for Linux system and reading through all material that I can get my hands on, it is just difficult to understand and also I type in these codes and I do not know if the results I am getting are correct and thus I ask. So I do not expect you to hold my hands, but that is why I am in the Linux Newbies forum as I only started working on this system two weeks ago.
 
  


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
[SOLVED] Is it safe to resize my Slackware partitions after removing my Mint 10 partitions? Robert.Thompson Slackware 19 02-18-2011 12:47 PM
Grep Commmand sachinh Linux - General 5 05-24-2007 03:01 AM
windows killed my partitions! no linux partitions found on this computer. The MJ Linux - Software 10 01-05-2007 09:31 AM
Question on creating more partitions than default ones, i.e. /home,/root partitions casmac SUSE / openSUSE 1 12-20-2006 06:02 PM
how do I add partitions to drives that have Logical Volume (LVM) partitions? The MJ Linux - Software 5 08-17-2006 07:15 PM


All times are GMT -5. The time now is 04:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration