How to create chunks (blocks) not raw devices in linux ?
Linux - NewbieThis 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
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.
What do you mean by chunks? What are you trying to do? You listed a bunch of character devices and talk about C and R.
You also concealed what directory you are listing. Are you trying to repartition a drive or break up a very large file into slices?
I need to create 80 chunks of 8GB and 10 chunks of 16GB. After that, when i enter in a chunk, i need to see the first letter C not r when i do ls -all.
# cd xxxxx
# ls -all
total 16
drwxr-xr-x 2 root system 8192 Aug 13 14:37 .
drwxr-xr-x 9 root system 8192 Aug 13 14:37 ..
crw-rw---- 1 informix informix 40,2000 Aug 13 14:37 space1
crw-rw---- 1 informix informix 40,2009 Aug 13 14:37 space10
crw-rw---- 1 informix informix 40,2010 Aug 13 14:37 space11
crw-rw---- 1 informix informix 40,2011 Aug 13 14:37 space12
crw-rw---- 1 informix informix 40,2012 Aug 13 14:37 space13
crw-rw---- 1 informix informix 40,2013 Aug 13 14:37 space14
crw-rw---- 1 informix informix 40,2014 Aug 13 14:37 space15
crw-rw---- 1 informix informix 40,2015 Aug 13 14:37 space16
crw-rw---- 1 informix informix 40,2016 Aug 13 14:37 space17
crw-rw---- 1 informix informix 40,2017 Aug 13 14:37 space18
crw-rw---- 1 informix informix 40,2018 Aug 13 14:37 space19
crw-rw---- 1 informix informix 40,2001 Aug 13 14:37 space2
crw-rw---- 1 informix informix 40,2002 Aug 13 14:37 space3
crw-rw---- 1 informix informix 40,2003 Aug 13 14:37 space4
crw-rw---- 1 informix informix 40,2004 Aug 13 14:37 space5
crw-rw---- 1 informix informix 40,2005 Aug 13 14:37 space6
crw-rw---- 1 informix informix 40,2006 Aug 13 14:37 space7
crw-rw---- 1 informix informix 40,2007 Aug 13 14:37 space8
crw-rw---- 1 informix informix 40,2008 Aug 13 14:37 space9
See? C ! It's C ! It's C not R !
I hope you have understood what "c" there means from the previous post from jschiwal. Now if you could answer his post it would give you your solution that you need.
Please read the entire thread and answer the questions which people have now asked you several times.
If there is a language barrier here, then you might want to get someone to help you.....
For example:
What is a "chunk"?
Are you trying to create partitions, files, devices, or ???
Most important: What is the context of the question? In other words, what is the overall goal?
The "c" prefix on a file is typically seen only in the /dev directory, and means that the device is a character device---for example, a keyboard. The prefixes listed by jschiwal are not used with partitions. (You cannot "create a partition in character mode")
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.