WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How can I create /dev/null in a new mounted device?  (Read 3261 times)

Offline teagy

  • Newbie
  • *
  • Posts: 16
How can I create /dev/null in a new mounted device?
« on: August 03, 2012, 03:00:13 PM »
I'm trying to create some minimal devices on a new mount point I created, but TCL doesn't come with makedev and there is no available package.

Code: [Select]
mkdir /mnt/ec2-fs/dev
/sbin/MAKEDEV -d <image_mountpoint>/dev -x console
/sbin/MAKEDEV -d <image_mountpoint>/dev -x null
/sbin/MAKEDEV -d <image_mountpoint>/dev -x zero

How can I do this on TCL?


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How can I create /dev/null in a new mounted device?
« Reply #1 on: August 03, 2012, 03:22:14 PM »
Why are you trying to do this?
Filesystems  don't need device nodes on them.

Offline teagy

  • Newbie
  • *
  • Posts: 16
Re: How can I create /dev/null in a new mounted device?
« Reply #2 on: August 03, 2012, 03:32:20 PM »
I'm trying to create a TCL AMI following the guide below, but the instructions are targeted to Fedora distros. How would I modify the instructions in sections "Prepare for the Installation", "Install the operating system", and "Configure the Operating System" so that it works with TCL?
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/creating-loopback-s3-linux.html

Does TCL have any equivalents to debootstrap?
« Last Edit: August 03, 2012, 03:49:45 PM by teagy »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How can I create /dev/null in a new mounted device?
« Reply #3 on: August 03, 2012, 04:16:39 PM »
Go to the main site: http://distro.ibiblio.org/tinycorelinux/welcome.html

Follow all the links at the top of the page, and read.

Core is not an Linux distribution.  It is a tool kit for building systems that
are fundamentally different than your normal Linux distribution.

Offline teagy

  • Newbie
  • *
  • Posts: 16
Re: How can I create /dev/null in a new mounted device?
« Reply #4 on: August 03, 2012, 05:02:18 PM »
If TCL is not a Linux distro then why is it listed here, here, and here?

Saw this in the intro:
In short, the Tiny Core distribution is like a customized version of the Linux kernel and other tools.

If it's not a distribution(operating system), then it's a kernel?

Anyways, thanks for your insightful help to my problem.
« Last Edit: August 03, 2012, 05:10:14 PM by teagy »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: How can I create /dev/null in a new mounted device?
« Reply #5 on: August 03, 2012, 05:11:10 PM »
makedev is just a wrapper for mknod.

mknod /path/to/dev/null c 1 3
The only barriers that can stop you are the ones you create yourself.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: How can I create /dev/null in a new mounted device?
« Reply #6 on: August 03, 2012, 05:51:56 PM »
Looking at your links to "Live media" and "List of Linux distributions that run from RAM" - those are exactly the types of systems the install guide you link to has very minimal compatibility as it assumes a scatter mode system running from read-write persistent storage...

« Last Edit: August 03, 2012, 06:06:05 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)