LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-25-2004, 01:36 PM   #1
New In Linux 11
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 41

Rep: Reputation: 15
hi .. im just now insert a new hardisk to the computer i have question to you


HI EVERYBODY !

ok its like that i insert a new hardisk to my computer now i want to see him from my linux
and somthing improtand I CANT FORMAT the hardisk i have thair too much important things ... now what i need to do
this what i get whan i write īn shell "fdisk -l"

root@Slackware:~# fdisk -l


Code:
root@Slackware:~# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1           75568       77545      996912   82  Linux swap
/dev/hda2   *           1       75567    38085736+  83  Linux

Partition table entries are not in disk order

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
i hope you can help me ...
thanks a lot for your time ...
roy
 
Old 07-25-2004, 01:43 PM   #2
fsbooks
Member
 
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 458

Rep: Reputation: 42
It looks fine to me. Your new disk is /dev/hdb, and has no partitions. You just need to add some partitions and mount them up.
 
Old 07-25-2004, 01:47 PM   #3
New In Linux 11
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 41

Original Poster
Rep: Reputation: 15
yeah i think like you but ..

i dont know how to do it ... can you please help me ? without format my disk or somthing ?

thanks a lot for your time ...
roy
 
Old 07-25-2004, 02:09 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
Step 1: Decide how you want to partition your drive. How many partitions? What size?

Step 2: I like 'cfdisk'. So I would type 'cfdisk /dev/hdb'. Adding partions to empty space is easy to figure out.

Step 3: You can format the partitions from your current Linux (mkfs, mke2fs, mkreiserfs, etc), if your new disk is storage. If you are installing it is best to let the install program format it.
 
Old 07-25-2004, 02:39 PM   #5
New In Linux 11
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 41

Original Poster
Rep: Reputation: 15
ok i did what you say

after all i see its very very easy ... but still have a little problem i think its more newbie problem
look what is show me now whan i write "fdisk -l"
and after this i tell you what my problem is

Code:
root@Slackware:~# fdisk -l

Disk /dev/hda: 40.0 GB, 40020664320 bytes
16 heads, 63 sectors/track, 77545 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1           75568       77545      996912   82  Linux swap
/dev/hda2   *           1       75567    38085736+  83  Linux

Partition table entries are not in disk order

Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        4865    39078081   83  Linux
and now my problem is like that
i use with slackware 10 with kde and ... whan i look for get in to my hard disk i see just

Hard Disc
Floppy
CD-ROM

whan i do left click with the mouse on the hardisk i can see that is /dev/hda2
how can i see /dev/hdb1
in my devices ?

thanks a lot for your time ...
roy
 
Old 07-25-2004, 03:25 PM   #6
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
You can mount it manually now. You will want to add it to /etc/fstab so it is seen at boot.
Check 'man mount' and 'man fstab'.
 
Old 07-25-2004, 06:31 PM   #7
New In Linux 11
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 41

Original Poster
Rep: Reputation: 15
come in body ...

its me again
can you explain me how to do it cause i didnt understand so much from thair ....

thanks again ...
roy
 
Old 07-25-2004, 08:00 PM   #8
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
As root:
mkdir /mnt/newdrive
mount /dev/hdb1 /mnt/newdrive
is how to mount manually. Anyone can then view and root can add files.

Post your /etc/fstab file for help with adding the new drive entry.
 
Old 07-25-2004, 09:34 PM   #9
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
here is my fstab

thets what i see in fstab

Code:
dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                ext2        defaults         1   1
/dev/cdrom       /mnt/cdrom       iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
and this is whan i write "fdisk -l"


Code:
Disk /dev/hdb: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        4865    39078081   83  Linux
thanks a lot for your time ...
roy
 
Old 07-25-2004, 10:30 PM   #10
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
If you want the added hard drive to be mounted at boot and available to all regular users then you want to make an entry for it almost like your hda2 entry.
/dev/hdb1 /mnt/newdrive <filesystem type> defaults 1 2
Use a tab between the entries and check 'man fstab' for what to enter for file system types or other questions.
 
Old 07-25-2004, 10:46 PM   #11
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
thank you my friend ...

i got more little problem ... now i cant write in this drive what should i do for write whan i try to change the premision with left click on the mouse and propties in the premision whan i try to change is write me an error messeage

these message:

changing the attributes of files is not supported with protocol devices

can you please tell me what should i do ?

thanks a lot my friend
roy
 
Old 07-25-2004, 11:06 PM   #12
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,908

Rep: Reputation: 101Reputation: 101
Try:
defaults, users, umask=022
instead of just defaults.
Link.
 
Old 07-26-2004, 12:16 AM   #13
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
look .. still the same problem

this is how my fstab looks like

Code:
/dev/hda1        swap             swap        defaults         0   0
/dev/hda2        /                ext2        defaults         1   1
/dev/cdrom       /mnt/drives/e      iso9660     noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
/dev/hdb1	/mnt/drives/d	auto	defaults,users,umask=022	0	0
/dev/hdd	/mnt/drives/f	iso9660	noauto,users,ro	0	0

you see thair /dev/hdb1 this is where my problem is
i can just read from this hard drive .. i cant moving some files to their cant remove cant rename
nothing no premission at all .... what i do wrong ?

thanks a lot for yours time ...
roy
 
Old 07-26-2004, 04:55 AM   #14
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
What filesystem is on the drive? If it's NTFS then you can't write to the drive.

To find out the filesystem just type mount after you have the drive mounted.
 
Old 07-26-2004, 07:17 AM   #15
SlackwareMan
Member
 
Registered: Jul 2004
Distribution: Slackware 10
Posts: 120

Rep: Reputation: 15
yep ... its ntfs

how do i change it ? and what more good ex2 or ext3 ?

thanks for yours time ...
roy
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
cd rw drive will freeze my computer when i insert a cd schneidz Linux - Hardware 13 11-30-2006 06:11 PM
when I insert an Actiontec 802CAT1 wireless card my computer freezes izquierdista Linux - Wireless Networking 1 09-22-2005 06:51 AM
Why it is so difficult do insert a new question Paul7 LQ Suggestions & Feedback 10 08-15-2005 09:42 AM
cannot write to hardisk (extreme noob question) klebs89 Linux - Newbie 5 11-11-2004 01:28 PM
"which files to copy to hardisk for Hardisk installation " Rehan1 Linux - Newbie 9 08-21-2004 03:11 PM

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

All times are GMT -5. The time now is 07:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration