Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I want to configure a USB 100G (Maxtor 3200) HD to my SuSe 10.0 system
When I plug it in it does not mount (my last SuSe system it did mount when I plugged it in) and I do not see it in My Computer. Also I could not find it in the Yast hardware manager.
My Lexar USB jump drive works fine by the way
I ran dmesg (it's output is huge) - dmesg sees the USB hub and it sees the jump drive as well as the USB HD but I really can't tell what the USB HD is defined as i.e. how to define it in fstab
I also want to avoid a problem I have had in the past where I had to remove the USB HD every time I booted the system because if I left it plugged in the system would not boot. I would like it to be pemanent so to speak.
Most usb hard drives are listed as /dev/sda or sdb etc...I have one on my system at home and using Debian & Gnome, it is picked up on boot and an icon listed on desktop. What does command as root show, /sbin/fdisk -l?
When I get home I can paste my fstab listing for it. I'm at work now.
Thnx.
Last edited by FredGSanford; 02-11-2007 at 02:22 AM.
Uh Oh - Disk /dev/sda doesn't contain a valid partition table
How did that happen and how can I fix it?
Even if I put an entry in fstab I need to somehow partion the usb HD.
linux:~ # /sbin/fdisk -l
Disk /dev/hdc: 10.2 GB, 10262568960 bytes
255 heads, 63 sectors/track, 1247 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 1 1246 10008463+ fd Linux raid autodetect
Disk /dev/hdd: 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/hdd1 1 523 4200966 82 Linux swap / Solaris
/dev/hdd2 * 524 654 1052257+ 83 Linux
/dev/hdd3 655 3135 19928632+ fd Linux raid autodetect
/dev/hdd4 3136 4865 13896225 83 Linux
Disk /dev/md0: 30.6 GB, 30655381504 bytes
2 heads, 4 sectors/track, 7484224 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/sda: 100.2 GB, 100256292864 bytes
255 heads, 63 sectors/track, 12188 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sda doesn't contain a valid partition table
This just gets worse - I found the partioner in YAST and tried to format and create a partion with a mount point /local but no matter what it fails
I keep getting something about setting the disk label /dev/sda to msdos
I used the "expert" (which I am far from and should not be in the partioner in the first place) button in the YAST partioner to delete the disk label but no matter what, every time I try to create a new partition on the USB HD I get the same error about a disk label of msdos (where on earth did that come from? not to mention all the data is gone which really is not a big deal)
Tried fdisk (several times now) creating a new partion(s) and writing to the partion table.
I tried all the commands that I could even expert - I even tried to set a Sun disk label hoping that would replace the msdos disk label and then I could delete the Sun disk label - if you follow that lodgic (if that is lodgical at all) anyway it didn't work.
No matter what I do I get error 1004 that tells me I am trying to set the disk label to msdos.
I am throwing in the towel - I quit - giving up - the usb HD wins
Thx much - I understand - the problem is I add a partion in fdisk using the n command no problem.
I do the w command and it writes it to the partition table and syncs up (or so it says).
I go to YAST and the partion is not there - if I create a partition in YAST and "Apply" I get an error that I am trying to set the disk label to msdos.
Even if I delete the disk label using "expert" when I try and create the partition again same thing the error about the msdos disk label.
If I could partition it I think I could play with it in fstab until I got it to do what I wanted.
Yep - tried rebooting after using the w command in fdisk - doesn't work
Also tried repair partition tool using the installation dvd - doesn't work
I just cannot find any where how to change/fix/delete the disk label (well I see where you supposedly can delete it - but it gets reset to msdos somehow when I try to partition the usb HD and then the partition fils to be written to the partition table)
Another useful thing:
(If your kernel/distro supports it) My USB stick's partition is labeled USB-DRIVE0 and therefore I can mount the device:
/dev/disk/by-label/USB-DRIVE0
Good thing is, if you have multiple USB drives then they become sda, sdb, sdc, etc depending on the order you plug them in, but the labels remain static.
Code:
mkdosfs -n THE-LABEL /dev/sda1
sets the label of the device, or you can do so from windows (gasp!)
BTW: I'm running the 2.6.17.13 custom kernel, but I can't remember if it's something I included manually.
EDIT: cfdisk /dev/sdX is a much easier on the brain than fdisk =)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.