LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 07-15-2008, 06:32 PM   #1
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Rep: Reputation: 16
Question How do I format logical drive in Kubuntu?


Hello- I just installed Kubuntu - Hardy Heron last night. Previously I had my computer dual booted with Ubuntu Dapper on my 80 gig HD and Windoze XP on the other, 20 gig HD. Last night I decided to do away with my windoze partition altogether because I never use it (besides I have a mac laptop anyway) but I did not know how to manually set the partitions so I just installed Kubuntu on the 80 gig one. The 20 gig mounts as /media/hdb1 and has a bunch of my old windows files on it. I would like to reformat this HD to be a logical drive - extension of my Kubuntu, but again, don't know how to do that.

Will gparted do this reliably in Kubuntu? Or, how do I do this with the command line? I have been trying to RTFM but am not having much luck deciphering what I am reading. Any help is greatly appreciated. THANK YOU!
 
Old 07-15-2008, 06:43 PM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
Apparently all you want is to "format that partition"

#sudo mkfs.jfs /dev/hdb1

DONE
----------------------

Otherwise,

Install gparted or parted

#sudo parted /dev/hdb
> p

you will see the list of partitions


> help

Why do you want hdb1 to be logical (within an extended)?
You can make up to 4 primaries on each drive... actually you cannot turn a primary into logical within extended without destroying all the data on the drive.


>mkfs is your command (see help)

On gparted it is on a GUI
 
Old 07-15-2008, 06:49 PM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
of course you must edit /etc/fstab after that

#/dev/hdb1
<remove line below this>

<replace with>
/dev/hdb1 <tab> /media/hdb1 <tab>jfs <tab>...
 
Old 07-16-2008, 12:56 AM   #4
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Original Poster
Rep: Reputation: 16
Thank you very much, but all is not well!

I had to install mkfs first, before I was able to sudo mkfs.jfs /dev/sdb1. (Oh yeah, it's sdb1, not hdb1. I could have sworn it did say hdb1 before though...)

Successfully erased all data on that drive. Then typed in kdesu kate /etc/fstab to edit /etc/fstab.

All I saw was

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=87d51a87-cb1d-4af3-bc1c-debf3cb52ca4 / ext3 relatime,errors=remount-ro 0 1
# /dev/sda5
UUID=c73118ea-7d81-4b88-8a98-45a44639e1e5 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto,exec,utf8 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0


So I then added these two lines:
# /dev/sdb1
/dev/sdb1 /media/sdb1 jfs

But after that, when I would go to mount the drive it just said "access denied".

I tried chmod a+rwx /media/sdb1 thinking that should change permissions but it did not do any good.

Then I tried qtparted, but it doesn't do anything. It looks like it's loading, but then nothing happens.

Then I downloaded gparted (it works- yay!) and tried to reformat the drive that way - but now the drive does not even show up in konqueror!

Last edited by phreakshew; 07-16-2008 at 01:37 AM.
 
Old 07-16-2008, 03:59 AM   #5
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Original Poster
Rep: Reputation: 16
Smile well I fixed it - sort of

OK - I found a tutorial here: http://www.psychocats.net/ubuntu/mountlinux

about mounting linux partitions in Ubuntu. I followed those instructions and now that other drive just looks like another folder. Since I just wanted to clear out all the Windows junk and be able to have that space available for Linux files, I guess this will work. Anyways, thanks for the help. Gparted worked great.
 
Old 07-16-2008, 11:17 AM   #6
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
You should add the line

/dev/sdb1 /media/sdb1 jfs defaults 0 2

in /etc/fstab

I had kept it open for other options
 
Old 07-16-2008, 02:35 PM   #7
phreakshew
Member
 
Registered: Aug 2005
Distribution: Ubuntu, Kubuntu, Linux Mint
Posts: 97

Original Poster
Rep: Reputation: 16
Oh I C. :-) Well that's ok. Since I'm still learning I will just file this info into my personal how-to manual for later reference. Thanks again!
 
  


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
format a hard drive (/dev/hda1) in Reiser fs format Linh Linux - General 7 06-17-2009 06:30 AM
Help please! FORMAT KUBUNTU cuphead Linux - Newbie 2 12-29-2007 02:36 AM
format of logical disk device names ahmedb72 Solaris / OpenSolaris 2 07-07-2007 11:49 PM
How add another logical drive cnm Linux - Newbie 11 11-25-2006 03:55 AM
io Stress on logical drive kaganis Linux - General 1 08-09-2005 10:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:00 PM.

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