Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi, I have a compressed .tgz file, say sample.tgz, which contains the block/char devices which are under /dev folder.
If I do "gunzip -c sample.tgz | tar xvf -", all the files and block/char devices are displayed in the console but the block/char devices are not copied/created under the working directory.
For creating the .tgz file, I used the following steps:
1. tar cvf sample.tar *
2. gzip -c sample.tar >> sample.tgz
Entries (inodes) under /dev do not represent files. There is no data associated with them. tar records data for files.
The /dev inode entry contains two pieces of information: a major device number and a minor device number. In general, the major device number tells the kernel what kind of a device it is, say, disk, printer, or tty. The kernel uses this to select the driver for that device. The minor device number tells the driver which individual device of this type the inode refers to.
I believe that cpio will record the inode info, even if there is no data.
Actually I am creating a Live CD and I am able to boot from the CD. Now it is the time build the root file system for the target. I have created all the required directories (/bin, /sbin, /etc, /dev, /usr, /lib and etc) and copied all the requried files under each dirs. I am trying to compress these folders and decompress under /dev/hda. ( Is it the right way? ) When I do the "lilo -r /disk" (disk is the mount point for /dev/hda), I am getting error message as the /dev/hda is not available. Anyway, now am creating the nodes manually and installing the linux.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.