Unix/Linux Go Back    


Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

"parted" command not working in Fedora9

Filesystems, Disks and Memory


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-18-2013   -   Original Discussion by ravisingh
ravisingh's Unix or Linux Image
ravisingh ravisingh is offline
Banned User ID
 
Join Date: Feb 2013
Last Activity: 4 December 2015, 5:17 AM EST
Location: Mumbai
Posts: 106
Thanks: 7
Thanked 2 Times in 2 Posts
"parted" command not working in Fedora9

I ran the foll. command:


Code:
parted /dev/sdb
(parted) p
mkpart primary 1GB 1.5GB

The parted command (when I print the details) outputs something like below:
1 2048MB .......

what I want to bring in your notice that only 1 row came showing the complete size of the disk (detachable device) although I created 2 partitions with fdisk command.

The output of the below differs from above


Code:
fdisk /dev/sdb
(....): p

It outputs 2 rows as I created 2 partitions. Why then parted command doesn't show it and shows the total size of the disk.

My other question :
When I put a fresh pendrive (without partitioning) it shows as one. (I mean it doesn't show that there are any partitions as I havent created any which is fine). Now when I create a partition say /dev/sdb1 (of /dev/sdb) then the output of fdisk shows sdb1. What about the remaining space. Now after creating a partition (sdb1), why then only sdb1 can be mounted and not the other part. Because earlier when there was no partition , it had mounted the complete disk.
Sponsored Links
    #2  
Old Unix and Linux 05-18-2013   -   Original Discussion by ravisingh
RudiC's Unix or Linux Image
RudiC RudiC is offline Forum Staff  
Moderator
 
Join Date: Jul 2012
Last Activity: 22 June 2018, 4:36 AM EDT
Location: Aachen, Germany
Posts: 12,916
Thanks: 429
Thanked 3,966 Times in 3,647 Posts
1) Why don't you show the entire output of all relevant commands so we can compare and then, hopefully, conclude the reasons for any strange behaviour?
2) I think that all pen drives come "preformatted" as one large disk/partition, so you can "mount the complete disk". As soon as you interfere yourself with partition tools, you are responsible for the result, i.e. you have to partition the space (and create a file system) you want to access.
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
awk command to replace ";" with "|" and ""|" at diferent places in line of file shis100 Shell Programming and Scripting 7 03-16-2011 08:59 AM
command for recently modified files - "find" command not working joe.mani UNIX for Advanced & Expert Users 1 08-16-2010 01:49 AM
sub option of awk command not working with "\" character. shareef Shell Programming and Scripting 1 06-10-2008 07:21 AM
Running command "md5" on remote host not working. ynilesh UNIX for Advanced & Expert Users 1 02-01-2008 07:15 AM
Listing only directories in the current working directory using the "ls" command igandu UNIX for Dummies Questions & Answers 2 05-12-2006 04:47 AM



All times are GMT -4. The time now is 05:24 AM.