LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-11-2012, 08:59 PM   #1
1veedo
Member
 
Registered: Dec 2004
Location: WV, USA
Distribution: Gentoo, Debian
Posts: 186

Rep: Reputation: 34
Creating device nodes to point to arbitrary locations on a hard drive


Without really considering that windows uses 2 partitions when you install it I ended up allocating all 4 of my primary partitions, but with unused free space at the end. I've had this configuration for at least a year and I don't really need the space but I thought it would be fun to see if it was possible to generate an arbitrary device node (ie with mknod or something) that would point to the free space left on the drive.

So is it possible to generate a device node yourself to essentially emulate the existence of a partition?
 
Old 05-11-2012, 09:15 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,926

Rep: Reputation: Disabled
No, that is not possible. A device node for a partition points to a structure in the kernel, not to an area on the disk.
 
  


Reply

Tags
mknod, partitions


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
UNetBootin isn't creating bootable flash drive from file on hard drive. glenellynboy Linux - Newbie 44 09-30-2011 05:28 PM
mount point for second hard drive zogthegreat Linux - Hardware 3 08-16-2009 10:14 AM
Moving a mount point to a new hard drive koremori@yahoo.com Linux - Hardware 2 02-19-2007 01:15 PM
"Creating initial device nodes" taking forever LinuxGeek Linux - Software 3 08-06-2005 03:45 PM
Hard Drive Mount Point Question The Oate Mandriva 6 08-03-2004 08:25 PM


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