LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-07-2005, 06:17 PM   #1
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
harddisk partition trouble


I have a problem with a spare slave harddisk with partitions named hdb1,hdb2,hdb3 earlier carrying a distro.

I wanted to use this as pure data disk with only one big partition of 13GB.

I opened qtparted and chose to delete hdb1.

Now nothing more can be done on hdb, neither resizing nor formatting or deleting.

How do I get on?

(SimplyMEPIS 3.3 kernel 2.6.10)
 
Old 09-07-2005, 06:31 PM   #2
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
2 commands:

'man mke2fs' and 'man fdisk'

See how you go.
 
Old 09-07-2005, 06:33 PM   #3
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Rep: Reputation: 30
i find cfdisk much easier to use than fdisk, also on my system (slackware) there is mkfs.* where * is the name of the filesystem to use
 
Old 09-07-2005, 07:10 PM   #4
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by moistTowelette
2 commands:

'man mke2fs' and 'man fdisk'

See how you go.
well, I was looking for som e experienced help so feel free to join in

Now qtparted shows one big partition of 13gb where 600 is used, although it was formatted to ext3 in qtp.

Somehow it's like qtp does not show what fdisk does.

Besides I am not allowed to place any data on the parition (mounted).
 
Old 09-07-2005, 07:13 PM   #5
danimalz
Member
 
Registered: Jul 2005
Location: West Coast South, USA
Distribution: debian 3.1
Posts: 267

Rep: Reputation: 36
I had a similar issue. The problem turned out to be the jumpers on the HD. It was set to cable-select, rather than slave. Probably not your problem, but cant hurt to check.
 
Old 09-07-2005, 07:21 PM   #6
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by danimalz
I had a similar issue. The problem turned out to be the jumpers on the HD. It was set to cable-select, rather than slave. Probably not your problem, but cant hurt to check.
It worked fine untill I deleted the said partition, now I and root am not allowed to enter.

Anyone knowing anything about setting up harddisks?
 
Old 09-07-2005, 07:34 PM   #7
moistTowelette
Member
 
Registered: Sep 2003
Posts: 79

Rep: Reputation: 15
You need to unmount the drive and reformat it from scratch using mke2fs... something like the following (check the man pages, i'm at work and can't check this for myself to confirm)

$ umount /dev/hdx (where 'x' is the letter of your HDD)

$ mke2fs /dev/hdx <parameters_if_needed>

Once a disk has been formatted and partitioned, it is almost impossible to change these partitions without losing data (some programs like Partition Magic can do it but that is a Windows program). Your best option is just to start from scratch, reformat and create one big partition... it's not that hard.
 
Old 09-07-2005, 08:18 PM   #8
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
$ mke2fs /dev/hdb

after this command root can enter and delete data in what looks like a whole 13GB partition.

But even though I have chown and chmod 777 to user, the user can't save or delete files in /dev/hdb/data

I guess I can live with a sole root partition, but it's pretty weird anyway.
 
Old 09-07-2005, 08:20 PM   #9
edman007
Member
 
Registered: Sep 2003
Distribution: slackware-current
Posts: 173

Rep: Reputation: 30
the expereniced help says RTFM

but i could just show you

Code:
cfdisk /dev/hdb
make the partitions the way you like em and write it, dont just quit when done

then check is your new partitions exist in /dev (/dev/hdb*), they should, but if they dont then just reboot as that works for me

the to format

Code:
mkfs.ext3 /dev/hdb1
then mount it

Code:
mount -t ext3 /dev/hdb1 /mnt/my_hard_drive
 
Old 09-08-2005, 05:07 AM   #10
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Original Poster
Rep: Reputation: 30
problem persist

Did that and rebooted.

No change. root can paste a file.

I am logged in as root. I have to select: 'Unmount as root', not only 'unmount' (stilled logged in as root)
Error message: /mnt/hdb1: not mounted, please chech the disk is entered correctly.

Doing cd /mnt/hdb and /dev/hdb1: 'No such file or fiule catalog

fstab:
/dev/hdb1 /mnt/hdb1 ext3 noauto,users,exec 0 0


mtab mounted:
/dev/hda1 / ext3 rw,noatime 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,mode=0622,gid=100,mode=0622 0 0
tmpfs /dev/shm tmpfs rw 0 0
usbfs /proc/bus/usb usbfs rw,devmode=0666 0 0
/dev/hda3 /home ext3 rw,noatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
/dev/hdb1 /mnt/hdb1 ext3 rw 0 0

This is no standard trouble free procedure.

Last edited by Thulemanden; 09-08-2005 at 05:15 AM.
 
  


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
why isnt linux mounting my harddisk partition? Itachi Linux - General 2 09-12-2005 04:43 PM
Is it possible to instal Suse 9.3 Pro on another partition instead of a new harddisk suse91pro Linux - General 1 08-27-2005 08:20 PM
how to partition my 20GB harddisk properly for Linux? chuanweizuo Linux - Newbie 2 03-07-2005 07:02 PM
how to partition a harddisk?? Sammy2ooo Linux - Newbie 7 05-14-2003 06:20 AM
harddisk partition chin Linux - Software 1 10-06-2000 01:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:36 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