LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-22-2009, 06:18 AM   #1
ytd
Member
 
Registered: Jan 2009
Posts: 205

Rep: Reputation: 31
How to create chunks (blocks) not raw devices in linux ?


How do I create chunks (blocks) not raw devices in linux ?

I have 800GB and i need to create 80 chunks of 8GB and 10 chunks of 16GB.
80x8GB + 10x16GB = 800GB

Can someone tell me what commands do i need to use in order to create those chunks ?
 
Old 01-22-2009, 07:15 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
What is the context of this question----eg What problem are you trying to solve?

I assume you have an 800GB hard drive. Do you want to fill it with data? (data from what source?) ....partitions?
 
Old 01-23-2009, 05:27 AM   #3
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by pixellany View Post
What is the context of this question----eg What problem are you trying to solve?

I assume you have an 800GB hard drive. Do you want to fill it with data? (data from what source?) ....partitions?
Quote:
Originally Posted by ytd View Post
How do I create chunks (blocks) not raw devices in linux ?

I have 800GB and i need to create 80 chunks of 8GB and 10 chunks of 16GB.
80x8GB + 10x16GB = 800GB

Can someone tell me what commands do i need to use in order to create those chunks ?

I can't explain better than that.

For example when i do ls -all i need to see c not r (blocks mean C).
 
Old 01-23-2009, 06:47 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by ytd View Post
I can't explain better than that.
Ummmmm---can you at least answer my specific questions???
Quote:

For example when i do ls -all i need to see c not r (blocks mean C).
You want to see "c" and not "r"? where??
 
Old 01-23-2009, 06:56 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
When I do ls -all, all I can see is the contents of the directory with respective permissions on files and sub-directories.

Eg:
-rwxrwxrwx 1 inspire inspire 0 2009-01-23 18:25 test

Now r there means its readable.
 
Old 01-23-2009, 07:54 AM   #6
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
noobs...
 
Old 01-23-2009, 08:11 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by ytd View Post
noobs...
Excuse me???

When you are asked for clarification of your question, I am not sure how to interpret a response like this.
 
Old 01-23-2009, 09:57 AM   #8
catworld
Member
 
Registered: Nov 2004
Location: Horseheads, New York
Distribution: Mandriva 2010.1 / KDE 4.5.2, Slax, Knoppix, Backtrack & etc...
Posts: 198

Rep: Reputation: 36
fdisk or gparted have any options for this?
 
Old 01-26-2009, 05:24 AM   #9
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
# 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 !
 
Old 01-26-2009, 05:56 AM   #10
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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?
 
Old 01-26-2009, 07:18 AM   #11
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
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.
 
Old 01-26-2009, 07:41 AM   #12
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You still haven't explained what a chunk is. Also, a long listing including hidden files is "ls -a".

What do you mean my first letter? Are you referring to the the "c" filetype indicator? There is no "R" filetype.
Quote:
Originally Posted by from info ls
The file type is one of the following characters:

`-'
regular file

`b'
block special file

`c'
character special file

`C'
high performance ("contiguous data") file

`d'
directory

`D'
door (Solaris 2.5 and up)

`l'
symbolic link

`M'
off-line ("migrated") file (Cray DMF)

`n'
network special file (HP-UX)

`p'
FIFO (named pipe)

`P'
port (Solaris 10 and up)

`s'
socket

`?'
some other file type
How did you create the character devices you listed?

Last edited by jschiwal; 01-26-2009 at 07:42 AM.
 
Old 01-26-2009, 11:53 PM   #13
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Quote:
Originally Posted by ytd View Post
# 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.
 
Old 01-27-2009, 01:37 AM   #14
ytd
Member
 
Registered: Jan 2009
Posts: 205

Original Poster
Rep: Reputation: 31
I don't know how and what should i explain.
I need to create those partitions in character mode. (C stands for character) not binar or whatever.
 
Old 01-27-2009, 07:26 AM   #15
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
ytd;

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")
 
  


Reply



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
raw devices go away on reboot? thllgo Linux - Server 1 10-29-2007 11:59 AM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM
Require Raw devices on FC3 - New to Linux mikeh7519 Fedora 0 11-10-2005 06:36 PM
Raw devices gauol Linux - General 2 09-23-2004 02:01 PM
Raw Devices rajar11 Linux - Newbie 4 06-16-2004 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:18 AM.

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
Open Source Consulting | Domain Registration