LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 10-18-2012, 01:18 AM   #1
zndffo
LQ Newbie
 
Registered: Oct 2012
Distribution: GNU Linux Debian 6.0 Squeeze
Posts: 3

Rep: Reputation: Disabled
fdisk


hello
i am working with Debian squeeze 6.0 network install.
bare bones, Zero GUI.
just trying to learn the back end. No GUI, do not want it !.

anyway, while trying to detect the printer cable that is plugged into the USB port.
fishing on the net shows using fdisk to detect .
weird thing is that there is no fdisk or gnu-fdisk.

does any one know what Debian would use in place of fdisk or if fdisk is 'just outside' of the path for some security reason.

thanks
 
Old 10-18-2012, 01:27 AM   #2
nugat
Member
 
Registered: Sep 2012
Posts: 122

Rep: Reputation: 31
Quote:
Originally Posted by zndffo View Post
hello
i am working with Debian squeeze 6.0 network install.
bare bones, Zero GUI.
just trying to learn the back end. No GUI, do not want it !.

anyway, while trying to detect the printer cable that is plugged into the USB port.
fishing on the net shows using fdisk to detect .
weird thing is that there is no fdisk or gnu-fdisk.

does any one know what Debian would use in place of fdisk or if fdisk is 'just outside' of the path for some security reason.

thanks
if you are a regular user, you may not have /sbin, /usr/sbin, and others in your path, and fdisk may be in one of those. to check what your path is, just do:

Code:
echo $PATH
and the directories will be colon-separated.

You can su/sudo to root and look for it, e.g.:
Code:
sudo which fdisk
There is also parted, sfdisk, cfdisk, and others. but last time I used Debian, it had fdisk.

However, a printer would NOT require fdisk, which is used exclusively for partition hard drives! Double-check whatever you were reading, or post it here it you have questions about it.
 
Old 10-18-2012, 03:20 AM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Arch
Posts: 3,013

Rep: Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225Reputation: 1225
Quote:
Originally Posted by zndffo View Post
does any one know what Debian would use in place of fdisk or if fdisk is 'just outside' of the path for some security reason.
You can see with this search, that fdisk is installed to /sbin. That means it will by default only be on $PATH if you are root. I wouldn't call it a security reason but fdisk is a program for editing disk partitions which only root has permission to do, so it's of no use for a normal user; I assume that's why it's not in a normal user's $PATH.
 
Old 10-18-2012, 05:46 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
As per above, fdisk is for disks (sic); try lsusb.
 
Old 10-19-2012, 09:55 PM   #5
zndffo
LQ Newbie
 
Registered: Oct 2012
Distribution: GNU Linux Debian 6.0 Squeeze
Posts: 3

Original Poster
Rep: Reputation: Disabled
pieces of the puzzle

i did not log the website that suggested using fdisk to show what is plugged into hardware ports.

lsusb
man lsusb
this works as a beginning point to work with.

thank you

Last edited by zndffo; 10-19-2012 at 10:01 PM. Reason: brain dead
 
Old 10-19-2012, 10:07 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,358
Blog Entries: 12

Rep: Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740Reputation: 2740
If it's a USB printer, the command lsusb (list usb) should show whether it's detected; if it doesn't show, you can doublecheck with the dmesg command.

There is also a utility called pconf-detect. It's mentioned on this page.
 
  


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
How to use Fdisk ? gardenair Linux - Newbie 6 05-14-2011 04:32 AM
understadning /dev/dm-02 mapping and fdisk -l or fdisk -l | less mixxmaster27 Linux - Newbie 2 06-03-2010 01:17 PM
Replacing fdisk with gnu fdisk in busybox? Alkisx Slackware 5 10-23-2009 12:51 PM
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 10:26 PM
can't fdisk tweak13 Linux - Newbie 4 04-02-2003 02:02 AM


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